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