Mailinglist Archive: opensuse-commit (1792 mails)

< Previous Next >
commit chmsee for openSUSE:Factory

Hello community,

here is the log from the commit of package chmsee for openSUSE:Factory
checked in at Mon Feb 14 01:45:29 CET 2011.



--------
--- chmsee/chmsee.changes 2011-01-17 20:48:41.000000000 +0100
+++ /mounts/work_src_done/STABLE/chmsee/chmsee.changes 2011-02-12
20:23:41.000000000 +0100
@@ -1,0 +2,16 @@
+Sat Feb 12 17:00:59 CET 2011 - vuntz@xxxxxxxxxxxx
+
+- 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.
+- Pass %{?no_lang_C} to %find_lang so that english documentation
+ can be packaged with the program, and not in the lang subpackage.
+- Split translations in lang subpackage.
+- Remove shared-mime-info PreReq: if it's not there, then we simply
+ don't need to update the mime database.
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ chmsee.spec ++++++
--- /var/tmp/diff_new_pack.JtLaNF/_old 2011-02-14 01:44:33.000000000 +0100
+++ /var/tmp/diff_new_pack.JtLaNF/_new 2011-02-14 01:44:33.000000000 +0100
@@ -38,7 +38,7 @@
%endif
Summary: A Gtk+2 CHM document viewer
Version: 1.3.0
-Release: 1
+Release: 2
License: GPLv2+
Group: Productivity/Graphics/Viewers
Url: http://code.google.com/p/chmsee/
@@ -55,7 +55,7 @@
BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: mozilla-xulrunner%{xulrunner_version}
-PreReq: shared-mime-info
+Recommends: %{name}-lang

%description
It uses chmlib to extract files. It uses gecko to display pages. It
@@ -65,6 +65,7 @@
actively developed and maintained. The author of chmsee is Jungle Ji
and several other great people.

+%lang_package
%prep
%setup -q

@@ -82,7 +83,7 @@
make install DESTDIR=$RPM_BUILD_ROOT VERBOSE=1
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
DESTDIR=$RPM_BUILD_ROOT mime-info-to-mime
-%find_lang %{name}
+%find_lang %{name} %{?no_lang_C}
%if %suse_version <= 1100
# since xulrunner .pc files don't contain RPATH
install -p -m 755 -D $RPM_BUILD_ROOT%{_bindir}/%{name}
$RPM_BUILD_ROOT%{_libdir}/%{name}/%{name}
@@ -97,14 +98,26 @@
rm -rf %{buildroot}

%post
-usr/bin/update-mime-database /usr/share/mime >/dev/null
/sbin/ldconfig
+%if 0%{?suse_version} > 1130
+%desktop_database_post
+%icon_theme_cache_post
+%mime_database_post
+%else
+usr/bin/update-mime-database /usr/share/mime >/dev/null || true
+%endif

%postun
-usr/bin/update-mime-database /usr/share/mime >/dev/null
/sbin/ldconfig
+%if 0%{?suse_version} > 1130
+%desktop_database_postun
+%icon_theme_cache_postun
+%mime_database_postun
+%else
+usr/bin/update-mime-database /usr/share/mime >/dev/null || true
+%endif

-%files -f %{name}.lang
+%files
%defattr(-, root, root)
%doc README COPYING AUTHORS ChangeLog NEWS
%{_bindir}/chmsee
@@ -120,4 +133,6 @@
%{_datadir}/mime-info/chmsee.keys
%{_datadir}/pixmaps/chmsee-icon.png

+%files lang -f %{name}.lang
+
%changelog


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages