]> git.pld-linux.org Git - packages/djvulibre.git/blame - djvulibre.spec
- parallel build broken
[packages/djvulibre.git] / djvulibre.spec
CommitLineData
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 6Summary: DjVu viewers, encoders and utilities
cf9a38ec 7Summary(pl.UTF-8): DjVu - przeglądarki, dekodery oraz narzędzia
04670ce6 8Name: djvulibre
5de4cdac 9Version: 3.5.20
95ff08db 10Release: 3
31a2c3b2 11License: GPL v2+
04670ce6 12Group: Applications/Graphics
70d5604b 13Source0: http://dl.sourceforge.net/djvu/%{name}-%{version}.tar.gz
5de4cdac 14# Source0-md5: c94091de014b3aaf037d3d0f398d36c2
ff84a788
JB
15Patch0: %{name}-opt.patch
16Patch1: %{name}-nostrip.patch
f7681c5c 17Patch2: %{name}-desktop.patch
f99575b3 18Patch3: %{name}-link.patch
4c178625 19URL: http://djvu.sourceforge.net/
735aa760 20BuildRequires: autoconf >= 2.50
04670ce6
PG
21BuildRequires: automake
22BuildRequires: libjpeg-devel
4c178625 23BuildRequires: libstdc++-devel
83ed8fcb 24%{?with_qt:BuildRequires: qt-devel >= 3:3.0.5}
dd69650c 25BuildRequires: rpmbuild(macros) >= 1.357
f99575b3 26%{?with_qt:BuildRequires: xorg-lib-libXt-devel}
4c178625 27Obsoletes: djvu
04670ce6
PG
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
04670ce6 30%description
04670ce6
PG
31DjVu is a web-centric format and software platform for distributing
32documents and images. DjVu content downloads faster, displays and
33renders faster, looks nicer on a screen, and consume less client
01e551f7 34resources than competing formats. DjVu was originally developed at
04670ce6
PG
35AT&T Labs-Research by Leon Bottou, Yann LeCun, Patrick Haffner, and
36many others. In March 2000, AT&T sold DjVu to LizardTech Inc. who now
37distributes Windows/Mac plug-ins, and commercial encoders (mostly on
4c178625 38Windows).
04670ce6
PG
39
40In an effort to promote DjVu as a Web standard, the LizardTech
41management was enlightened enough to release the reference
42implementation of DjVu under the GNU GPL in October 2000. DjVuLibre
43(which means free DjVu), is an enhanced version of that code
44maintained by the original inventors of DjVu. It is compatible with
45version 3.5 of the LizardTech DjVu software suite.
46
4c178625 47This 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
56Following 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
61DjVu jest przeznaczonym głównie dla WWW formatem i platformą
62programową do dystrybucji dokumentów i obrazków. Dane w DjVu ściągają
63się szybciej, wyświetlają szybciej, wyglądają ładniej na ekranie i
64zajmują mniej zasobów po stronie klienckiej niż inne formaty. DjVu
65oryginalnie został stworzony w AT&T Labs-Research przez Leona Bottou,
4c178625 66Yanna LeCun, Patricka Haffnera i wielu innych. W marcu 2000 AT&T
65979b9a
JR
67sprzedało DjVu firmie LizardTech Inc., które teraz rozpowszechnia
68wtyczki dla Windows i Maca oraz komercyjne kodery (głównie dla
4c178625
JB
69Windows).
70
65979b9a
JR
71Aby wypromować DjVu jako sieciowy standard, LizardTech udostępnił
72wzorcową implementację DjVu na licencji GPL w październiku 2000.
73DjVuLibre (czyli wolne DjVu) jest rozszerzoną wersją tego kodu
74rozwijaną przez pomysłodawców DjVu. Jest kompatybilna z wersją 3.5
f53c6b30 75oprogramowania LizardTech DjVu.
4c178625 76
65979b9a
JR
77Ten pakiet zawiera: bibliotekę w C++, zestaw kompresorów, dekoderów i
78narzędzi do plików w formacie DjVu. Przeglądarka oraz wtyczki do
79przeglądarek znajdują się w innych podpakietach.
4c178625 80
735aa760
JB
81%package devel
82Summary: Header file for DjVu library
cf9a38ec 83Summary(pl.UTF-8): Plik nagłówkowy biblioteki DjVu
735aa760
JB
84Group: Development/Libraries
85Requires: %{name} = %{version}-%{release}
86Requires: libjpeg-devel
87Requires: libstdc++-devel
88
89%description devel
90Header file for DjVu library.
91
65979b9a
JR
92%description devel -l pl.UTF-8
93Plik nagłówkowy biblioteki DjVu.
735aa760 94
4c178625
JB
95%package djview
96Summary: Qt-based DjVu viewer
cf9a38ec 97Summary(pl.UTF-8): Oparta o Qt przeglądarka DjVu
4c178625 98Group: X11/Applications
d7c8b9f8 99Requires: %{name} = %{version}-%{release}
4c178625
JB
100Obsoletes: djview
101
102%description djview
103Qt-based DjVu viewer.
104
65979b9a
JR
105%description djview -l pl.UTF-8
106Oparta o Qt przeglądarka DjVu.
4c178625 107
e14ea703
ER
108%package -n browser-plugin-%{name}
109Summary: DjVu browser plugin
cf9a38ec 110Summary(pl.UTF-8): Wtyczka DjVu do przegląderek WWW
4c178625 111Group: X11/Libraries
d7c8b9f8 112Requires: %{name}-djview = %{version}-%{release}
dd69650c 113Requires: browser-plugins >= 2.0
9d953ce4 114Requires: browser-plugins(%{_target_base_arch})
e14ea703
ER
115# for migrate purposes (greedy poldek upgrade)
116Provides: mozilla-plugin-djvulibre
117Provides: netscape-plugin-djvulibre
43ffeeaa
JB
118Obsoletes: djview-netscape
119Obsoletes: mozilla-plugin-djvulibre
120Obsoletes: netscape-plugin-djvulibre
4c178625 121
e14ea703
ER
122%description -n browser-plugin-%{name}
123DjVu plugin for Mozilla and Mozilla-based browsers.
4c178625 124
65979b9a
JR
125%description -n browser-plugin-%{name} -l pl.UTF-8
126Wtyczka 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 136cp -f /usr/share/automake/config.sub config
43ffeeaa 137%{__aclocal} -I config
bca43ffb 138%{__autoconf}
dd69650c
ER
139export QT_LIBS="-L%{_libdir} -lqt-mt"
140export 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
147rm -rf $RPM_BUILD_ROOT
dd69650c 148install -d $RPM_BUILD_ROOT%{_browserpluginsdir}
4c178625
JB
149
150%{__make} install \
735aa760 151 DESTDIR=$RPM_BUILD_ROOT \
43ffeeaa
JB
152 plugindir=%{_browserpluginsdir}
153
154rm -f $RPM_BUILD_ROOT%{_mandir}/man1/djview.1
155echo '.so djview3.1' > $RPM_BUILD_ROOT%{_mandir}/man1/djview.1
156echo '.so djview3.1' > $RPM_BUILD_ROOT%{_mandir}/ja/man1/djview.1
04670ce6 157
04670ce6
PG
158%clean
159rm -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}
168if [ "$1" = 0 ]; then
169 %update_browser_plugins
170fi
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
This page took 0.183946 seconds and 4 git commands to generate.