Accepting request 60737 from home:vuntz:branches:GNOME:Factory

Forwarding to openSUSE:Factory

OBS-URL: https://build.opensuse.org/request/show/60737
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/file-roller?expand=0&rev=93
This commit is contained in:
Vincent Untz 2011-02-13 21:05:45 +00:00 committed by Git OBS Bridge
parent 21b4180a82
commit ddcb3caf73
2 changed files with 28 additions and 12 deletions

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Sun Feb 13 14:05:12 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.
- Stop calling update-mime-database in %post/%postun: there is no
mime type definition.
- Pass %{?no_lang_C} to %find_lang so that english documentation
can be packaged with the program, and not in the lang subpackage.
- Change Requires of lang subpackage to Recommends, since the
english documentation is not there anymore.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 16 09:23:33 CET 2010 - dimstar@opensuse.org Tue Nov 16 09:23:33 CET 2010 - dimstar@opensuse.org

View File

@ -34,7 +34,7 @@ BuildRequires: nautilus-devel
BuildRequires: pkgconfig(gconf-2.0) BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: translation-update-upstream BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files BuildRequires: update-desktop-files
Requires: %{name}-lang = %{version} Recommends: %{name}-lang
# Formats that we really want to support by default # Formats that we really want to support by default
Requires: bzip2 Requires: bzip2
Requires: cpio Requires: cpio
@ -102,7 +102,7 @@ translation-update-upstream
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/* %{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif %endif
%suse_update_desktop_file -N "File Roller" -G "Archive Manager" %name Archiving %suse_update_desktop_file -N "File Roller" -G "Archive Manager" %name Archiving
%find_lang %{name} %find_lang %{name} %{?no_lang_C}
%find_gconf_schemas %find_gconf_schemas
rm %{buildroot}%{_libdir}/*/*/*.*a rm %{buildroot}%{_libdir}/*/*/*.*a
%fdupes %{buildroot} %fdupes %{buildroot}
@ -113,22 +113,27 @@ rm -rf %{buildroot}
%pre -f %{name}.schemas_pre %pre -f %{name}.schemas_pre
%post %post
if test -x usr/bin/update-mime-database ; then %desktop_database_post
usr/bin/update-mime-database usr/share/mime >/dev/null %icon_theme_cache_post
fi
%posttrans -f %{name}.schemas_posttrans %posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun %preun -f %{name}.schemas_preun
%postun %postun
if test -x usr/bin/update-mime-database ; then %desktop_database_postun
usr/bin/update-mime-database usr/share/mime >/dev/null %icon_theme_cache_postun
fi
%files -f %{name}.schemas_list %files -f %{name}.schemas_list
%defattr(-, root, root) %defattr(-, root, root)
%doc AUTHORS NEWS README COPYING %doc AUTHORS NEWS README COPYING
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/%{name}/
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
%{_bindir}/file-roller %{_bindir}/file-roller
%{_libexecdir}/file-roller/ %{_libexecdir}/file-roller/
%{_datadir}/applications/*.desktop %{_datadir}/applications/*.desktop
@ -141,9 +146,5 @@ fi
%{_libdir}/nautilus/extensions-2.0/*.so %{_libdir}/nautilus/extensions-2.0/*.so
%files lang -f %name.lang %files lang -f %name.lang
# Temporary workaround to not depend on libgnome: own the directories
%defattr (-, root, root)
%dir %{_datadir}/gnome
%dir %{_datadir}/gnome/help
%changelog %changelog