diff --git a/djvulibre.spec b/djvulibre.spec
index c720405..ee5878e 100644
--- a/djvulibre.spec
+++ b/djvulibre.spec
@@ -1,10 +1,10 @@
-# $Id: djvulibre.spec,v 1.4 2004/11/09 02:45:31 cvsextras Exp $
+# $Id: djvulibre.spec,v 1.5 2004/11/16 17:36:36 thias Exp $
# Authority: matthias
Summary: DjVu viewers, encoders and utilities
Name: djvulibre
Version: 3.5.14
-Release: 1.1.fc2.fr
+Release: 3
License: GPL
Group: Applications/Publishing
URL: http://djvu.sourceforge.net/
@@ -12,12 +12,15 @@ Source: http://dl.sf.net/djvu/djvulibre-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: XFree86-devel, qt-devel, libjpeg-devel
BuildRequires: libstdc++-devel, gcc-c++, mozilla
+# Provide these here, they're so small, it's not worth splitting them out
+Provides: mozilla-djvulibre = %{version}-%{release}
+Provides: djvulibre-devel = %{version}-%{release}
%description
DjVu is a web-centric format and software platform for distributing documents
and images. DjVu content downloads faster, displays and renders faster, looks
nicer on a screen, and consume less client resources than competing formats.
-DjVu was originally developped at AT&T Labs-Research by Leon Bottou, Yann
+DjVu was originally developed at AT&T Labs-Research by Leon Bottou, Yann
LeCun, Patrick Haffner, and many others. In March 2000, AT&T sold DjVu to
LizardTech Inc. who now distributes Windows/Mac plug-ins, and commercial
encoders (mostly on Windows)
@@ -41,9 +44,12 @@ compatible with version 3.5 of the LizardTech DjVu software suite.
%install
%{__rm} -rf %{buildroot}
%makeinstall
-#%{__mkdir_p} %{buildroot}%{_libdir}/mozilla/plugins
-#%{__ln_s} ../../netscape/plugins/nsdejavu.so \
-# %{buildroot}%{_libdir}/mozilla/plugins/
+%{__mkdir_p} %{buildroot}%{_libdir}/mozilla/plugins
+%{__ln_s} ../../netscape/plugins/nsdejavu.so \
+ %{buildroot}%{_libdir}/mozilla/plugins/
+
+# Fix for the libs to get stripped correctly (debuginfo)
+find %{buildroot}%{_libdir} -name '*.so*' | xargs %{__chmod} +x
%clean
@@ -52,9 +58,11 @@ compatible with version 3.5 of the LizardTech DjVu software suite.
%post
/sbin/ldconfig
+update-desktop-database /usr/share/applications || :
%postun
/sbin/ldconfig
+update-desktop-database /usr/share/applications || :
%files
@@ -76,6 +84,19 @@ compatible with version 3.5 of the LizardTech DjVu software suite.
%changelog
+* Tue Nov 16 2004 Matthias Saou 3.5.14-3
+- Bump release to provide Extras upgrade path.
+
+* Fri Nov 5 2004 Matthias Saou 3.5.14-2
+- Re-enable the lib/mozilla/ symlink to the plugin.
+- Add source of /etc/profile.d/qt.sh to fix weird detection problem on FC3...
+ ...doesn't fix it, some lib required by qt is probably installed after and
+ ldconfig not run.
+- Added lib +x chmod'ing to get proper stripping and debuginfo package.
+
+* Sat Oct 16 2004 Matthias Saou 3.5.14-2
+- Added update-desktop-database scriplet calls.
+
* Mon Aug 16 2004 Matthias Saou 3.5.14-1
- Update to 3.5.14.
- Added newly introduced files to the package.