%global extdir weatheroclock@CleoMenezesJr.github.io %global gschemadir %{_datadir}/glib-2.0/schemas Name: gnome-shell-extension-weather-oclock Version: 50.0 Release: %autorelease Summary: Weather in top bar # Automatically converted from old format: GPLv2 - review is highly recommended. License: GPL-2.0-only URL: https://github.com/CleoMenezesJr Source0: https://github.com/CleoMenezesJr/weather-oclock/archive/refs/tags/v50.0.tar.gz BuildArch: noarch BuildRequires: gettext BuildRequires: %{_bindir}/glib-compile-schemas Requires: gnome-shell-extension-common %description This extension allows the user to place the forecast in the top bar. %prep %autosetup -n weather-oclock-50.0 %install mkdir -p %{buildroot}%{_datadir}/gnome-shell/extensions/ cp -ar "%{extdir}" %{buildroot}%{_datadir}/gnome-shell/extensions/ mkdir -p %{buildroot}%{_datadir}/glib-2.0 mv %{buildroot}%{_datadir}/gnome-shell/extensions/*/schemas "%{buildroot}%{_datadir}/glib-2.0" # Fedora and EPEL 8 handles post scripts via triggers %if 0%{?rhel} && 0%{?rhel} <= 7 %postun if [ $1 -eq 0 ] ; then %{_bindir}/glib-compile-schemas %{gschemadir} &> /dev/null || : fi %posttrans %{_bindir}/glib-compile-schemas %{gschemadir} &> /dev/null || : %endif %files %{_datadir}/gnome-shell/extensions/%{extdir} %{gschemadir}/org.gnome.shell.weather-oclock.gschema.xml %changelog %autochangelog