]>
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 |
d47e385c | 9 | Version: 3.5.22 |
10 | Release: 1 | |
31a2c3b2 | 11 | License: GPL v2+ |
04670ce6 | 12 | Group: Applications/Graphics |
70d5604b | 13 | Source0: http://dl.sourceforge.net/djvu/%{name}-%{version}.tar.gz |
d47e385c | 14 | # Source0-md5: d1513784ce0e4f37d71595dc34c95ec7 |
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 |
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 |
04670ce6 PG |
132 | |
133 | %build | |
d7c8b9f8 | 134 | cp -f /usr/share/automake/config.sub config |
43ffeeaa | 135 | %{__aclocal} -I config |
bca43ffb | 136 | %{__autoconf} |
dd69650c ER |
137 | export QT_LIBS="-L%{_libdir} -lqt-mt" |
138 | export QT_CFLAGS="-I%{_includedir}/qt" | |
735aa760 JB |
139 | %configure \ |
140 | PTHREAD_LIBS="-lpthread" | |
04670ce6 | 141 | |
943cad8b | 142 | %{__make} -j1 |
4c178625 | 143 | |
04670ce6 PG |
144 | %install |
145 | rm -rf $RPM_BUILD_ROOT | |
dd69650c | 146 | install -d $RPM_BUILD_ROOT%{_browserpluginsdir} |
4c178625 JB |
147 | |
148 | %{__make} install \ | |
735aa760 | 149 | DESTDIR=$RPM_BUILD_ROOT \ |
43ffeeaa JB |
150 | plugindir=%{_browserpluginsdir} |
151 | ||
152 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/djview.1 | |
153 | echo '.so djview3.1' > $RPM_BUILD_ROOT%{_mandir}/man1/djview.1 | |
154 | echo '.so djview3.1' > $RPM_BUILD_ROOT%{_mandir}/ja/man1/djview.1 | |
04670ce6 | 155 | |
04670ce6 PG |
156 | %clean |
157 | rm -rf $RPM_BUILD_ROOT | |
158 | ||
4c178625 JB |
159 | %post -p /sbin/ldconfig |
160 | %postun -p /sbin/ldconfig | |
04670ce6 | 161 | |
dd69650c ER |
162 | %post -n browser-plugin-%{name} |
163 | %update_browser_plugins | |
ceb0dc7e | 164 | |
dd69650c ER |
165 | %postun -n browser-plugin-%{name} |
166 | if [ "$1" = 0 ]; then | |
167 | %update_browser_plugins | |
168 | fi | |
ceb0dc7e | 169 | |
04670ce6 PG |
170 | %files |
171 | %defattr(644,root,root,755) | |
1fc78246 | 172 | %doc COPYRIGHT NEWS README TODO doc/* |
5574c66b JB |
173 | %attr(755,root,root) %{_bindir}/[!d]* |
174 | %attr(755,root,root) %{_bindir}/d[!j]* | |
175 | %attr(755,root,root) %{_bindir}/djv[!i]* | |
735aa760 | 176 | %attr(755,root,root) %{_libdir}/libdjvulibre.so.*.*.* |
d47e385c | 177 | %attr(755,root,root) %ghost %{_libdir}/libdjvulibre.so.21 |
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 | |
71e7859d | 208 | %lang(cs) %{_datadir}/djvu/djview3/cs |
43ffeeaa JB |
209 | %lang(de) %{_datadir}/djvu/djview3/de |
210 | %lang(fr) %{_datadir}/djvu/djview3/fr | |
211 | %lang(ja) %{_datadir}/djvu/djview3/ja | |
5574c66b | 212 | %{_mandir}/man1/djview.1* |
43ffeeaa | 213 | %{_mandir}/man1/djview3.1* |
f7681c5c | 214 | %lang(ja) %{_mandir}/ja/man1/djview.1* |
43ffeeaa | 215 | %lang(ja) %{_mandir}/ja/man1/djview3.1* |
6622950d JB |
216 | %{_desktopdir}/djvulibre-djview3.desktop |
217 | %{_iconsdir}/hicolor/*/apps/djvulibre-djview3.png | |
218 | %{_iconsdir}/hicolor/*/mimetypes/mime-image-vnd.djvu.png | |
4c178625 | 219 | |
e14ea703 | 220 | %files -n browser-plugin-%{name} |
4c178625 | 221 | %defattr(644,root,root,755) |
43ffeeaa | 222 | %attr(755,root,root) %{_browserpluginsdir}/nsdejavu.so |
f7681c5c JB |
223 | %{_mandir}/man1/nsdejavu.1* |
224 | %lang(ja) %{_mandir}/ja/man1/nsdejavu.1* | |
25d1a4e1 | 225 | %endif |