]>
Commit | Line | Data |
---|---|---|
71e7859d | 1 | # TODO: use system qt qt.qm files instead of included copies |
43ffeeaa | 2 | # |
25d1a4e1 | 3 | # Conditional build: |
a8a1616c MK |
4 | %define base_ver 3.5.25 |
5 | %define minor_ver .3 | |
25d1a4e1 | 6 | # |
e87c1ccc | 7 | Summary: DjVu viewers, encoders and utilities |
cf9a38ec | 8 | Summary(pl.UTF-8): DjVu - przeglądarki, dekodery oraz narzędzia |
04670ce6 | 9 | Name: djvulibre |
a8a1616c | 10 | Version: %{base_ver}%{minor_ver} |
7ea7ed10 | 11 | Release: 3 |
31a2c3b2 | 12 | License: GPL v2+ |
04670ce6 | 13 | Group: Applications/Graphics |
d26d8f70 | 14 | Source0: http://downloads.sourceforge.net/djvu/%{name}-%{version}.tar.gz |
a8a1616c | 15 | # Source0-md5: 5f45d6cd5700b4dd31b1eb963482089b |
ff84a788 | 16 | Patch0: %{name}-opt.patch |
a8a1616c | 17 | Patch1: djvulibre-3.5.22-cdefs.patch |
4c178625 | 18 | URL: http://djvu.sourceforge.net/ |
c4236fa5 | 19 | BuildRequires: autoconf >= 2.65 |
04670ce6 PG |
20 | BuildRequires: automake |
21 | BuildRequires: libjpeg-devel | |
4c178625 | 22 | BuildRequires: libstdc++-devel |
c4236fa5 | 23 | BuildRequires: libtool >= 2:2 |
dcb130c9 | 24 | BuildRequires: pkgconfig |
dd69650c | 25 | BuildRequires: rpmbuild(macros) >= 1.357 |
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 | ||
65979b9a JR |
55 | %description -l pl.UTF-8 |
56 | DjVu jest przeznaczonym głównie dla WWW formatem i platformą | |
57 | programową do dystrybucji dokumentów i obrazków. Dane w DjVu ściągają | |
58 | się szybciej, wyświetlają szybciej, wyglądają ładniej na ekranie i | |
59 | zajmują mniej zasobów po stronie klienckiej niż inne formaty. DjVu | |
60 | oryginalnie został stworzony w AT&T Labs-Research przez Leona Bottou, | |
4c178625 | 61 | Yanna LeCun, Patricka Haffnera i wielu innych. W marcu 2000 AT&T |
65979b9a JR |
62 | sprzedało DjVu firmie LizardTech Inc., które teraz rozpowszechnia |
63 | wtyczki dla Windows i Maca oraz komercyjne kodery (głównie dla | |
4c178625 JB |
64 | Windows). |
65 | ||
65979b9a JR |
66 | Aby wypromować DjVu jako sieciowy standard, LizardTech udostępnił |
67 | wzorcową implementację DjVu na licencji GPL w październiku 2000. | |
68 | DjVuLibre (czyli wolne DjVu) jest rozszerzoną wersją tego kodu | |
69 | rozwijaną przez pomysłodawców DjVu. Jest kompatybilna z wersją 3.5 | |
f53c6b30 | 70 | oprogramowania LizardTech DjVu. |
4c178625 | 71 | |
65979b9a | 72 | Ten pakiet zawiera: bibliotekę w C++, zestaw kompresorów, dekoderów i |
c4236fa5 | 73 | narzędzi do plików w formacie DjVu. |
4c178625 | 74 | |
735aa760 | 75 | %package devel |
c4236fa5 JB |
76 | Summary: Header files for DjVu library |
77 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki DjVu | |
735aa760 JB |
78 | Group: Development/Libraries |
79 | Requires: %{name} = %{version}-%{release} | |
80 | Requires: libjpeg-devel | |
81 | Requires: libstdc++-devel | |
82 | ||
83 | %description devel | |
c4236fa5 | 84 | Header files for DjVu library. |
735aa760 | 85 | |
65979b9a | 86 | %description devel -l pl.UTF-8 |
c4236fa5 | 87 | Pliki nagłówkowe biblioteki DjVu. |
735aa760 | 88 | |
e16ff60a | 89 | %prep |
a8a1616c | 90 | %setup -q -n %{name}-%{base_ver} |
04670ce6 | 91 | %patch0 -p1 |
4c178625 | 92 | %patch1 -p1 |
04670ce6 PG |
93 | |
94 | %build | |
c4236fa5 | 95 | %{__libtoolize} |
43ffeeaa | 96 | %{__aclocal} -I config |
bca43ffb | 97 | %{__autoconf} |
735aa760 | 98 | %configure \ |
d26d8f70 | 99 | PTHREAD_LIBS="-lpthread" \ |
a8a1616c | 100 | --disable-desktopfiles |
04670ce6 | 101 | |
943cad8b | 102 | %{__make} -j1 |
4c178625 | 103 | |
04670ce6 PG |
104 | %install |
105 | rm -rf $RPM_BUILD_ROOT | |
4c178625 JB |
106 | |
107 | %{__make} install \ | |
c4236fa5 | 108 | DESTDIR=$RPM_BUILD_ROOT |
43ffeeaa | 109 | |
04670ce6 PG |
110 | %clean |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
4c178625 JB |
113 | %post -p /sbin/ldconfig |
114 | %postun -p /sbin/ldconfig | |
04670ce6 PG |
115 | |
116 | %files | |
117 | %defattr(644,root,root,755) | |
a8a1616c | 118 | %doc COPYRIGHT NEWS README doc/* |
d26d8f70 JB |
119 | %attr(755,root,root) %{_bindir}/any2djvu |
120 | %attr(755,root,root) %{_bindir}/bzz | |
121 | %attr(755,root,root) %{_bindir}/c44 | |
122 | %attr(755,root,root) %{_bindir}/cjb2 | |
123 | %attr(755,root,root) %{_bindir}/cpaldjvu | |
124 | %attr(755,root,root) %{_bindir}/csepdjvu | |
125 | %attr(755,root,root) %{_bindir}/ddjvu | |
126 | %attr(755,root,root) %{_bindir}/djvm | |
127 | %attr(755,root,root) %{_bindir}/djvmcvt | |
128 | %attr(755,root,root) %{_bindir}/djvu* | |
735aa760 | 129 | %attr(755,root,root) %{_libdir}/libdjvulibre.so.*.*.* |
d47e385c | 130 | %attr(755,root,root) %ghost %{_libdir}/libdjvulibre.so.21 |
d26d8f70 JB |
131 | %{_mandir}/man1/any2djvu.1* |
132 | %{_mandir}/man1/bzz.1* | |
133 | %{_mandir}/man1/c44.1* | |
134 | %{_mandir}/man1/cjb2.1* | |
135 | %{_mandir}/man1/cpaldjvu.1* | |
136 | %{_mandir}/man1/csepdjvu.1* | |
137 | %{_mandir}/man1/ddjvu.1* | |
138 | %{_mandir}/man1/djvm.1* | |
139 | %{_mandir}/man1/djvmcvt.1* | |
140 | %{_mandir}/man1/djvu*.1* | |
4c178625 | 141 | %dir %{_datadir}/djvu |
4c178625 | 142 | %dir %{_datadir}/djvu/osi |
43ffeeaa | 143 | %{_datadir}/djvu/osi/languages.xml |
94d96e74 | 144 | %lang(cs) %{_datadir}/djvu/osi/cs |
f7681c5c | 145 | %lang(de) %{_datadir}/djvu/osi/de |
4c178625 | 146 | %{_datadir}/djvu/osi/en |
f7681c5c JB |
147 | %lang(fr) %{_datadir}/djvu/osi/fr |
148 | %lang(ja) %{_datadir}/djvu/osi/ja | |
149 | %lang(zh) %{_datadir}/djvu/osi/zh | |
150 | %{_datadir}/djvu/pubtext | |
4c178625 | 151 | |
735aa760 JB |
152 | %files devel |
153 | %defattr(644,root,root,755) | |
154 | %attr(755,root,root) %{_libdir}/libdjvulibre.so | |
155 | %{_libdir}/libdjvulibre.la | |
156 | %{_includedir}/libdjvu | |
43ffeeaa | 157 | %{_pkgconfigdir}/ddjvuapi.pc |