drop needless scriptlet deps, %postun: update-mime-database only on removal
This commit is contained in:
parent
0d07ee7e98
commit
19d1ed33d9
@ -1,6 +1,6 @@
|
||||
Name: seahorse
|
||||
Version: 3.12.2
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: A GNOME application for managing encryption keys
|
||||
Group: User Interface/Desktops
|
||||
# seahorse is GPLv2+
|
||||
@ -34,12 +34,6 @@ BuildRequires: GConf2-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: vala
|
||||
|
||||
Requires(post): desktop-file-utils
|
||||
Requires(post): /usr/bin/gtk-update-icon-cache
|
||||
Requires(postun): desktop-file-utils
|
||||
Requires(postun): shared-mime-info
|
||||
Requires(postun): /usr/bin/gtk-update-icon-cache
|
||||
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=474419
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=587328
|
||||
Requires: pinentry-gui
|
||||
@ -95,15 +89,14 @@ find ${RPM_BUILD_ROOT} -type f -name "*.a" -exec rm -f {} ';'
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
|
||||
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
update-mime-database %{_datadir}/mime/ > /dev/null
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
if [ $1 -eq 0 ]; then
|
||||
touch --no-create %{_datadir}/icons/hicolor >&/dev/null|| :
|
||||
gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
|
||||
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
||||
update-mime-database %{_datadir}/mime/ > /dev/null
|
||||
fi
|
||||
|
||||
%posttrans
|
||||
@ -131,6 +124,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
||||
%{_datadir}/gnome-shell/search-providers/seahorse-search-provider.ini
|
||||
|
||||
%changelog
|
||||
* Fri Jun 27 2014 Rex Dieter <rdieter@fedoraproject.org> 3.12.2-4
|
||||
- drop needless scriptlet deps, %%postun: update-mime-database only on removal
|
||||
|
||||
* Fri Jun 27 2014 Bastien Nocera <bnocera@redhat.com> 3.12.2-3
|
||||
- Don't run update-mime-database in post, we don't ship mime XML
|
||||
files anymore.
|
||||
|
Loading…
Reference in New Issue
Block a user