diff --git a/gtranslator.changes b/gtranslator.changes index 8b247ec..17e97ec 100644 --- a/gtranslator.changes +++ b/gtranslator.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Sat Feb 12 19:14: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. +- Pass %{?no_lang_C} to %find_lang so that english documentation + can be packaged with the program, and not in the lang subpackage. +- Add Recommends for lang subpackage. + ------------------------------------------------------------------- Wed Dec 8 08:49:42 CET 2010 - vuntz@opensuse.org diff --git a/gtranslator.spec b/gtranslator.spec index 6ea2312..a180936 100644 --- a/gtranslator.spec +++ b/gtranslator.spec @@ -48,6 +48,7 @@ BuildRequires: libxml2-devel BuildRequires: update-desktop-files BuildRequires: pkgconfig(gsettings-desktop-schemas) Requires: gsettings-desktop-schemas +Recommends: %{name}-lang %glib2_gsettings_schema_requires %description @@ -66,7 +67,6 @@ gtranslator is a comfortable po file editor with many bells and whistles. It features many useful function which ease the work of translators of po files imminently. - %lang_package %prep %setup -q @@ -86,7 +86,7 @@ NOCONFIGURE=1 gnome-autogen.sh %install %makeinstall %suse_update_desktop_file %{name} -%find_lang %{name} +%find_lang %{name} %{?no_lang_C} %fdupes $RPM_BUILD_ROOT %clean @@ -94,13 +94,24 @@ NOCONFIGURE=1 gnome-autogen.sh %post %glib2_gsettings_schema_post +%desktop_database_post +%icon_theme_cache_post %postun %glib2_gsettings_schema_postun +%desktop_database_postun +%icon_theme_cache_postun %files %defattr(-, root, root, 0755) %doc AUTHORS ChangeLog COPYING NEWS README THANKS +%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 %doc %{_mandir}/man?/* %{_bindir}/%{name} %{_libdir}/%{name}/