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