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