]> git.pld-linux.org Git - packages/djvulibre.git/blame - djvulibre.spec
- copy-pasto
[packages/djvulibre.git] / djvulibre.spec
CommitLineData
43ffeeaa 1#
25d1a4e1 2# Conditional build:
3%bcond_without qt # disable qt wrapper
4#
e87c1ccc 5Summary: DjVu viewers, encoders and utilities
cf9a38ec 6Summary(pl.UTF-8): DjVu - przeglądarki, dekodery oraz narzędzia
04670ce6 7Name: djvulibre
5de4cdac 8Version: 3.5.20
43ffeeaa 9Release: 1
31a2c3b2 10License: GPL v2+
04670ce6 11Group: Applications/Graphics
70d5604b 12Source0: http://dl.sourceforge.net/djvu/%{name}-%{version}.tar.gz
5de4cdac 13# Source0-md5: c94091de014b3aaf037d3d0f398d36c2
ff84a788
JB
14Patch0: %{name}-opt.patch
15Patch1: %{name}-nostrip.patch
f7681c5c 16Patch2: %{name}-desktop.patch
f99575b3 17Patch3: %{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
4747e913 132%patch3 -p1
04670ce6
PG
133
134%build
d7c8b9f8 135cp -f /usr/share/automake/config.sub config
43ffeeaa 136%{__aclocal} -I config
bca43ffb 137%{__autoconf}
dd69650c
ER
138export QT_LIBS="-L%{_libdir} -lqt-mt"
139export QT_CFLAGS="-I%{_includedir}/qt"
735aa760
JB
140%configure \
141 PTHREAD_LIBS="-lpthread"
04670ce6 142
4c178625
JB
143%{__make}
144
04670ce6
PG
145%install
146rm -rf $RPM_BUILD_ROOT
dd69650c 147install -d $RPM_BUILD_ROOT%{_browserpluginsdir}
4c178625
JB
148
149%{__make} install \
735aa760 150 DESTDIR=$RPM_BUILD_ROOT \
43ffeeaa
JB
151 plugindir=%{_browserpluginsdir}
152
153rm -f $RPM_BUILD_ROOT%{_mandir}/man1/djview.1
154echo '.so djview3.1' > $RPM_BUILD_ROOT%{_mandir}/man1/djview.1
155echo '.so djview3.1' > $RPM_BUILD_ROOT%{_mandir}/ja/man1/djview.1
04670ce6 156
04670ce6
PG
157%clean
158rm -rf $RPM_BUILD_ROOT
159
4c178625
JB
160%post -p /sbin/ldconfig
161%postun -p /sbin/ldconfig
04670ce6 162
dd69650c
ER
163%post -n browser-plugin-%{name}
164%update_browser_plugins
ceb0dc7e 165
dd69650c
ER
166%postun -n browser-plugin-%{name}
167if [ "$1" = 0 ]; then
168 %update_browser_plugins
169fi
ceb0dc7e 170
04670ce6
PG
171%files
172%defattr(644,root,root,755)
1fc78246 173%doc COPYRIGHT NEWS README TODO doc/*
5574c66b
JB
174%attr(755,root,root) %{_bindir}/[!d]*
175%attr(755,root,root) %{_bindir}/d[!j]*
176%attr(755,root,root) %{_bindir}/djv[!i]*
735aa760 177%attr(755,root,root) %{_libdir}/libdjvulibre.so.*.*.*
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
208%lang(de) %{_datadir}/djvu/djview3/de
209%lang(fr) %{_datadir}/djvu/djview3/fr
210%lang(ja) %{_datadir}/djvu/djview3/ja
5574c66b 211%{_mandir}/man1/djview.1*
43ffeeaa 212%{_mandir}/man1/djview3.1*
f7681c5c 213%lang(ja) %{_mandir}/ja/man1/djview.1*
43ffeeaa 214%lang(ja) %{_mandir}/ja/man1/djview3.1*
6622950d
JB
215%{_desktopdir}/djvulibre-djview3.desktop
216%{_iconsdir}/hicolor/*/apps/djvulibre-djview3.png
217%{_iconsdir}/hicolor/*/mimetypes/mime-image-vnd.djvu.png
4c178625 218
e14ea703 219%files -n browser-plugin-%{name}
4c178625 220%defattr(644,root,root,755)
43ffeeaa 221%attr(755,root,root) %{_browserpluginsdir}/nsdejavu.so
f7681c5c
JB
222%{_mandir}/man1/nsdejavu.1*
223%lang(ja) %{_mandir}/ja/man1/nsdejavu.1*
25d1a4e1 224%endif
This page took 0.097182 seconds and 4 git commands to generate.