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 Patch2: %{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 _xbindir /usr/X11R6/bin
22 %define _xmandir /usr/X11R6/man
23 %define mozdir /usr/X11R6/lib/mozilla/plugins
24 %define nsdir /usr/X11R6/lib/netscape/plugins
27 DjVu is a web-centric format and software platform for distributing
28 documents and images. DjVu content downloads faster, displays and
29 renders faster, looks nicer on a screen, and consume less client
30 resources than competing formats. DjVu was originally developed at
31 AT&T Labs-Research by Leon Bottou, Yann LeCun, Patrick Haffner, and
32 many others. In March 2000, AT&T sold DjVu to LizardTech Inc. who now
33 distributes Windows/Mac plug-ins, and commercial encoders (mostly on
36 In an effort to promote DjVu as a Web standard, the LizardTech
37 management was enlightened enough to release the reference
38 implementation of DjVu under the GNU GPL in October 2000. DjVuLibre
39 (which means free DjVu), is an enhanced version of that code
40 maintained by the original inventors of DjVu. It is compatible with
41 version 3.5 of the LizardTech DjVu software suite.
43 This package of DjVulibre 3.5 contains:
44 - A full-fledged wavelet-based compressor for pictures.
45 - A simple compressor for bitonal (black and white) scanned pages.
46 - A compressor for palettized images (a la GIF/PNG).
47 - A set of utilities to manipulate and assemble DjVu images and
49 - A set of decoders to convert DjVu to a number of other formats.
50 - An up-to-date version of the C++ DjVu Reference Library.
52 Following elements are placed in other subpackages:
53 - a standalone DjVu viewer based on the Qt library.
54 - A browser plugin that works with most Unix browsers.
57 DjVu jest przeznaczonym g³ównie dla WWW formatem i platform±
58 programow± do dystrybucji dokumentów i obrazków. Dane w DjVu ¶ci±gaj±
59 siê szybciej, wy¶wietlaj± szybciej, wygl±daj± ³adniej na ekranie i
60 zajmuj± mniej zasobów po stronie klienckiej ni¿ inne formaty. DjVu
61 oryginalnie zosta³ stworzony w AT&T Labs-Research przez Leona Bottou,
62 Yanna LeCun, Patricka Haffnera i wielu innych. W marcu 2000 AT&T
63 sprzeda³o DjVu firmie LizardTech Inc., które teraz rozpowszechnia
64 wtyczki dla Windows i Maca oraz komercyjne kodery (g³ównie dla
67 Aby wypromowaæ DjVu jako sieciowy standard, LizardTech udostêpni³
68 wzorcow± implementacjê DjVu na licencji GPL w pa¼dzierniku 2000.
69 DjVuLibre (czyli wolne DjVu) jest rozszerzon± wersj± tego kodu
70 rozwijan± przez pomys³odawców DjVu. Jest kompatybilna z wersj±
71 3.5 oprogramowania LizardTech DjVu.
73 Ten pakiet zawiera: bibliotekê w C++, zestaw kompresorów, dekoderów
74 i narzêdzi do plików w formacie DjVu. Przegl±darka oraz wtyczki do
75 przegl±darek znajduj± siê w innych podpakietach.
78 Summary: Qt-based DjVu viewer
79 Summary(pl): Oparta o Qt przegl±darka DjVu
80 Group: X11/Applications
81 Requires: %{name} = %{version}
87 %description djview -l pl
88 Oparta o Qt przegl±darka DjVu.
90 %package -n mozilla-plugin-%{name}
91 Summary: DjVu plugin for Mozilla
92 Summary(pl): Wtyczka DjVu do Mozilli
94 Requires: %{name}-djview = %{version}
95 Requires: mozilla-embedded
97 %description -n mozilla-plugin-%{name}
98 DjVu plugin for Mozilla and Mozilla-based browsers.
100 %description -n mozilla-plugin-%{name} -l pl
101 Wtyczka DjVu do Mozilli i przegl±darek na niej bazuj±cych.
103 %package -n netscape-plugin-%{name}
104 Summary: DjVu plugin for Netscape
105 Summary(pl): Wtyczka DjVu do Netscape
107 Requires: %{name}-djview = %{version}
108 Requires: netscape-common
109 Obsoletes: djview-netscape
111 %description -n netscape-plugin-%{name}
112 DjVu plugin for Netscape.
114 %description -n netscape-plugin-%{name} -l pl
115 Wtyczka DjVu do Netscape.
126 # there seems to be aliasing problem at libdjvu/BSByteStream.cpp:356-357
127 # (bug in code or gcc) - happens at least with "-O2 -march=athlon"
128 CXXFLAGS="%{rpmcflags} -fno-strict-aliasing"
135 rm -rf $RPM_BUILD_ROOT
136 install -d $RPM_BUILD_ROOT{%{_xbindir},%{_xmandir}/man1,%{mozdir},%{nsdir}}
139 DESTDIR=$RPM_BUILD_ROOT
141 mv -f $RPM_BUILD_ROOT%{_bindir}/djview \
142 $RPM_BUILD_ROOT%{_xbindir}
143 mv -f $RPM_BUILD_ROOT%{_mandir}/man1/djview.1 \
144 $RPM_BUILD_ROOT%{_xmandir}/man1
146 mv -f $RPM_BUILD_ROOT%{_libdir}/netscape/plugins/nsdejavu.so \
147 $RPM_BUILD_ROOT%{mozdir}
148 cp -f $RPM_BUILD_ROOT%{mozdir}/nsdejavu.so $RPM_BUILD_ROOT%{nsdir}
151 rm -rf $RPM_BUILD_ROOT
153 %post -p /sbin/ldconfig
154 %postun -p /sbin/ldconfig
157 %defattr(644,root,root,755)
158 %doc COPYRIGHT NEWS README TODO doc/*
159 %attr(755,root,root) %{_bindir}/*
160 %attr(755,root,root) %{_libdir}/lib*.so
162 %dir %{_datadir}/djvu
163 %{_datadir}/djvu/languages.xml
164 %dir %{_datadir}/djvu/osi
165 %lang(zh) %{_datadir}/djvu/osi/Chinese_PRC
166 %lang(de) %{_datadir}/djvu/osi/de_DE
167 %{_datadir}/djvu/osi/en
168 %lang(fr) %{_datadir}/djvu/osi/fr_FR
169 %lang(ja) %{_datadir}/djvu/osi/ja_JP
172 %defattr(644,root,root,755)
173 %attr(755,root,root) %{_xbindir}/djview
174 %{_xmandir}/man1/djview.1*
176 %files -n mozilla-plugin-%{name}
177 %defattr(644,root,root,755)
178 %attr(755,root,root) %{mozdir}/*.so
180 %files -n netscape-plugin-%{name}
181 %defattr(644,root,root,755)
182 %attr(755,root,root) %{nsdir}/*.so