3 %bcond_without qt # disable qt wrapper
5 Summary: DjVu viewers, encoders and utilities
6 Summary(pl): DjVu - przegl±darki, dekodery oraz narzêdzia
11 Group: Applications/Graphics
12 Source0: http://dl.sourceforge.net/djvu/%{name}-%{version}.tar.gz
13 # Source0-md5: 73fd6d4f92832b85a91529b7bb3b7710
14 Patch0: %{name}-opt.patch
15 Patch1: %{name}-nostrip.patch
16 Patch2: %{name}-desktop.patch
17 Patch3: %{name}-link.patch
18 URL: http://djvu.sourceforge.net/
19 BuildRequires: autoconf >= 2.50
20 BuildRequires: automake
21 BuildRequires: libjpeg-devel
22 BuildRequires: libstdc++-devel
23 %{?with_qt:BuildRequires: qt-devel >= 3.0.5}
24 BuildRequires: rpmbuild(macros) >= 1.357
25 %{?with_qt:BuildRequires: xorg-lib-libXt-devel}
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 DjVu is a web-centric format and software platform for distributing
31 documents and images. DjVu content downloads faster, displays and
32 renders faster, looks nicer on a screen, and consume less client
33 resources than competing formats. DjVu was originally developed at
34 AT&T Labs-Research by Leon Bottou, Yann LeCun, Patrick Haffner, and
35 many others. In March 2000, AT&T sold DjVu to LizardTech Inc. who now
36 distributes Windows/Mac plug-ins, and commercial encoders (mostly on
39 In an effort to promote DjVu as a Web standard, the LizardTech
40 management was enlightened enough to release the reference
41 implementation of DjVu under the GNU GPL in October 2000. DjVuLibre
42 (which means free DjVu), is an enhanced version of that code
43 maintained by the original inventors of DjVu. It is compatible with
44 version 3.5 of the LizardTech DjVu software suite.
46 This package of DjVulibre 3.5 contains:
47 - A full-fledged wavelet-based compressor for pictures.
48 - A simple compressor for bitonal (black and white) scanned pages.
49 - A compressor for palettized images (a la GIF/PNG).
50 - A set of utilities to manipulate and assemble DjVu images and
52 - A set of decoders to convert DjVu to a number of other formats.
53 - An up-to-date version of the C++ DjVu Reference Library.
55 Following elements are placed in other subpackages:
56 - a standalone DjVu viewer based on the Qt library.
57 - A browser plugin that works with most Unix browsers.
60 DjVu jest przeznaczonym g³ównie dla WWW formatem i platform±
61 programow± do dystrybucji dokumentów i obrazków. Dane w DjVu ¶ci±gaj±
62 siê szybciej, wy¶wietlaj± szybciej, wygl±daj± ³adniej na ekranie i
63 zajmuj± mniej zasobów po stronie klienckiej ni¿ inne formaty. DjVu
64 oryginalnie zosta³ stworzony w AT&T Labs-Research przez Leona Bottou,
65 Yanna LeCun, Patricka Haffnera i wielu innych. W marcu 2000 AT&T
66 sprzeda³o DjVu firmie LizardTech Inc., które teraz rozpowszechnia
67 wtyczki dla Windows i Maca oraz komercyjne kodery (g³ównie dla
70 Aby wypromowaæ DjVu jako sieciowy standard, LizardTech udostêpni³
71 wzorcow± implementacjê DjVu na licencji GPL w pa¼dzierniku 2000.
72 DjVuLibre (czyli wolne DjVu) jest rozszerzon± wersj± tego kodu
73 rozwijan± przez pomys³odawców DjVu. Jest kompatybilna z wersj± 3.5
74 oprogramowania LizardTech DjVu.
76 Ten pakiet zawiera: bibliotekê w C++, zestaw kompresorów, dekoderów i
77 narzêdzi do plików w formacie DjVu. Przegl±darka oraz wtyczki do
78 przegl±darek znajduj± siê w innych podpakietach.
81 Summary: Header file for DjVu library
82 Summary(pl): Plik nag³ówkowy biblioteki DjVu
83 Group: Development/Libraries
84 Requires: %{name} = %{version}-%{release}
85 Requires: libjpeg-devel
86 Requires: libstdc++-devel
89 Header file for DjVu library.
91 %description devel -l pl
92 Plik nag³ówkowy biblioteki DjVu.
95 Summary: Qt-based DjVu viewer
96 Summary(pl): Oparta o Qt przegl±darka DjVu
97 Group: X11/Applications
98 Requires: %{name} = %{version}-%{release}
102 Qt-based DjVu viewer.
104 %description djview -l pl
105 Oparta o Qt przegl±darka DjVu.
107 %package -n browser-plugin-%{name}
108 Summary: DjVu browser plugin
109 Summary(pl): Wtyczka DjVu do przegl±derek WWW
111 Requires: %{name}-djview = %{version}-%{release}
112 Requires: browser-plugins >= 2.0
113 Requires: browser-plugins(%{_target_base_arch})
114 # for migrate purposes (greedy poldek upgrade)
115 Provides: mozilla-plugin-djvulibre
116 Provides: netscape-plugin-djvulibre
117 Obsoletes: djview-netscape
118 Obsoletes: mozilla-plugin-djvulibre
119 Obsoletes: netscape-plugin-djvulibre
121 %description -n browser-plugin-%{name}
122 DjVu plugin for Mozilla and Mozilla-based browsers.
124 %description -n browser-plugin-%{name} -l pl
125 Wtyczka DjVu do przegl±darek zgodnych z Mozill±.
135 cp -f /usr/share/automake/config.sub config
136 %{__aclocal} -I config
138 export QT_LIBS="-L%{_libdir} -lqt-mt"
139 export QT_CFLAGS="-I%{_includedir}/qt"
141 PTHREAD_LIBS="-lpthread"
146 rm -rf $RPM_BUILD_ROOT
147 install -d $RPM_BUILD_ROOT%{_browserpluginsdir}
150 DESTDIR=$RPM_BUILD_ROOT \
151 plugindir=%{_browserpluginsdir}
153 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/djview.1
154 echo '.so djview3.1' > $RPM_BUILD_ROOT%{_mandir}/man1/djview.1
155 echo '.so djview3.1' > $RPM_BUILD_ROOT%{_mandir}/ja/man1/djview.1
158 rm -rf $RPM_BUILD_ROOT
160 %post -p /sbin/ldconfig
161 %postun -p /sbin/ldconfig
163 %post -n browser-plugin-%{name}
164 %update_browser_plugins
166 %postun -n browser-plugin-%{name}
167 if [ "$1" = 0 ]; then
168 %update_browser_plugins
172 %defattr(644,root,root,755)
173 %doc COPYRIGHT NEWS README TODO doc/*
174 %attr(755,root,root) %{_bindir}/[!d]*
175 %attr(755,root,root) %{_bindir}/d[!j]*
176 %attr(755,root,root) %{_bindir}/djv[!i]*
177 %attr(755,root,root) %{_libdir}/libdjvulibre.so.*.*.*
178 %{_mandir}/man1/[!dn]*
179 %{_mandir}/man1/d[!j]*
180 %{_mandir}/man1/djv[!i]*
181 %lang(ja) %{_mandir}/ja/man1/[!dn]*
182 %lang(ja) %{_mandir}/ja/man1/d[!j]*
183 %lang(ja) %{_mandir}/ja/man1/djv[!i]*
184 %dir %{_datadir}/djvu
185 %dir %{_datadir}/djvu/osi
186 %{_datadir}/djvu/osi/languages.xml
187 %lang(de) %{_datadir}/djvu/osi/de
188 %{_datadir}/djvu/osi/en
189 %lang(fr) %{_datadir}/djvu/osi/fr
190 %lang(ja) %{_datadir}/djvu/osi/ja
191 %lang(zh) %{_datadir}/djvu/osi/zh
192 %{_datadir}/djvu/pubtext
195 %defattr(644,root,root,755)
196 %attr(755,root,root) %{_libdir}/libdjvulibre.so
197 %{_libdir}/libdjvulibre.la
198 %{_includedir}/libdjvu
199 %{_pkgconfigdir}/ddjvuapi.pc
203 %defattr(644,root,root,755)
204 %attr(755,root,root) %{_bindir}/djview
205 %attr(755,root,root) %{_bindir}/djview3
206 %dir %{_datadir}/djvu/djview3
207 %lang(de) %{_datadir}/djvu/djview3/de
208 %lang(fr) %{_datadir}/djvu/djview3/fr
209 %lang(ja) %{_datadir}/djvu/djview3/ja
210 %{_mandir}/man1/djview.1*
211 %{_mandir}/man1/djview3.1*
212 %lang(ja) %{_mandir}/ja/man1/djview.1*
213 %lang(ja) %{_mandir}/ja/man1/djview3.1*
214 %{_desktopdir}/djvulibre-djview3.desktop
215 %{_iconsdir}/hicolor/*/apps/djvulibre-djview3.png
216 %{_iconsdir}/hicolor/*/mimetypes/mime-image-vnd.djvu.png
218 %files -n browser-plugin-%{name}
219 %defattr(644,root,root,755)
220 %attr(755,root,root) %{_browserpluginsdir}/nsdejavu.so
221 %{_mandir}/man1/nsdejavu.1*
222 %lang(ja) %{_mandir}/ja/man1/nsdejavu.1*