diff --git a/gnome-shell-extension-openweather.spec b/gnome-shell-extension-openweather.spec index 2fb12f9..a12b451 100644 --- a/gnome-shell-extension-openweather.spec +++ b/gnome-shell-extension-openweather.spec @@ -45,26 +45,10 @@ make %{?_smp_mflags} make install DESTDIR=%{buildroot} %find_lang %{name} -# Fedora uses file-triggers for some stuff (e.g. compile schemas) since fc24. -# Compiling schemas is the only thing done in %%postun and %%posttrans, so -# I decided to make both completely conditional. -%if 0%{?fedora} < 24 -%postun -if [ $1 -eq 0 ] ; then - %{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : -fi - -%posttrans -%{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : -%endif - %files -f %{name}.lang %license COPYING %doc AUTHORS README.md %{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.openweather.gschema.xml -%if 0%{?fedora} < 23 -%dir %{_datadir}/gnome-shell/extensions -%endif %{_datadir}/gnome-shell/extensions/%{uuid} %changelog