]> git.pld-linux.org Git - packages/djvulibre.git/blobdiff - djvulibre.spec
- release 2
[packages/djvulibre.git] / djvulibre.spec
index 7fc7fa9f9a2ce7968242d94f7f55928370689b10..c5222231378b6faba0bd6f9cf46bc57b9aaa5aa9 100644 (file)
@@ -7,12 +7,12 @@
 Summary:       DjVu viewers, encoders and utilities
 Summary(pl):   DjVu - przegl±darki, dekodery oraz narzêdzia
 Name:          djvulibre
-Version:       3.5.15
+Version:       3.5.16
 Release:       2
 License:       GPL
 Group:         Applications/Graphics
 Source0:       http://dl.sourceforge.net/djvu/%{name}-%{version}.tar.gz
-# Source0-md5: 4a4c5a36799e73bd93afc4fa5d69b315
+# Source0-md5: 5591c99a50aed1613a796a5aa4978fc0
 Patch0:                %{name}-opt.patch
 Patch1:                %{name}-nostrip.patch
 Patch2:                %{name}-desktop.patch
@@ -21,6 +21,7 @@ BuildRequires:        autoconf >= 2.50
 BuildRequires: automake
 BuildRequires: libjpeg-devel
 BuildRequires: libstdc++-devel
+BuildRequires: rpmbuild(macros) >= 1.236
 %{?with_qt:BuildRequires:      qt-devel >= 3.0.5}
 Obsoletes:     djvu
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -176,12 +177,26 @@ rm -rf $RPM_BUILD_ROOT
 %triggerun -n browser-plugin-%{name} -- mozilla
 %nsplugin_uninstall -d %{_libdir}/mozilla/plugins nsdejavu.so
 
+%triggerin -n browser-plugin-%{name} -- mozilla-firefox
+%nsplugin_install -d %{_libdir}/mozilla-firefox/plugins nsdejavu.so
+
+%triggerun -n browser-plugin-%{name} -- mozilla-forefox
+%nsplugin_uninstall -d %{_libdir}/mozilla-firefox/plugins nsdejavu.so
+
 %triggerin -n browser-plugin-%{name} -- netscape-common
 %nsplugin_install -d %{_libdir}/netscape/plugins nsdejavu.so
 
 %triggerun -n browser-plugin-%{name} -- netscape-common
 %nsplugin_uninstall -d %{_libdir}/netscape/plugins nsdejavu.so
 
+# as rpm removes the old obsoleted package files after the triggers
+# are ran, add another trigger to make the links there.
+%triggerpostun -n browser-plugin-%{name} -- mozilla-plugin-%{name}
+%nsplugin_install -f -d %{_libdir}/mozilla/plugins nsdejavu.so
+
+%triggerpostun -n browser-plugin-%{name} -- netscape-plugin-%{name}
+%nsplugin_install -f -d %{_libdir}/netscape/plugins nsdejavu.so
+
 %files
 %defattr(644,root,root,755)
 %doc COPYRIGHT NEWS README TODO doc/*
This page took 0.067058 seconds and 4 git commands to generate.