Accepting request 60923 from GNOME:Apps

Accepted submit request 60923 from user vuntz

OBS-URL: https://build.opensuse.org/request/show/60923
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gcstar?expand=0&rev=2
This commit is contained in:
Ruediger Oertel 2011-02-14 00:43:37 +00:00 committed by Git OBS Bridge
parent 6aeb7f2470
commit f94eb4028c
2 changed files with 23 additions and 6 deletions

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Sat Feb 12 17:21:09 CET 2011 - vuntz@opensuse.org
- Call relevant macros in %post/%postun:
+ %desktop_database_post/postun because the package ships at
least one desktop file.
+ %icon_theme_cache_post/postun because the package ships themed
icons.
+ %mime_database_post/postun because the package ships a mime
type definition.
- Remove shared-mime-info Requires: if it's not there, then we
simply don't need to update the mime database.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Sep 2 12:41:15 CEST 2010 - vuntz@opensuse.org Thu Sep 2 12:41:15 CEST 2010 - vuntz@opensuse.org

View File

@ -43,8 +43,6 @@ Requires: perl(HTML::Parser)
Requires: perl(XML::Parser) Requires: perl(XML::Parser)
Requires: perl(XML::Simple) Requires: perl(XML::Simple)
Requires: perl-libwww-perl Requires: perl-libwww-perl
Requires(post): shared-mime-info
Requires(postun): shared-mime-info
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
@ -89,16 +87,22 @@ rm %{buildroot}/usr/lib/gcstar/GCPlugins/GCbooks/GCSaraiva.pm.orig
rm -rf %{buildroot} rm -rf %{buildroot}
%post %post
%if 0%{?suse_version} >= 1140 %if 0%{?suse_version} > 1130
%desktop_database_post
%icon_theme_cache_post %icon_theme_cache_post
%mime_database_post
%else
update-mime-database %{_datadir}/mime || true
%endif %endif
update-mime-database %{_datadir}/mime
%postun %postun
%if 0%{?suse_version} >= 1140 %if 0%{?suse_version} > 1130
%desktop_database_postun
%icon_theme_cache_postun %icon_theme_cache_postun
%mime_database_postun
%else
update-mime-database %{_datadir}/mime || true
%endif %endif
update-mime-database %{_datadir}/mime
%files %files
%defattr(-,root,root) %defattr(-,root,root)