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
|
Name: seahorse
|
||||||
Version: 3.12.2
|
Version: 3.12.2
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: A GNOME application for managing encryption keys
|
Summary: A GNOME application for managing encryption keys
|
||||||
Group: User Interface/Desktops
|
Group: User Interface/Desktops
|
||||||
# seahorse is GPLv2+
|
# seahorse is GPLv2+
|
||||||
@ -34,12 +34,6 @@ BuildRequires: GConf2-devel
|
|||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: vala
|
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=474419
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=587328
|
# https://bugzilla.redhat.com/show_bug.cgi?id=587328
|
||||||
Requires: pinentry-gui
|
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 || :
|
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||||
touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
|
touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
|
||||||
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
update-mime-database %{_datadir}/mime/ > /dev/null
|
|
||||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
touch --no-create %{_datadir}/icons/hicolor >&/dev/null|| :
|
touch --no-create %{_datadir}/icons/hicolor >&/dev/null|| :
|
||||||
gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
|
gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
|
||||||
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
||||||
|
update-mime-database %{_datadir}/mime/ > /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%posttrans
|
%posttrans
|
||||||
@ -131,6 +124,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
|||||||
%{_datadir}/gnome-shell/search-providers/seahorse-search-provider.ini
|
%{_datadir}/gnome-shell/search-providers/seahorse-search-provider.ini
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Don't run update-mime-database in post, we don't ship mime XML
|
||||||
files anymore.
|
files anymore.
|
||||||
|
Loading…
Reference in New Issue
Block a user