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
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)
%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/*