]>
Commit | Line | Data |
---|---|---|
71e7859d | 1 | # TODO: use system qt qt.qm files instead of included copies |
43ffeeaa | 2 | # |
25d1a4e1 | 3 | # Conditional build: |
4 | %bcond_without qt # disable qt wrapper | |
5 | # | |
e87c1ccc | 6 | Summary: DjVu viewers, encoders and utilities |
cf9a38ec | 7 | Summary(pl.UTF-8): DjVu - przeglądarki, dekodery oraz narzędzia |
04670ce6 | 8 | Name: djvulibre |
0a9120ad | 9 | Version: 3.5.24 |
148d9c70 | 10 | Release: 3 |
31a2c3b2 | 11 | License: GPL v2+ |
04670ce6 | 12 | Group: Applications/Graphics |
d26d8f70 | 13 | Source0: http://downloads.sourceforge.net/djvu/%{name}-%{version}.tar.gz |
0a9120ad | 14 | # Source0-md5: af83d27af5083198432a178d22b259c5 |
ff84a788 | 15 | Patch0: %{name}-opt.patch |
d47e385c | 16 | Patch1: %{name}-desktop.patch |
17 | Patch2: %{name}-link.patch | |
148d9c70 | 18 | Patch3: djvulibre-3.5.22-cdefs.patch |
4c178625 | 19 | URL: http://djvu.sourceforge.net/ |
735aa760 | 20 | BuildRequires: autoconf >= 2.50 |
04670ce6 PG |
21 | BuildRequires: automake |
22 | BuildRequires: libjpeg-devel | |
4c178625 | 23 | BuildRequires: libstdc++-devel |
dcb130c9 | 24 | BuildRequires: pkgconfig |
7a541396 | 25 | %if %{with qt} |
26 | BuildRequires: qt-devel >= 3:3.0.5 | |
27 | BuildRequires: qt-linguist | |
28 | %endif | |
dd69650c | 29 | BuildRequires: rpmbuild(macros) >= 1.357 |
f99575b3 | 30 | %{?with_qt:BuildRequires: xorg-lib-libXt-devel} |
4c178625 | 31 | Obsoletes: djvu |
04670ce6 PG |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
04670ce6 | 34 | %description |
04670ce6 PG |
35 | DjVu is a web-centric format and software platform for distributing |
36 | documents and images. DjVu content downloads faster, displays and | |
37 | renders faster, looks nicer on a screen, and consume less client | |
01e551f7 | 38 | resources than competing formats. DjVu was originally developed at |
04670ce6 PG |
39 | AT&T Labs-Research by Leon Bottou, Yann LeCun, Patrick Haffner, and |
40 | many others. In March 2000, AT&T sold DjVu to LizardTech Inc. who now | |
41 | distributes Windows/Mac plug-ins, and commercial encoders (mostly on | |
4c178625 | 42 | Windows). |
04670ce6 PG |
43 | |
44 | In an effort to promote DjVu as a Web standard, the LizardTech | |
45 | management was enlightened enough to release the reference | |
46 | implementation of DjVu under the GNU GPL in October 2000. DjVuLibre | |
47 | (which means free DjVu), is an enhanced version of that code | |
48 | maintained by the original inventors of DjVu. It is compatible with | |
49 | version 3.5 of the LizardTech DjVu software suite. | |
50 | ||
4c178625 | 51 | This package of DjVulibre 3.5 contains: |
04670ce6 PG |
52 | - A full-fledged wavelet-based compressor for pictures. |
53 | - A simple compressor for bitonal (black and white) scanned pages. | |
54 | - A compressor for palettized images (a la GIF/PNG). | |
55 | - A set of utilities to manipulate and assemble DjVu images and | |
56 | documents. | |
57 | - A set of decoders to convert DjVu to a number of other formats. | |
58 | - An up-to-date version of the C++ DjVu Reference Library. | |
59 | ||
4c178625 JB |
60 | Following elements are placed in other subpackages: |
61 | - a standalone DjVu viewer based on the Qt library. | |
62 | - A browser plugin that works with most Unix browsers. | |
63 | ||
65979b9a JR |
64 | %description -l pl.UTF-8 |
65 | DjVu jest przeznaczonym głównie dla WWW formatem i platformą | |
66 | programową do dystrybucji dokumentów i obrazków. Dane w DjVu ściągają | |
67 | się szybciej, wyświetlają szybciej, wyglądają ładniej na ekranie i | |
68 | zajmują mniej zasobów po stronie klienckiej niż inne formaty. DjVu | |
69 | oryginalnie został stworzony w AT&T Labs-Research przez Leona Bottou, | |
4c178625 | 70 | Yanna LeCun, Patricka Haffnera i wielu innych. W marcu 2000 AT&T |
65979b9a JR |
71 | sprzedało DjVu firmie LizardTech Inc., które teraz rozpowszechnia |
72 | wtyczki dla Windows i Maca oraz komercyjne kodery (głównie dla | |
4c178625 JB |
73 | Windows). |
74 | ||
65979b9a JR |
75 | Aby wypromować DjVu jako sieciowy standard, LizardTech udostępnił |
76 | wzorcową implementację DjVu na licencji GPL w październiku 2000. | |
77 | DjVuLibre (czyli wolne DjVu) jest rozszerzoną wersją tego kodu | |
78 | rozwijaną przez pomysłodawców DjVu. Jest kompatybilna z wersją 3.5 | |
f53c6b30 | 79 | oprogramowania LizardTech DjVu. |
4c178625 | 80 | |
65979b9a JR |
81 | Ten pakiet zawiera: bibliotekę w C++, zestaw kompresorów, dekoderów i |
82 | narzędzi do plików w formacie DjVu. Przeglądarka oraz wtyczki do | |
83 | przeglądarek znajdują się w innych podpakietach. | |
4c178625 | 84 | |
735aa760 JB |
85 | %package devel |
86 | Summary: Header file for DjVu library | |
cf9a38ec | 87 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki DjVu |
735aa760 JB |
88 | Group: Development/Libraries |
89 | Requires: %{name} = %{version}-%{release} | |
90 | Requires: libjpeg-devel | |
91 | Requires: libstdc++-devel | |
92 | ||
93 | %description devel | |
94 | Header file for DjVu library. | |
95 | ||
65979b9a JR |
96 | %description devel -l pl.UTF-8 |
97 | Plik nagłówkowy biblioteki DjVu. | |
735aa760 | 98 | |
4c178625 JB |
99 | %package djview |
100 | Summary: Qt-based DjVu viewer | |
cf9a38ec | 101 | Summary(pl.UTF-8): Oparta o Qt przeglądarka DjVu |
4c178625 | 102 | Group: X11/Applications |
d7c8b9f8 | 103 | Requires: %{name} = %{version}-%{release} |
4c178625 JB |
104 | Obsoletes: djview |
105 | ||
106 | %description djview | |
107 | Qt-based DjVu viewer. | |
108 | ||
65979b9a JR |
109 | %description djview -l pl.UTF-8 |
110 | Oparta o Qt przeglądarka DjVu. | |
4c178625 | 111 | |
e14ea703 ER |
112 | %package -n browser-plugin-%{name} |
113 | Summary: DjVu browser plugin | |
cf9a38ec | 114 | Summary(pl.UTF-8): Wtyczka DjVu do przegląderek WWW |
4c178625 | 115 | Group: X11/Libraries |
d7c8b9f8 | 116 | Requires: %{name}-djview = %{version}-%{release} |
dd69650c | 117 | Requires: browser-plugins >= 2.0 |
9d953ce4 | 118 | Requires: browser-plugins(%{_target_base_arch}) |
e14ea703 ER |
119 | # for migrate purposes (greedy poldek upgrade) |
120 | Provides: mozilla-plugin-djvulibre | |
121 | Provides: netscape-plugin-djvulibre | |
43ffeeaa JB |
122 | Obsoletes: djview-netscape |
123 | Obsoletes: mozilla-plugin-djvulibre | |
124 | Obsoletes: netscape-plugin-djvulibre | |
4c178625 | 125 | |
e14ea703 ER |
126 | %description -n browser-plugin-%{name} |
127 | DjVu plugin for Mozilla and Mozilla-based browsers. | |
4c178625 | 128 | |
65979b9a JR |
129 | %description -n browser-plugin-%{name} -l pl.UTF-8 |
130 | Wtyczka DjVu do przeglądarek zgodnych z Mozillą. | |
d35e005a | 131 | |
e16ff60a | 132 | %prep |
04670ce6 PG |
133 | %setup -q |
134 | %patch0 -p1 | |
4c178625 | 135 | %patch1 -p1 |
f7681c5c | 136 | %patch2 -p1 |
148d9c70 | 137 | %patch3 -p1 |
04670ce6 PG |
138 | |
139 | %build | |
d7c8b9f8 | 140 | cp -f /usr/share/automake/config.sub config |
43ffeeaa | 141 | %{__aclocal} -I config |
bca43ffb | 142 | %{__autoconf} |
dd69650c ER |
143 | export QT_LIBS="-L%{_libdir} -lqt-mt" |
144 | export QT_CFLAGS="-I%{_includedir}/qt" | |
735aa760 | 145 | %configure \ |
d26d8f70 JB |
146 | PTHREAD_LIBS="-lpthread" \ |
147 | --enable-djview | |
04670ce6 | 148 | |
943cad8b | 149 | %{__make} -j1 |
4c178625 | 150 | |
04670ce6 PG |
151 | %install |
152 | rm -rf $RPM_BUILD_ROOT | |
dd69650c | 153 | install -d $RPM_BUILD_ROOT%{_browserpluginsdir} |
4c178625 JB |
154 | |
155 | %{__make} install \ | |
735aa760 | 156 | DESTDIR=$RPM_BUILD_ROOT \ |
43ffeeaa JB |
157 | plugindir=%{_browserpluginsdir} |
158 | ||
159 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/djview.1 | |
160 | echo '.so djview3.1' > $RPM_BUILD_ROOT%{_mandir}/man1/djview.1 | |
161 | echo '.so djview3.1' > $RPM_BUILD_ROOT%{_mandir}/ja/man1/djview.1 | |
04670ce6 | 162 | |
04670ce6 PG |
163 | %clean |
164 | rm -rf $RPM_BUILD_ROOT | |
165 | ||
4c178625 JB |
166 | %post -p /sbin/ldconfig |
167 | %postun -p /sbin/ldconfig | |
04670ce6 | 168 | |
dd69650c ER |
169 | %post -n browser-plugin-%{name} |
170 | %update_browser_plugins | |
ceb0dc7e | 171 | |
dd69650c ER |
172 | %postun -n browser-plugin-%{name} |
173 | if [ "$1" = 0 ]; then | |
174 | %update_browser_plugins | |
175 | fi | |
ceb0dc7e | 176 | |
04670ce6 PG |
177 | %files |
178 | %defattr(644,root,root,755) | |
1fc78246 | 179 | %doc COPYRIGHT NEWS README TODO doc/* |
d26d8f70 JB |
180 | %attr(755,root,root) %{_bindir}/any2djvu |
181 | %attr(755,root,root) %{_bindir}/bzz | |
182 | %attr(755,root,root) %{_bindir}/c44 | |
183 | %attr(755,root,root) %{_bindir}/cjb2 | |
184 | %attr(755,root,root) %{_bindir}/cpaldjvu | |
185 | %attr(755,root,root) %{_bindir}/csepdjvu | |
186 | %attr(755,root,root) %{_bindir}/ddjvu | |
187 | %attr(755,root,root) %{_bindir}/djvm | |
188 | %attr(755,root,root) %{_bindir}/djvmcvt | |
189 | %attr(755,root,root) %{_bindir}/djvu* | |
735aa760 | 190 | %attr(755,root,root) %{_libdir}/libdjvulibre.so.*.*.* |
d47e385c | 191 | %attr(755,root,root) %ghost %{_libdir}/libdjvulibre.so.21 |
d26d8f70 JB |
192 | %{_mandir}/man1/any2djvu.1* |
193 | %{_mandir}/man1/bzz.1* | |
194 | %{_mandir}/man1/c44.1* | |
195 | %{_mandir}/man1/cjb2.1* | |
196 | %{_mandir}/man1/cpaldjvu.1* | |
197 | %{_mandir}/man1/csepdjvu.1* | |
198 | %{_mandir}/man1/ddjvu.1* | |
199 | %{_mandir}/man1/djvm.1* | |
200 | %{_mandir}/man1/djvmcvt.1* | |
201 | %{_mandir}/man1/djvu*.1* | |
202 | %lang(ja) %{_mandir}/ja/man1/bzz.1* | |
203 | %lang(ja) %{_mandir}/ja/man1/c44.1* | |
204 | %lang(ja) %{_mandir}/ja/man1/cjb2.1* | |
205 | %lang(ja) %{_mandir}/ja/man1/cpaldjvu.1* | |
206 | %lang(ja) %{_mandir}/ja/man1/csepdjvu.1* | |
207 | %lang(ja) %{_mandir}/ja/man1/ddjvu.1* | |
208 | %lang(ja) %{_mandir}/ja/man1/djvm.1* | |
209 | %lang(ja) %{_mandir}/ja/man1/djvmcvt.1* | |
210 | %lang(ja) %{_mandir}/ja/man1/djvu*.1* | |
4c178625 | 211 | %dir %{_datadir}/djvu |
4c178625 | 212 | %dir %{_datadir}/djvu/osi |
43ffeeaa | 213 | %{_datadir}/djvu/osi/languages.xml |
94d96e74 | 214 | %lang(cs) %{_datadir}/djvu/osi/cs |
f7681c5c | 215 | %lang(de) %{_datadir}/djvu/osi/de |
4c178625 | 216 | %{_datadir}/djvu/osi/en |
f7681c5c JB |
217 | %lang(fr) %{_datadir}/djvu/osi/fr |
218 | %lang(ja) %{_datadir}/djvu/osi/ja | |
219 | %lang(zh) %{_datadir}/djvu/osi/zh | |
220 | %{_datadir}/djvu/pubtext | |
4c178625 | 221 | |
735aa760 JB |
222 | %files devel |
223 | %defattr(644,root,root,755) | |
224 | %attr(755,root,root) %{_libdir}/libdjvulibre.so | |
225 | %{_libdir}/libdjvulibre.la | |
226 | %{_includedir}/libdjvu | |
43ffeeaa | 227 | %{_pkgconfigdir}/ddjvuapi.pc |
735aa760 | 228 | |
25d1a4e1 | 229 | %if %{with qt} |
4c178625 JB |
230 | %files djview |
231 | %defattr(644,root,root,755) | |
5574c66b | 232 | %attr(755,root,root) %{_bindir}/djview |
43ffeeaa JB |
233 | %attr(755,root,root) %{_bindir}/djview3 |
234 | %dir %{_datadir}/djvu/djview3 | |
71e7859d | 235 | %lang(cs) %{_datadir}/djvu/djview3/cs |
43ffeeaa JB |
236 | %lang(de) %{_datadir}/djvu/djview3/de |
237 | %lang(fr) %{_datadir}/djvu/djview3/fr | |
238 | %lang(ja) %{_datadir}/djvu/djview3/ja | |
5574c66b | 239 | %{_mandir}/man1/djview.1* |
43ffeeaa | 240 | %{_mandir}/man1/djview3.1* |
f7681c5c | 241 | %lang(ja) %{_mandir}/ja/man1/djview.1* |
43ffeeaa | 242 | %lang(ja) %{_mandir}/ja/man1/djview3.1* |
6622950d JB |
243 | %{_desktopdir}/djvulibre-djview3.desktop |
244 | %{_iconsdir}/hicolor/*/apps/djvulibre-djview3.png | |
245 | %{_iconsdir}/hicolor/*/mimetypes/mime-image-vnd.djvu.png | |
4c178625 | 246 | |
e14ea703 | 247 | %files -n browser-plugin-%{name} |
4c178625 | 248 | %defattr(644,root,root,755) |
43ffeeaa | 249 | %attr(755,root,root) %{_browserpluginsdir}/nsdejavu.so |
f7681c5c JB |
250 | %{_mandir}/man1/nsdejavu.1* |
251 | %lang(ja) %{_mandir}/ja/man1/nsdejavu.1* | |
25d1a4e1 | 252 | %endif |