384 lines
13 KiB
RPMSpec
384 lines
13 KiB
RPMSpec
#
|
|
# spec file for package djvulibre (Version 3.5.22)
|
|
#
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: djvulibre
|
|
BuildRequires: fdupes libdrm-devel libjpeg-devel libtiff-devel qt3-devel qt3-devel-tools update-desktop-files xorg-x11-devel
|
|
License: GPL v2 or later
|
|
Group: Productivity/Graphics/Other
|
|
AutoReqProv: on
|
|
Version: 3.5.22
|
|
Release: 1
|
|
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
|
|
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 djview3
|
|
License: GPL v2 or later
|
|
Summary: DjView3 is a portable DjVu Qt3 based viewer and browser plugin
|
|
Group: Productivity/Graphics/Other
|
|
Requires: djvulibre = %{version}
|
|
Conflicts: djvulibre-djview4
|
|
|
|
%description djview3
|
|
DjView3 is a viewer and browser plugin for DjVu documents, based on the
|
|
DjVuLibre-3.5 library and the Qt3 toolkit.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Dr Bill C Riemers <docbill@users.sourceforge.net>
|
|
Leon Bottou <leonb@users.sourceforge.net>
|
|
Yann LeCun <profshadoko@users.sourceforge.net>
|
|
|
|
%package -n libdjvulibre21
|
|
License: GPL v2 or later
|
|
Summary: Libraries of Open Source Implementation of DjVu - djvulibre
|
|
Group: Productivity/Graphics/Other
|
|
|
|
%description -n libdjvulibre21
|
|
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>
|
|
|
|
%package -n libdjvulibre-devel
|
|
License: GPL v2 or later
|
|
Summary: Libraries of Open Source Implementation of DjVu - djvulibre
|
|
Group: Development/Libraries/Other
|
|
Requires: libdjvulibre21 = %{version}, libjpeg-devel
|
|
|
|
%description -n libdjvulibre-devel
|
|
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>
|
|
|
|
%package doc
|
|
License: GPL v2 or later
|
|
Summary: Documentation for the the DjVu - djvulibre
|
|
Group: Productivity/Graphics/Other
|
|
AutoReqProv: on
|
|
|
|
%description doc
|
|
This package contains the documentation for the 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
|
|
# 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"
|
|
#%{?jobs:-j%jobs}
|
|
|
|
%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
|
|
#fix wrong permissions
|
|
%__chmod 644 desktopfiles/djvulibre-djview3.desktop
|
|
#delete shebank from desktop file
|
|
%__sed -i '/#!\/usr\/bin\/env xdg-open/d' desktopfiles/djvulibre-djview3.desktop
|
|
%suse_update_desktop_file -r -i djvulibre-djview3 Graphics Viewer
|
|
%fdupes $RPM_BUILD_ROOT
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%post -n libdjvulibre21
|
|
# LIBS: Run ldconfig
|
|
/sbin/ldconfig
|
|
|
|
%postun -n libdjvulibre21
|
|
# LIBS: Run ldconfig
|
|
/sbin/ldconfig
|
|
exit 0
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc COPYING COPYRIGHT INSTALL NEWS README TODO
|
|
%doc %{_mandir}/man1/*
|
|
%doc %{_mandir}/ja/*
|
|
%{_datadir}/djvu
|
|
%{_bindir}/*
|
|
%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
|
|
%{_prefix}/share/icons/hicolor/22x22/mimetypes/djvu.png
|
|
%{_prefix}/share/icons/hicolor/32x32/mimetypes/djvu.png
|
|
%{_prefix}/share/icons/hicolor/48x48/mimetypes/djvu.png
|
|
# these go to djview3 subpackage
|
|
%exclude %{_prefix}/share/pixmaps/djvulibre-djview3.png
|
|
%exclude %{_libdir}/browser-plugins/nsdejavu.so
|
|
%exclude %{_datadir}/djvu/djview3
|
|
%exclude %{_bindir}/djview*
|
|
%exclude %doc %{_mandir}/man1/djview*
|
|
%exclude %doc %{_mandir}/ja/man1/djview*
|
|
%exclude %doc %{_mandir}/man1/nsdejavu*
|
|
%exclude %doc %{_mandir}/ja/man1/nsdejavu*
|
|
|
|
%files djview3
|
|
%defattr(-,root,root)
|
|
%doc %{_mandir}/man1/djview*
|
|
%doc %{_mandir}/ja/man1/djview*
|
|
%doc %{_mandir}/man1/nsdejavu*
|
|
%doc %{_mandir}/ja/man1/nsdejav*
|
|
%{_prefix}/share/pixmaps/djvulibre-djview3.png
|
|
%{_libdir}/browser-plugins/nsdejavu.so
|
|
%{_bindir}/djview*
|
|
%{_prefix}/share/applications/djvulibre-djview3.desktop
|
|
|
|
%files -n libdjvulibre21
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libdjvulibre*
|
|
%exclude %{_libdir}/libdjvulibre.so
|
|
%exclude %{_libdir}/libdjvulibre.la
|
|
|
|
%files -n libdjvulibre-devel
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libdjvulibre.so
|
|
%{_libdir}/libdjvulibre.la
|
|
%dir %{_prefix}/include/libdjvu
|
|
%{_prefix}/include/libdjvu/*.h
|
|
%{_libdir}/pkgconfig/ddjvuapi.pc
|
|
|
|
%files doc
|
|
%defattr(-,root,root,-)
|
|
%doc doc/*
|
|
|
|
%changelog
|
|
* Mon Jun 08 2009 mseben@suse.cz
|
|
- updated to version 3.5.22
|
|
* backported djview4 version of nsdejavu.so
|
|
* various bug fixes
|
|
- splitted to doc package
|
|
* Mon Aug 25 2008 lmichnovic@suse.cz
|
|
- update to version 3.5.21
|
|
* Speed improvement on multicore platforms
|
|
* Ddjvu now can produce pdf output.
|
|
- renamed lib to libdjvulibre21 according to Shared Library
|
|
Packaging Policy
|
|
* Mon Dec 10 2007 lmichnovic@suse.cz
|
|
- update to version 3.5.20
|
|
obsoletes semicolon.patch, strip.patch
|
|
* Csepdjvu handle gsdjvu hyperlink comments.
|
|
* Djvudigital therefore handles hyperlinks.
|
|
* Mon Sep 10 2007 lmichnovic@suse.cz
|
|
- moved desktop file to djview3 subpackage [#307485]
|
|
* Fri Jul 13 2007 lmichnovic@suse.cz
|
|
- added trailing semicolon in desktop file (semicolon.patch)
|
|
- splitted off djview3 (Qt3) to make possible have alternative
|
|
djview4 (Qt4) package
|
|
* Mon Jun 11 2007 lmichnovic@suse.cz
|
|
- fixed djvulibre-devel's Requires with %%{version}; [#282833]
|
|
* Wed Jun 06 2007 lmichnovic@suse.cz
|
|
- renamed lib to libdjvulibre15 according to Shared Library
|
|
Packaging Policy
|
|
- splitted of devel package
|
|
- fixed calling ldconfig in post scripts
|
|
* 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
|