diff --git a/djvulibre-3.5.15-gcc401.patch b/djvulibre-3.5.15-gcc401.patch new file mode 100644 index 0000000..db003fa --- /dev/null +++ b/djvulibre-3.5.15-gcc401.patch @@ -0,0 +1,27 @@ +=================================================================== +RCS file: /cvsroot/djvu/djvulibre-3.5/libdjvu/GString.h,v +retrieving revision 1.19 +retrieving revision 1.20 +diff -u -r1.19 -r1.20 +--- djvulibre-3.5/libdjvu/GString.h 2004/08/06 15:11:29 1.19 ++++ djvulibre-3.5/libdjvu/GString.h 2005/07/22 15:28:07 1.20 +@@ -138,6 +138,10 @@ + # endif + #endif + ++class GBaseString; ++class GUTF8String; ++class GNativeString; ++ + // Internal string representation. + class GStringRep : public GPEnabled + { +@@ -433,8 +437,6 @@ + virtual unsigned long getValidUCS4(const char *&source) const; + }; + +-class GUTF8String; +-class GNativeString; + + /** General purpose character string. + Each dirivied instance of class #GBaseString# represents a diff --git a/djvulibre.spec b/djvulibre.spec index 55ce7cb..76743ce 100644 --- a/djvulibre.spec +++ b/djvulibre.spec @@ -1,14 +1,15 @@ Summary: DjVu viewers, encoders and utilities Name: djvulibre Version: 3.5.15 -Release: 1%{?dist} +Release: 2%{?dist} License: GPL Group: Applications/Publishing URL: http://djvulibre.djvuzone.org/ Source: http://dl.sf.net/djvu/djvulibre-%{version}.tar.gz +Patch0: djvulibre-3.5.15-gcc401.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: xorg-x11-devel, qt-devel, libjpeg-devel, libtiff-devel -BuildRequires: mozilla, redhat-menus +BuildRequires: mozilla, redhat-menus, hicolor-icon-theme # Provide these here, they're so small, it's not worth splitting them out Provides: mozilla-djvulibre = %{version}-%{release} Provides: djvulibre-devel = %{version}-%{release} @@ -31,6 +32,7 @@ compatible with version 3.5 of the LizardTech DjVu software suite. %prep %setup +%patch0 -p1 -b .gcc401 %build @@ -94,6 +96,11 @@ update-desktop-database /usr/share/applications || : %changelog +* Thu Aug 4 2005 Matthias Saou 3.5.15-2 +- Include djvulibre-3.5.15-gcc401.patch to fix compilation with gcc 4.0.1. +- Add hicolor-icon-theme build req for /usr/share/icons/hicolor/48x48/mimetypes + to exist. + * Thu Aug 4 2005 Matthias Saou 3.5.15-1 - Update to 3.5.15. - Move desktop icon to datadir/icons/hicolor.