%global extdir weatheroclock@CleoMenezesJr.github.io %global gschemadir %{_datadir}/glib-2.0/schemas Name: gnome-shell-extension-weather-oclock Version: 50.5 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.5.tar.gz BuildArch: noarch BuildRequires: gettext make 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.5 sed -i 's/"shell-version": \["45", "46", "47", "48", "49", "50"\]/"shell-version": ["45", "46", "47", "48", "49", "50", "51"]/' ./weatheroclock@CleoMenezesJr.github.io/metadata.json %install install -dm755 %{buildroot}%{_datadir}/gnome-shell/extensions cp -a %{extdir} %{buildroot}%{_datadir}/gnome-shell/extensions/%{extdir} install -dm755 %{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.extensions.weather-oclock.gschema.xml %changelog %autochangelog