1 # TODO: use system qt qt.qm files instead of included copies
4 %bcond_without qt # disable qt wrapper
6 Summary: DjVu viewers, encoders and utilities
7 Summary(pl.UTF-8): DjVu - przeglądarki, dekodery oraz narzędzia
12 Group: Applications/Graphics
13 Source0: http://downloads.sourceforge.net/djvu/%{name}-%{version}.tar.gz
14 # Source0-md5: af83d27af5083198432a178d22b259c5
15 Patch0: %{name}-opt.patch
16 Patch1: %{name}-desktop.patch
17 Patch2: %{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 BuildRequires: pkgconfig
25 BuildRequires: qt-devel >= 3:3.0.5
26 BuildRequires: qt-linguist
28 BuildRequires: rpmbuild(macros) >= 1.357
29 %{?with_qt:BuildRequires: xorg-lib-libXt-devel}
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
63 %description -l pl.UTF-8
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ą 3.5
78 oprogramowania LizardTech DjVu.
80 Ten pakiet zawiera: bibliotekę w C++, zestaw kompresorów, dekoderów i
81 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.UTF-8): 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.UTF-8
96 Plik nagłówkowy biblioteki DjVu.
99 Summary: Qt-based DjVu viewer
100 Summary(pl.UTF-8): 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.UTF-8
109 Oparta o Qt przeglądarka DjVu.
111 %package -n browser-plugin-%{name}
112 Summary: DjVu browser plugin
113 Summary(pl.UTF-8): Wtyczka DjVu do przegląderek WWW
115 Requires: %{name}-djview = %{version}-%{release}
116 Requires: browser-plugins >= 2.0
117 Requires: browser-plugins(%{_target_base_arch})
118 # for migrate purposes (greedy poldek upgrade)
119 Provides: mozilla-plugin-djvulibre
120 Provides: netscape-plugin-djvulibre
121 Obsoletes: djview-netscape
122 Obsoletes: mozilla-plugin-djvulibre
123 Obsoletes: netscape-plugin-djvulibre
125 %description -n browser-plugin-%{name}
126 DjVu plugin for Mozilla and Mozilla-based browsers.
128 %description -n browser-plugin-%{name} -l pl.UTF-8
129 Wtyczka DjVu do przeglądarek zgodnych z Mozillą.
138 cp -f /usr/share/automake/config.sub config
139 %{__aclocal} -I config
141 export QT_LIBS="-L%{_libdir} -lqt-mt"
142 export QT_CFLAGS="-I%{_includedir}/qt"
144 PTHREAD_LIBS="-lpthread" \
150 rm -rf $RPM_BUILD_ROOT
151 install -d $RPM_BUILD_ROOT%{_browserpluginsdir}
154 DESTDIR=$RPM_BUILD_ROOT \
155 plugindir=%{_browserpluginsdir}
157 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/djview.1
158 echo '.so djview3.1' > $RPM_BUILD_ROOT%{_mandir}/man1/djview.1
159 echo '.so djview3.1' > $RPM_BUILD_ROOT%{_mandir}/ja/man1/djview.1
162 rm -rf $RPM_BUILD_ROOT
164 %post -p /sbin/ldconfig
165 %postun -p /sbin/ldconfig
167 %post -n browser-plugin-%{name}
168 %update_browser_plugins
170 %postun -n browser-plugin-%{name}
171 if [ "$1" = 0 ]; then
172 %update_browser_plugins
176 %defattr(644,root,root,755)
177 %doc COPYRIGHT NEWS README TODO doc/*
178 %attr(755,root,root) %{_bindir}/any2djvu
179 %attr(755,root,root) %{_bindir}/bzz
180 %attr(755,root,root) %{_bindir}/c44
181 %attr(755,root,root) %{_bindir}/cjb2
182 %attr(755,root,root) %{_bindir}/cpaldjvu
183 %attr(755,root,root) %{_bindir}/csepdjvu
184 %attr(755,root,root) %{_bindir}/ddjvu
185 %attr(755,root,root) %{_bindir}/djvm
186 %attr(755,root,root) %{_bindir}/djvmcvt
187 %attr(755,root,root) %{_bindir}/djvu*
188 %attr(755,root,root) %{_libdir}/libdjvulibre.so.*.*.*
189 %attr(755,root,root) %ghost %{_libdir}/libdjvulibre.so.21
190 %{_mandir}/man1/any2djvu.1*
191 %{_mandir}/man1/bzz.1*
192 %{_mandir}/man1/c44.1*
193 %{_mandir}/man1/cjb2.1*
194 %{_mandir}/man1/cpaldjvu.1*
195 %{_mandir}/man1/csepdjvu.1*
196 %{_mandir}/man1/ddjvu.1*
197 %{_mandir}/man1/djvm.1*
198 %{_mandir}/man1/djvmcvt.1*
199 %{_mandir}/man1/djvu*.1*
200 %lang(ja) %{_mandir}/ja/man1/bzz.1*
201 %lang(ja) %{_mandir}/ja/man1/c44.1*
202 %lang(ja) %{_mandir}/ja/man1/cjb2.1*
203 %lang(ja) %{_mandir}/ja/man1/cpaldjvu.1*
204 %lang(ja) %{_mandir}/ja/man1/csepdjvu.1*
205 %lang(ja) %{_mandir}/ja/man1/ddjvu.1*
206 %lang(ja) %{_mandir}/ja/man1/djvm.1*
207 %lang(ja) %{_mandir}/ja/man1/djvmcvt.1*
208 %lang(ja) %{_mandir}/ja/man1/djvu*.1*
209 %dir %{_datadir}/djvu
210 %dir %{_datadir}/djvu/osi
211 %{_datadir}/djvu/osi/languages.xml
212 %lang(cs) %{_datadir}/djvu/osi/cs
213 %lang(de) %{_datadir}/djvu/osi/de
214 %{_datadir}/djvu/osi/en
215 %lang(fr) %{_datadir}/djvu/osi/fr
216 %lang(ja) %{_datadir}/djvu/osi/ja
217 %lang(zh) %{_datadir}/djvu/osi/zh
218 %{_datadir}/djvu/pubtext
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_libdir}/libdjvulibre.so
223 %{_libdir}/libdjvulibre.la
224 %{_includedir}/libdjvu
225 %{_pkgconfigdir}/ddjvuapi.pc
229 %defattr(644,root,root,755)
230 %attr(755,root,root) %{_bindir}/djview
231 %attr(755,root,root) %{_bindir}/djview3
232 %dir %{_datadir}/djvu/djview3
233 %lang(cs) %{_datadir}/djvu/djview3/cs
234 %lang(de) %{_datadir}/djvu/djview3/de
235 %lang(fr) %{_datadir}/djvu/djview3/fr
236 %lang(ja) %{_datadir}/djvu/djview3/ja
237 %{_mandir}/man1/djview.1*
238 %{_mandir}/man1/djview3.1*
239 %lang(ja) %{_mandir}/ja/man1/djview.1*
240 %lang(ja) %{_mandir}/ja/man1/djview3.1*
241 %{_desktopdir}/djvulibre-djview3.desktop
242 %{_iconsdir}/hicolor/*/apps/djvulibre-djview3.png
243 %{_iconsdir}/hicolor/*/mimetypes/mime-image-vnd.djvu.png
245 %files -n browser-plugin-%{name}
246 %defattr(644,root,root,755)
247 %attr(755,root,root) %{_browserpluginsdir}/nsdejavu.so
248 %{_mandir}/man1/nsdejavu.1*
249 %lang(ja) %{_mandir}/ja/man1/nsdejavu.1*