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