2007-01-16 00:10:16 +01:00
|
|
|
#
|
2011-03-07 15:00:04 +01:00
|
|
|
# spec file for package djvulibre
|
2007-01-16 00:10:16 +01:00
|
|
|
#
|
2011-03-07 15:00:04 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:10:16 +01:00
|
|
|
#
|
2008-08-26 01:52:50 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:10:16 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-08-26 01:52:50 +02:00
|
|
|
|
2007-01-16 00:10:16 +01:00
|
|
|
Name: djvulibre
|
2009-06-16 00:40:57 +02:00
|
|
|
BuildRequires: fdupes libdrm-devel libjpeg-devel libtiff-devel qt3-devel qt3-devel-tools update-desktop-files xorg-x11-devel
|
2010-11-18 16:08:01 +01:00
|
|
|
License: GPLv2+
|
2007-01-16 00:10:16 +01:00
|
|
|
Group: Productivity/Graphics/Other
|
2007-12-10 23:51:48 +01:00
|
|
|
AutoReqProv: on
|
2011-03-07 10:09:01 +01:00
|
|
|
Version: 3.5.24
|
2011-05-03 09:05:56 +02:00
|
|
|
Release: 2
|
2007-12-10 23:51:48 +01:00
|
|
|
Url: http://djvu.sourceforge.net
|
2007-01-16 00:10:16 +01:00
|
|
|
Summary: An Open Source Implementation of DjVu
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2007-04-03 21:19:08 +02:00
|
|
|
Patch1: %{name}-%{version}-nsdejavu.patch
|
|
|
|
Patch2: %{name}-%{version}-filepath.patch
|
2011-05-02 16:50:50 +02:00
|
|
|
# PATCH-FIX-UPSTREAM djvulibre-3.5.23-gcc46.patch idoenmez@suse.de -- Fix gcc 4.6 compilation, upstream bug #3256513
|
|
|
|
Patch3: djvulibre-3.5.23-gcc46.patch
|
2007-01-16 00:10:16 +01:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-13 20:27:02 +02:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Dr Bill C Riemers <docbill@users.sourceforge.net>
|
|
|
|
Leon Bottou <leonb@users.sourceforge.net>
|
|
|
|
Yann LeCun <profshadoko@users.sourceforge.net>
|
|
|
|
|
|
|
|
%package djview3
|
2010-11-18 16:08:01 +01:00
|
|
|
License: GPLv2+
|
2007-07-13 20:27:02 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-20 23:28:28 +02:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Dr Bill C Riemers <docbill@users.sourceforge.net>
|
|
|
|
Leon Bottou <leonb@users.sourceforge.net>
|
|
|
|
Yann LeCun <profshadoko@users.sourceforge.net>
|
|
|
|
|
2008-08-26 01:52:50 +02:00
|
|
|
%package -n libdjvulibre21
|
2010-11-18 16:08:01 +01:00
|
|
|
License: GPLv2+
|
2007-04-20 23:28:28 +02:00
|
|
|
Summary: Libraries of Open Source Implementation of DjVu - djvulibre
|
|
|
|
Group: Productivity/Graphics/Other
|
|
|
|
|
2008-08-26 01:52:50 +02:00
|
|
|
%description -n libdjvulibre21
|
2007-06-08 00:34:22 +02:00
|
|
|
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
|
2010-11-18 16:08:01 +01:00
|
|
|
License: GPLv2+
|
2007-06-08 00:34:22 +02:00
|
|
|
Summary: Libraries of Open Source Implementation of DjVu - djvulibre
|
2007-12-10 23:51:48 +01:00
|
|
|
Group: Development/Libraries/Other
|
2008-08-26 01:52:50 +02:00
|
|
|
Requires: libdjvulibre21 = %{version}, libjpeg-devel
|
2007-06-08 00:34:22 +02:00
|
|
|
|
|
|
|
%description -n libdjvulibre-devel
|
2007-04-20 23:28:28 +02:00
|
|
|
Libraries of Open Source Implementation of DjVu - djvulibre.
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-06-16 00:40:57 +02:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Dr Bill C Riemers <docbill@users.sourceforge.net>
|
|
|
|
Leon Bottou <leonb@users.sourceforge.net>
|
|
|
|
Yann LeCun <profshadoko@users.sourceforge.net>
|
|
|
|
|
|
|
|
%package doc
|
2010-11-18 16:08:01 +01:00
|
|
|
License: GPLv2+
|
2009-06-16 00:40:57 +02:00
|
|
|
Summary: Documentation for the the DjVu - djvulibre
|
|
|
|
Group: Productivity/Graphics/Other
|
|
|
|
AutoReqProv: on
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains the documentation for the DjVu - djvulibre
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-16 00:10:16 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Dr Bill C Riemers <docbill@users.sourceforge.net>
|
|
|
|
Leon Bottou <leonb@users.sourceforge.net>
|
|
|
|
Yann LeCun <profshadoko@users.sourceforge.net>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
%patch1
|
2007-04-03 21:19:08 +02:00
|
|
|
%patch2
|
2011-05-02 16:50:50 +02:00
|
|
|
%patch3 -p1
|
2007-04-03 21:19:08 +02:00
|
|
|
# removing cvsignore files in version 3.5.19
|
|
|
|
rm -rf doc/minilisp/.cvsignore
|
2007-01-16 00:10:16 +01:00
|
|
|
|
|
|
|
%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}/ \
|
2010-11-18 16:07:55 +01:00
|
|
|
--with-qt=/usr/%_lib/qt3 \
|
|
|
|
--enable-djview
|
2007-07-13 20:27:02 +02:00
|
|
|
make OPTS="$RPM_OPT_FLAGS -Wall -fmessage-length=0 -DNO_DEBUG"
|
2011-03-07 10:09:01 +01:00
|
|
|
#%%{?jobs:-j%%jobs}
|
2007-01-16 00:10:16 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2007-04-03 21:19:08 +02:00
|
|
|
# Installing desktop file and icons in this section is more sane
|
2011-03-07 10:09:01 +01:00
|
|
|
# then in %%post section as author intended because of SuSE translation
|
2007-04-03 21:19:08 +02:00
|
|
|
# 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
|
2009-06-16 00:40:57 +02:00
|
|
|
#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
|
2007-04-03 21:19:08 +02:00
|
|
|
%suse_update_desktop_file -r -i djvulibre-djview3 Graphics Viewer
|
2009-06-16 00:40:57 +02:00
|
|
|
%fdupes $RPM_BUILD_ROOT
|
2007-01-16 00:10:16 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2008-08-26 01:52:50 +02:00
|
|
|
%post -n libdjvulibre21
|
2007-04-03 21:19:08 +02:00
|
|
|
# LIBS: Run ldconfig
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
2008-08-26 01:52:50 +02:00
|
|
|
%postun -n libdjvulibre21
|
2009-06-16 00:40:57 +02:00
|
|
|
# LIBS: Run ldconfig
|
|
|
|
/sbin/ldconfig
|
|
|
|
exit 0
|
2007-04-03 21:19:08 +02:00
|
|
|
|
2007-01-16 00:10:16 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2009-06-16 00:40:57 +02:00
|
|
|
%doc COPYING COPYRIGHT INSTALL NEWS README TODO
|
2007-01-16 00:10:16 +01:00
|
|
|
%doc %{_mandir}/man1/*
|
|
|
|
%doc %{_mandir}/ja/*
|
|
|
|
%{_datadir}/djvu
|
|
|
|
%{_bindir}/*
|
2007-04-03 21:19:08 +02:00
|
|
|
%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
|
2007-07-13 20:27:02 +02:00
|
|
|
# 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*
|
2007-04-03 21:19:08 +02:00
|
|
|
%{_prefix}/share/pixmaps/djvulibre-djview3.png
|
2007-07-13 20:27:02 +02:00
|
|
|
%{_libdir}/browser-plugins/nsdejavu.so
|
|
|
|
%{_bindir}/djview*
|
2007-09-13 18:41:01 +02:00
|
|
|
%{_prefix}/share/applications/djvulibre-djview3.desktop
|
2007-01-16 00:10:16 +01:00
|
|
|
|
2008-08-26 01:52:50 +02:00
|
|
|
%files -n libdjvulibre21
|
2007-04-20 23:28:28 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libdjvulibre*
|
2007-06-08 00:34:22 +02:00
|
|
|
%exclude %{_libdir}/libdjvulibre.so
|
2007-04-20 23:28:28 +02:00
|
|
|
%exclude %{_libdir}/libdjvulibre.la
|
|
|
|
|
2007-06-08 00:34:22 +02:00
|
|
|
%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
|
|
|
|
|
2009-06-16 00:40:57 +02:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc doc/*
|
|
|
|
|
2007-04-03 21:19:08 +02:00
|
|
|
%changelog
|