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