2 # - test and add other browsers
5 %bcond_without qt # disable qt wrapper
7 Summary: DjVu viewers, encoders and utilities
8 Summary(pl): DjVu - przegl±darki, dekodery oraz narzêdzia
13 Group: Applications/Graphics
14 Source0: http://dl.sourceforge.net/djvu/%{name}-%{version}.tar.gz
15 # Source0-md5: 4a4c5a36799e73bd93afc4fa5d69b315
16 Patch0: %{name}-opt.patch
17 Patch1: %{name}-nostrip.patch
18 Patch2: %{name}-desktop.patch
19 URL: http://djvu.sourceforge.net/
20 BuildRequires: autoconf >= 2.50
21 BuildRequires: automake
22 BuildRequires: libjpeg-devel
23 BuildRequires: libstdc++-devel
24 %{?with_qt:BuildRequires: qt-devel >= 3.0.5}
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define _plugindir %{_libdir}/browser-plugins
30 # list of supported browsers, in free form text
31 %define browsers mozilla, netscape
34 DjVu is a web-centric format and software platform for distributing
35 documents and images. DjVu content downloads faster, displays and
36 renders faster, looks nicer on a screen, and consume less client
37 resources than competing formats. DjVu was originally developed at
38 AT&T Labs-Research by Leon Bottou, Yann LeCun, Patrick Haffner, and
39 many others. In March 2000, AT&T sold DjVu to LizardTech Inc. who now
40 distributes Windows/Mac plug-ins, and commercial encoders (mostly on
43 In an effort to promote DjVu as a Web standard, the LizardTech
44 management was enlightened enough to release the reference
45 implementation of DjVu under the GNU GPL in October 2000. DjVuLibre
46 (which means free DjVu), is an enhanced version of that code
47 maintained by the original inventors of DjVu. It is compatible with
48 version 3.5 of the LizardTech DjVu software suite.
50 This package of DjVulibre 3.5 contains:
51 - A full-fledged wavelet-based compressor for pictures.
52 - A simple compressor for bitonal (black and white) scanned pages.
53 - A compressor for palettized images (a la GIF/PNG).
54 - A set of utilities to manipulate and assemble DjVu images and
56 - A set of decoders to convert DjVu to a number of other formats.
57 - An up-to-date version of the C++ DjVu Reference Library.
59 Following elements are placed in other subpackages:
60 - a standalone DjVu viewer based on the Qt library.
61 - A browser plugin that works with most Unix browsers.
64 DjVu jest przeznaczonym g³ównie dla WWW formatem i platform±
65 programow± do dystrybucji dokumentów i obrazków. Dane w DjVu ¶ci±gaj±
66 siê szybciej, wy¶wietlaj± szybciej, wygl±daj± ³adniej na ekranie i
67 zajmuj± mniej zasobów po stronie klienckiej ni¿ inne formaty. DjVu
68 oryginalnie zosta³ stworzony w AT&T Labs-Research przez Leona Bottou,
69 Yanna LeCun, Patricka Haffnera i wielu innych. W marcu 2000 AT&T
70 sprzeda³o DjVu firmie LizardTech Inc., które teraz rozpowszechnia
71 wtyczki dla Windows i Maca oraz komercyjne kodery (g³ównie dla
74 Aby wypromowaæ DjVu jako sieciowy standard, LizardTech udostêpni³
75 wzorcow± implementacjê DjVu na licencji GPL w pa¼dzierniku 2000.
76 DjVuLibre (czyli wolne DjVu) jest rozszerzon± wersj± tego kodu
77 rozwijan± przez pomys³odawców DjVu. Jest kompatybilna z wersj±
78 3.5 oprogramowania LizardTech DjVu.
80 Ten pakiet zawiera: bibliotekê w C++, zestaw kompresorów, dekoderów
81 i narzêdzi do plików w formacie DjVu. Przegl±darka oraz wtyczki do
82 przegl±darek znajduj± siê w innych podpakietach.
85 Summary: Header file for DjVu library
86 Summary(pl): Plik nag³ówkowy biblioteki DjVu
87 Group: Development/Libraries
88 Requires: %{name} = %{version}-%{release}
89 Requires: libjpeg-devel
90 Requires: libstdc++-devel
93 Header file for DjVu library.
95 %description devel -l pl
96 Plik nag³ówkowy biblioteki DjVu.
99 Summary: Qt-based DjVu viewer
100 Summary(pl): Oparta o Qt przegl±darka DjVu
101 Group: X11/Applications
102 Requires: %{name} = %{version}-%{release}
106 Qt-based DjVu viewer.
108 %description djview -l pl
109 Oparta o Qt przegl±darka DjVu.
111 %package -n browser-plugin-%{name}
112 Summary: DjVu browser plugin
113 Summary(pl): Wtyczka DjVu do przegl±derek WWW
115 Requires: %{name}-djview = %{version}-%{release}
116 Requires: browser-plugins(%{_target_cpu})
117 Obsoletes: mozilla-plugin-djvulibre
118 Obsoletes: netscape-plugin-djvulibre
119 Obsoletes: djview-netscape
120 # for migrate purposes (greedy poldek upgrade)
121 Provides: mozilla-plugin-djvulibre
122 Provides: netscape-plugin-djvulibre
124 %description -n browser-plugin-%{name}
125 DjVu plugin for Mozilla and Mozilla-based browsers.
127 Supported browsers: %{browsers}.
129 %description -n browser-plugin-%{name} -l pl
130 Wtyczka DjVu do przegl±darek zgodnych z Mozill±.
132 Obs³ugiwane przegl±darki: %{browsers}.
141 cp -f /usr/share/automake/config.sub config
142 %{__aclocal} -I config -I gui/desktop
144 QT_LIBS="-L%{_libdir} -lqt-mt"; export QT_LIBS
145 QT_CFLAGS="-I%{_includedir}/qt"; export QT_CFLAGS
147 PTHREAD_LIBS="-lpthread"
152 rm -rf $RPM_BUILD_ROOT
153 install -d $RPM_BUILD_ROOT%{_plugindir}
155 # pass dtop_* to allow build w/o gnome/kde/etc. installed
157 DESTDIR=$RPM_BUILD_ROOT \
158 plugindir=%{_plugindir} \
159 dtop_applications=%{_desktopdir} \
160 dtop_icons=%{_iconsdir} \
161 dtop_mimelnk=%{_datadir}/mimelnk \
163 dtop_pixmaps=%{_pixmapsdir} \
165 dtop_application_registry=
168 rm -rf $RPM_BUILD_ROOT
170 %post -p /sbin/ldconfig
171 %postun -p /sbin/ldconfig
173 %triggerin -n browser-plugin-%{name} -- mozilla
174 %nsplugin_install -d %{_libdir}/mozilla/plugins nsdejavu.so
176 %triggerun -n browser-plugin-%{name} -- mozilla
177 %nsplugin_uninstall -d %{_libdir}/mozilla/plugins nsdejavu.so
179 %triggerin -n browser-plugin-%{name} -- netscape-common
180 %nsplugin_install -d %{_libdir}/netscape/plugins nsdejavu.so
182 %triggerun -n browser-plugin-%{name} -- netscape-common
183 %nsplugin_uninstall -d %{_libdir}/netscape/plugins nsdejavu.so
186 %defattr(644,root,root,755)
187 %doc COPYRIGHT NEWS README TODO doc/*
188 %attr(755,root,root) %{_bindir}/[!d]*
189 %attr(755,root,root) %{_bindir}/d[!j]*
190 %attr(755,root,root) %{_bindir}/djv[!i]*
191 %attr(755,root,root) %{_libdir}/libdjvulibre.so.*.*.*
192 %{_mandir}/man1/[!dn]*
193 %{_mandir}/man1/d[!j]*
194 %{_mandir}/man1/djv[!i]*
195 %lang(ja) %{_mandir}/ja/man1/[!dn]*
196 %lang(ja) %{_mandir}/ja/man1/d[!j]*
197 %lang(ja) %{_mandir}/ja/man1/djv[!i]*
198 %dir %{_datadir}/djvu
199 %{_datadir}/djvu/languages.xml
200 %dir %{_datadir}/djvu/osi
201 %lang(de) %{_datadir}/djvu/osi/de
202 %{_datadir}/djvu/osi/en
203 %lang(fr) %{_datadir}/djvu/osi/fr
204 %lang(ja) %{_datadir}/djvu/osi/ja
205 %lang(zh) %{_datadir}/djvu/osi/zh
206 %{_datadir}/djvu/pubtext
209 %defattr(644,root,root,755)
210 %attr(755,root,root) %{_libdir}/libdjvulibre.so
211 %{_libdir}/libdjvulibre.la
212 %{_includedir}/libdjvu
216 %defattr(644,root,root,755)
217 %attr(755,root,root) %{_bindir}/djview
218 %{_mandir}/man1/djview.1*
219 %lang(ja) %{_mandir}/ja/man1/djview.1*
220 %{_datadir}/mimelnk/image/x-djvu.desktop
221 %{_desktopdir}/djview.desktop
222 %{_iconsdir}/hicolor/*/mimetypes/djvu.png
223 %{_pixmapsdir}/djvu.png
225 %files -n browser-plugin-%{name}
226 %defattr(644,root,root,755)
227 %attr(755,root,root) %{_plugindir}/*.so
228 %{_mandir}/man1/nsdejavu.1*
229 %lang(ja) %{_mandir}/ja/man1/nsdejavu.1*