From 4095ac42fb358577b9e2c40f7c7eec3dc2cdef4d Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Jan 23 2017 10:49:46 +0000 Subject: add missing scriptlets --- diff --git a/appcenter.spec b/appcenter.spec index b970d06..21d6410 100644 --- a/appcenter.spec +++ b/appcenter.spec @@ -1,14 +1,14 @@ Name: appcenter Summary: Software Center for the Pantheon desktop Version: 0.1.3 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv3 URL: https://launchpad.net/appcenter Source0: https://launchpad.net/%{name}/loki/%{version}/+download/%{name}-%{version}.tar.xz # Include the appropriate icon from elementary-icon-theme so appdata metadata generation works. -# A Bug is reported upstream about the missing icon: +# A Bug about the missing icon is reported upstream: # https://bugs.launchpad.net/appcenter/+bug/1658325 Source1: system-software-install.svg @@ -71,6 +71,19 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/org.pantheon.appcent appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/appcenter.appdata.xml +%post +/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + +%postun +if [ $1 -eq 0 ] ; then + /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null + /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi + +%posttrans +/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + + %files -f appcenter.lang %doc AUTHORS %license COPYING @@ -85,6 +98,9 @@ appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/appcenter %changelog +* Mon Jan 23 2017 Fabio Valentini - 0.1.3-5 +- Add missing scriptlets. + * Sat Jan 21 2017 Fabio Valentini - 0.1.3-4 - Include icon to fix appdata metadata generation.