1 Summary: DjVu viewers, encoders and utilities.
2 Summary(pl): DjVu - przegl±darki, dekodery oraz narzêdzia.
7 Group: Applications/Graphics
8 Source0: ftp://ftp.sourceforge.net/pub/sourceforge/djvu/%{name}-%{version}.tar.gz
9 Patch0: %{name}-DESTDIR.patch
10 Patch1: %{name}-opt.patch
11 URL: http://djvu.sourceforge.net/
12 BuildRequires: autoconf
13 BuildRequires: automake
14 BuildRequires: libjpeg-devel
15 BuildRequires: libstdc++-devel
16 BuildRequires: qt-devel >= 3.0.5
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _xbindir /usr/X11R6/bin
21 %define _xmandir /usr/X11R6/man
22 %define mozdir /usr/X11R6/lib/mozilla/plugins
23 %define nsdir /usr/X11R6/lib/netscape/plugins
26 DjVu is a web-centric format and software platform for distributing
27 documents and images. DjVu content downloads faster, displays and
28 renders faster, looks nicer on a screen, and consume less client
29 resources than competing formats. DjVu was originally developped at
30 AT&T Labs-Research by Leon Bottou, Yann LeCun, Patrick Haffner, and
31 many others. In March 2000, AT&T sold DjVu to LizardTech Inc. who now
32 distributes Windows/Mac plug-ins, and commercial encoders (mostly on
35 In an effort to promote DjVu as a Web standard, the LizardTech
36 management was enlightened enough to release the reference
37 implementation of DjVu under the GNU GPL in October 2000. DjVuLibre
38 (which means free DjVu), is an enhanced version of that code
39 maintained by the original inventors of DjVu. It is compatible with
40 version 3.5 of the LizardTech DjVu software suite.
42 This package of DjVulibre 3.5 contains:
43 - A full-fledged wavelet-based compressor for pictures.
44 - A simple compressor for bitonal (black and white) scanned pages.
45 - A compressor for palettized images (a la GIF/PNG).
46 - A set of utilities to manipulate and assemble DjVu images and
48 - A set of decoders to convert DjVu to a number of other formats.
49 - An up-to-date version of the C++ DjVu Reference Library.
51 Following elements are placed in other subpackages:
52 - a standalone DjVu viewer based on the Qt library.
53 - A browser plugin that works with most Unix browsers.
56 DjVu jest przeznaczonym g³ównie dla WWW formatem i platform±
57 programow± do dystrybucji dokumentów i obrazków. Dane w DjVu ¶ci±gaj±
58 siê szybciej, wy¶wietlaj± szybciej, wygl±daj± ³adniej na ekranie i
59 zajmuj± mniej zasobów po stronie klienckiej ni¿ inne formaty. DjVu
60 oryginalnie zosta³ stworzony w AT&T Labs-Research przez Leona Bottou,
61 Yanna LeCun, Patricka Haffnera i wielu innych. W marcu 2000 AT&T
62 sprzeda³o DjVu firmie LizardTech Inc., które teraz rozpowszechnia
63 wtyczki dla Windows i Maca oraz komercyjne kodery (g³ównie dla
66 Aby wypromowaæ DjVu jako sieciowy standard, LizardTech udostêpni³
67 wzorcow± implementacjê DjVu na licencji GPL w pa¼dzierniku 2000.
68 DjVuLibre (czyli wolne DjVu) jest rozszerzon± wersj± tego kodu
69 rozwijan± przez pomys³odawców DjVu. Jest kompatybilna z wersj±
70 3.5 oprogramowania LizardTech DjVu.
72 Ten pakiet zawiera: bibliotekê w C++, zestaw kompresorów, dekoderów
73 i narzêdzi do plików w formacie DjVu. Przegl±darka oraz wtyczki do
74 przegl±darek znajduj± siê w innych podpakietach.
77 Summary: Qt-based DjVu viewer
78 Summary(pl): Oparta o Qt przegl±darka DjVu
79 Group: X11/Applications
80 Requires: %{name} = %{version}
86 %description djview -l pl
87 Oparta o Qt przegl±darka DjVu.
89 %package -n mozilla-plugin-%{name}
90 Summary: DjVu plugin for Mozilla
91 Summary(pl): Wtyczka DjVu do Mozilli
93 Requires: %{name}-djview = %{version}
94 Requires: mozilla-embedded
96 %description -n mozilla-plugin-%{name}
97 DjVu plugin for Mozilla and Mozilla-based browsers.
99 %description -n mozilla-plugin-%{name} -l pl
100 Wtyczka DjVu do Mozilli i przegl±darek na niej bazuj±cych.
102 %package -n netscape-plugin-%{name}
103 Summary: DjVu plugin for Netscape
104 Summary(pl): Wtyczka DjVu do Netscape
106 Requires: %{name}-djview = %{version}
107 Requires: netscape-common
108 Obsoletes: djview-netscape
110 %description -n netscape-plugin-%{name}
111 DjVu plugin for Netscape.
113 %description -n netscape-plugin-%{name} -l pl
114 Wtyczka DjVu do Netscape.
130 rm -rf $RPM_BUILD_ROOT
131 install -d $RPM_BUILD_ROOT{%{_xbindir},%{_xmandir}/man1,%{mozdir},%{nsdir}}
134 DESTDIR=$RPM_BUILD_ROOT
136 mv -f $RPM_BUILD_ROOT%{_bindir}/djview \
137 $RPM_BUILD_ROOT%{_xbindir}
138 mv -f $RPM_BUILD_ROOT%{_mandir}/man1/djview.1 \
139 $RPM_BUILD_ROOT%{_xmandir}/man1
141 mv -f $RPM_BUILD_ROOT%{_libdir}/netscape/plugins/nsdejavu.so \
142 $RPM_BUILD_ROOT%{mozdir}
143 cp -f $RPM_BUILD_ROOT%{mozdir}/nsdejavu.so $RPM_BUILD_ROOT%{nsdir}
146 rm -rf $RPM_BUILD_ROOT
148 %post -p /sbin/ldconfig
149 %postun -p /sbin/ldconfig
152 %defattr(644,root,root,755)
153 %doc COPYRIGHT NEWS README TODO doc/*
154 %attr(755,root,root) %{_bindir}/*
157 %dir %{_datadir}/djvu
158 %{_datadir}/djvu/languages.xml
159 %dir %{_datadir}/djvu/osi
160 %lang(zh) %{_datadir}/djvu/osi/Chinese_PRC
161 %lang(de) %{_datadir}/djvu/osi/de_DE
162 %{_datadir}/djvu/osi/en
163 %lang(fr) %{_datadir}/djvu/osi/fr_FR
164 %lang(ja) %{_datadir}/djvu/osi/ja_JP
167 %defattr(644,root,root,755)
168 %attr(755,root,root) %{_xbindir}/djview
169 %{_xmandir}/man1/djview.1*
171 %files -n mozilla-plugin-%{name}
172 %defattr(644,root,root,755)
173 %attr(755,root,root) %{mozdir}/*.so
175 %files -n netscape-plugin-%{name}
176 %defattr(644,root,root,755)
177 %attr(755,root,root) %{nsdir}/*.so