djvulibre/djvulibre.spec

269 lines
9.6 KiB
RPMSpec

#
# spec file for package djvulibre (Version 3.5.19)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: djvulibre
BuildRequires: libdrm-devel libjpeg-devel libtiff-devel qt3-devel qt3-devel-tools update-desktop-files xorg-x11-devel
License: GNU General Public License (GPL)
Group: Productivity/Graphics/Other
Autoreqprov: on
Version: 3.5.19
Release: 3
# The following is a kludge to get updating djvulibre to after the split work
PreReq: libdjvulibre
URL: http://djvu.sourceforge.net
Summary: An Open Source Implementation of DjVu
Source: %{name}-%{version}.tar.bz2
Patch1: %{name}-%{version}-nsdejavu.patch
Patch2: %{name}-%{version}-filepath.patch
Patch3: %{name}-%{version}-strip.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
DjVu is a Web-centric format and software platform for distributing
documents and images. DjVuLibre is an open source (GPL) implementation
of DjVu, including viewers, browser plug-ins, decoders, simple
encoders, and utilities. DjVu can advantageously replace PDF, PS, TIFF,
JPEG, and GIF for distributing scanned documents, digital documents, or
high-resolution pictures. DjVu content downloads faster, displays and
renders faster, looks nicer on a screen, and consumes less client
resources than competing formats. DjVu images display instantly and can
be smoothly zoomed and panned with no lengthy rerendering. DjVu is used
by hundreds of academic, commercial, governmental, and noncommercial
Web sites around the world.
Authors:
--------
Dr Bill C Riemers <docbill@users.sourceforge.net>
Leon Bottou <leonb@users.sourceforge.net>
Yann LeCun <profshadoko@users.sourceforge.net>
%package -n libdjvulibre
Summary: Libraries of Open Source Implementation of DjVu - djvulibre
Group: Productivity/Graphics/Other
%description -n libdjvulibre
Libraries of Open Source Implementation of DjVu - djvulibre.
Authors:
--------
Dr Bill C Riemers <docbill@users.sourceforge.net>
Leon Bottou <leonb@users.sourceforge.net>
Yann LeCun <profshadoko@users.sourceforge.net>
%prep
%setup
%patch1
%patch2
%patch3
# removing cvsignore files in version 3.5.19
rm -rf doc/minilisp/.cvsignore
%build
# specifying --x-libraries and -includes is needed due to new paths in X.org 7.x
# delete them if builds against X.org 6.9 or lower
CFLAGS="$RPM_OPT_FLAGS -I$QTDIR/include -Wall" \
CXXFLAGS="$RPM_OPT_FLAGS -I$QTDIR/include -Wall -fmessage-length=0 -fno-strict-aliasing" \
QT_LIBS="-L/usr/%_lib/qt3/%{_lib} -lqt-mt" \
./configure \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--mandir=%{_mandir} \
--x-includes=/usr/include/ \
--x-libraries=/usr/%{_lib}/ \
--with-qt=/usr/%_lib/qt3
make OPTS="$RPM_OPT_FLAGS -Wall -fmessage-length=0 -DNO_DEBUG"
%install
make install DESTDIR=$RPM_BUILD_ROOT
# Installing desktop file and icons in this section is more sane
# then in %post section as author intended because of SuSE translation
# process and little less pain with getting those scripts working
mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/22x22/mimetypes/
mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/32x32/mimetypes/
mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/48x48/mimetypes/
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
install -m 644 desktopfiles/hi22-djvu.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/22x22/mimetypes/djvu.png
install -m 644 desktopfiles/hi32-djvu.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/32x32/mimetypes/djvu.png
install -m 644 desktopfiles/hi48-djvu.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/48x48/mimetypes/djvu.png
install -m 644 desktopfiles/hi32-djview3.png $RPM_BUILD_ROOT/usr/share/pixmaps/djvulibre-djview3.png
ls
%suse_update_desktop_file -r -i djvulibre-djview3 Graphics Viewer
%clean
rm -rf $RPM_BUILD_ROOT
%post
# LIBS: Run ldconfig
/sbin/ldconfig
%postun
# LIBS: Run ldconfig
/sbin/ldconfig
exit 0
%files
%defattr(-,root,root)
%doc COPYING COPYRIGHT INSTALL NEWS README TODO doc/*
%doc %{_mandir}/man1/*
%doc %{_mandir}/ja/*
%{_datadir}/djvu
%{_bindir}/*
%{_libdir}/browser-plugins/nsdejavu.so
#%{_datadir}/icons/*
#%{_datadir}/pixmaps/djvu3.png
%dir %{_prefix}/share/icons/hicolor
%dir %{_prefix}/share/icons/hicolor/22x22
%dir %{_prefix}/share/icons/hicolor/22x22/mimetypes
%dir %{_prefix}/share/icons/hicolor/32x32
%dir %{_prefix}/share/icons/hicolor/32x32/mimetypes
%dir %{_prefix}/share/icons/hicolor/48x48
%dir %{_prefix}/share/icons/hicolor/48x48/mimetypes
%dir %{_prefix}/include/libdjvu
%dir %{_prefix}/include/libdjvu
%dir %{_prefix}/include/libdjvu
%{_prefix}/include/libdjvu/*.h
%{_libdir}/pkgconfig/ddjvuapi.pc
%{_prefix}/share/applications/djvulibre-djview3.desktop
%{_prefix}/share/icons/hicolor/22x22/mimetypes/djvu.png
%{_prefix}/share/icons/hicolor/32x32/mimetypes/djvu.png
%{_prefix}/share/icons/hicolor/48x48/mimetypes/djvu.png
%{_prefix}/share/pixmaps/djvulibre-djview3.png
%files -n libdjvulibre
%defattr(-,root,root)
%{_libdir}/libdjvulibre*
%exclude %{_libdir}/libdjvulibre.la
%changelog
* Fri Apr 20 2007 - lmichnovic@suse.cz
- moved libs into new libdjvulibre package [#264978]
- excluding *.la
* Tue Apr 03 2007 - lmichnovic@suse.cz
- installing icons and desktop file in %%install section
* Tue Mar 27 2007 - lmichnovic@suse.cz
- update to version 3.5.19
* DjVuLibre is distributed under either version 2 of the GPL or
(at your option) any later version.
since 3.5.18
* Renamed djview as djview3.
* Various enhancement of DDJVUAPI.
* Partial support for page titles instead of page numbers.
* Clarification of metadata information.
* Fixed djvumake mask separation feature.
* Complain when given a so-called "secure" djvu file.
* Fixed handling of urls with cgi arguments.
* Fixed bug related to caching and ddjvuapi.
* Reorganized ${datadir}/djvu.
* Provide scripts in ${datadir}/djvu/*/desktop to register
the djvu mime types and the djview menu entries.
- obsoletes utf8.patch
* Sat Aug 05 2006 - lmichnovic@suse.cz
- specifying --x-libraries and --x-include due to new paths in new
X.org 7.x.
- added qt3-devel-tools and libtiff-devel into BuildRequires which
enhance functionality
* Wed Jul 12 2006 - lmichnovic@suse.cz
- update to version 3.5.17
- Various enhancement of DDJVUAPI.
- Compiles with the GCC-4.1.
- using MSVC using the provided project files.
- Minor bug fixes in csepdjvu text extraction.
- Fixed leak in csepdjvu, cpaldjvu and cjb2.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 20 2006 - schwab@suse.de
- Don't strip binaries.
* Wed Nov 23 2005 - lmichnovic@suse.cz
- added -fno-strict-aliasing into CXXFLAGS
* Tue Nov 01 2005 - lmichnovic@suse.cz
- upgrade to version 3.5.16
upgrade fixes missing binary any2djvu (#131761)
* Wed Oct 19 2005 - lmichnovic@suse.cz
- fixed invalid extra qualification for build with new gcc 4.1
* Wed Sep 28 2005 - dmueller@suse.de
- add norootforbuild
* Wed May 25 2005 - ltinkl@suse.cz
- fix build with gcc41
* Tue Feb 22 2005 - meissner@suse.de
- fixed XtVa* lists calls 0 -> NULL.
* Tue Feb 01 2005 - meissner@suse.de
- fixed one execl call 0->NULL.
* Wed Sep 29 2004 - ke@suse.de
- Recode README in UTF-8 encoding [#46179].
* Mon Aug 09 2004 - ro@suse.de
- added directory to filelist
* Fri Aug 06 2004 - ltinkl@suse.cz
- update to 3.5.14
* Mon May 17 2004 - ltinkl@suse.cz
- updated to latest version 3.5.13
- redone the patch
- simplified and updated list of packaged files
* Tue Sep 30 2003 - ltinkl@suse.cz
- updated to 3.5.12
- ported the patch
* Mon Aug 25 2003 - ro@suse.de
- fix compile with current gcc
* Wed Jun 04 2003 - mjancar@suse.cz
- update to 3.5.11
* added support for mouse wheel
* added support for LT toolbar control args
* improved csepdjvu option -bgwhite
* Djview and djvups now can print booklets
* Djview main dialogs have a help button
* Djview key space does continuous reading now
* annotation strings now recognize C escape sequences
* and some fixes
- add URL
- use buildroot
- use $RPM_OPT_FLAGS
* Mon Feb 24 2003 - ro@suse.de
- move to libdir/browser-plugins
* Sat Dec 28 2002 - prehak@suse.cz
- fixed to build with gcc-3.3
- added %%clean section
* Thu Oct 31 2002 - uli@suse.de
- update -> 3.5.9 (gcc-3.2, fix for broken command ddjvu, modified
IW44 for ARM processors)
- going down to -O1 on x86-64 to avoid segfault in djview
- cutting optimization on Alpha as well
* Wed Aug 07 2002 - uli@suse.de
- update -> 3.5.8 (fixed printing of b&w documents,fixes for
gcc-3.1)
* Tue Jul 23 2002 - uli@suse.de
- update -> 3.5.7 (minor fixes)
* Fri Jun 28 2002 - uli@suse.de
- build with -O2 on x86-64 to avoid miscompilation
* Fri Jun 07 2002 - uli@suse.de
- update -> 3.5.6:
Added option -bgwhite in cpaldjvu
Removed annoying flicker with djview/Qt3.
Fixed show stopper in djvused.
Fixed bug in djview print dialog.
Added CGI program djvuserve.
* Tue May 14 2002 - uli@suse.de
- find Qt3 in lib64 if applicable
- still doesn't build on x86-64, maybe bin2cpp gets miscompiled
* Thu Apr 18 2002 - uli@suse.de
- fixed to build with gcc 3.1
* Fri Feb 01 2002 - uli@suse.de
- use %%_libdir
* Thu Jan 31 2002 - uli@suse.de
- added plugin to mozilla plugin dir
* Fri Jan 18 2002 - uli@suse.de
- update -> 3.5.3 (builds with Qt3, adds djvups tool)
* Wed Dec 12 2001 - uli@suse.de
- initial package