diff --git a/nemo.spec b/nemo.spec index 60701de..db799e8 100644 --- a/nemo.spec +++ b/nemo.spec @@ -1,7 +1,7 @@ Name: nemo Summary: File manager for Cinnamon Version: 3.4.7 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ and LGPLv2+ URL: https://github.com/linuxmint/ Source0: %url/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz @@ -20,8 +20,13 @@ Requires: cinnamon-translations BuildRequires: gnome-common BuildRequires: intltool +%if 0%{?fedora} || 0%{?rhel} >= 8 BuildRequires: python3-polib BuildRequires: python3-gobject-base +%else # 0%%{?fedora} || 0%%{?rhel} >= 8 +BuildRequires: python-polib +BuildRequires: pygobject3-base +%endif # 0%%{?fedora} || 0%%{?rhel} >= 8 BuildRequires: desktop-file-utils BuildRequires: pkgconfig(gtk-doc) BuildRequires: pkgconfig(libxml-2.0) @@ -101,6 +106,18 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/.icon-theme.cache %post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : +%if (0%{?rhel} && 0%{?rhel <= 7}) +%postun +if [ $1 -eq 0 ] ; then + /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : + /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null + /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi + +%posttrans +/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : +/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +%else # (0%%{?rhel} && 0%%{?rhel <= 7}) %postun if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null @@ -109,6 +126,7 @@ fi %posttrans /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +%endif # (0%%{?rhel} && 0%%{?rhel <= 7}) %post extensions -p /sbin/ldconfig @@ -145,6 +163,9 @@ fi %{_datadir}/gir-1.0/*.gir %changelog +* Thu Aug 31 2017 Björn Esser - 3.4.7-3 +- Adjustments for EPEL7 + * Wed Aug 09 2017 Leigh Scott - 3.4.7-2 - fix desktop file