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