]> git.pld-linux.org Git - packages/djvulibre.git/blob - djvulibre.spec
- actually apply link patch
[packages/djvulibre.git] / djvulibre.spec
1 #
2 # Conditional build:
3 %bcond_without  qt      # disable qt wrapper
4 #
5 Summary:        DjVu viewers, encoders and utilities
6 Summary(pl):    DjVu - przegl±darki, dekodery oraz narzêdzia
7 Name:           djvulibre
8 Version:        3.5.18
9 Release:        1
10 License:        GPL
11 Group:          Applications/Graphics
12 Source0:        http://dl.sourceforge.net/djvu/%{name}-%{version}.tar.gz
13 # Source0-md5:  73fd6d4f92832b85a91529b7bb3b7710
14 Patch0:         %{name}-opt.patch
15 Patch1:         %{name}-nostrip.patch
16 Patch2:         %{name}-desktop.patch
17 Patch3:         %{name}-link.patch
18 URL:            http://djvu.sourceforge.net/
19 BuildRequires:  autoconf >= 2.50
20 BuildRequires:  automake
21 BuildRequires:  libjpeg-devel
22 BuildRequires:  libstdc++-devel
23 %{?with_qt:BuildRequires:       qt-devel >= 3.0.5}
24 BuildRequires:  rpmbuild(macros) >= 1.357
25 %{?with_qt:BuildRequires:       xorg-lib-libXt-devel}
26 Obsoletes:      djvu
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
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
33 resources than competing formats. DjVu was originally developed at
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
37 Windows).
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
46 This package of DjVulibre 3.5 contains:
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
55 Following 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
59 %description -l pl
60 DjVu jest przeznaczonym g³ównie dla WWW formatem i platform±
61 programow± do dystrybucji dokumentów i obrazków. Dane w DjVu ¶ci±gaj±
62 siê szybciej, wy¶wietlaj± szybciej, wygl±daj± ³adniej na ekranie i
63 zajmuj± mniej zasobów po stronie klienckiej ni¿ inne formaty. DjVu
64 oryginalnie zosta³ stworzony w AT&T Labs-Research przez Leona Bottou,
65 Yanna LeCun, Patricka Haffnera i wielu innych. W marcu 2000 AT&T
66 sprzeda³o DjVu firmie LizardTech Inc., które teraz rozpowszechnia
67 wtyczki dla Windows i Maca oraz komercyjne kodery (g³ównie dla
68 Windows).
69
70 Aby wypromowaæ DjVu jako sieciowy standard, LizardTech udostêpni³
71 wzorcow± implementacjê DjVu na licencji GPL w pa¼dzierniku 2000.
72 DjVuLibre (czyli wolne DjVu) jest rozszerzon± wersj± tego kodu
73 rozwijan± przez pomys³odawców DjVu. Jest kompatybilna z wersj± 3.5
74 oprogramowania LizardTech DjVu.
75
76 Ten pakiet zawiera: bibliotekê w C++, zestaw kompresorów, dekoderów i
77 narzêdzi do plików w formacie DjVu. Przegl±darka oraz wtyczki do
78 przegl±darek znajduj± siê w innych podpakietach.
79
80 %package devel
81 Summary:        Header file for DjVu library
82 Summary(pl):    Plik nag³ówkowy biblioteki DjVu
83 Group:          Development/Libraries
84 Requires:       %{name} = %{version}-%{release}
85 Requires:       libjpeg-devel
86 Requires:       libstdc++-devel
87
88 %description devel
89 Header file for DjVu library.
90
91 %description devel -l pl
92 Plik nag³ówkowy biblioteki DjVu.
93
94 %package djview
95 Summary:        Qt-based DjVu viewer
96 Summary(pl):    Oparta o Qt przegl±darka DjVu
97 Group:          X11/Applications
98 Requires:       %{name} = %{version}-%{release}
99 Obsoletes:      djview
100
101 %description djview
102 Qt-based DjVu viewer.
103
104 %description djview -l pl
105 Oparta o Qt przegl±darka DjVu.
106
107 %package -n browser-plugin-%{name}
108 Summary:        DjVu browser plugin
109 Summary(pl):    Wtyczka DjVu do przegl±derek WWW
110 Group:          X11/Libraries
111 Requires:       %{name}-djview = %{version}-%{release}
112 Requires:       browser-plugins >= 2.0
113 Requires:       browser-plugins(%{_target_base_arch})
114 # for migrate purposes (greedy poldek upgrade)
115 Provides:       mozilla-plugin-djvulibre
116 Provides:       netscape-plugin-djvulibre
117 Obsoletes:      djview-netscape
118 Obsoletes:      mozilla-plugin-djvulibre
119 Obsoletes:      netscape-plugin-djvulibre
120
121 %description -n browser-plugin-%{name}
122 DjVu plugin for Mozilla and Mozilla-based browsers.
123
124 %description -n browser-plugin-%{name} -l pl
125 Wtyczka DjVu do przegl±darek zgodnych z Mozill±.
126
127 %prep
128 %setup -q
129 %patch0 -p1
130 %patch1 -p1
131 %patch2 -p1
132 %patch3 -p1
133
134 %build
135 cp -f /usr/share/automake/config.sub config
136 %{__aclocal} -I config
137 %{__autoconf}
138 export QT_LIBS="-L%{_libdir} -lqt-mt"
139 export QT_CFLAGS="-I%{_includedir}/qt"
140 %configure \
141         PTHREAD_LIBS="-lpthread"
142
143 %{__make}
144
145 %install
146 rm -rf $RPM_BUILD_ROOT
147 install -d $RPM_BUILD_ROOT%{_browserpluginsdir}
148
149 %{__make} install \
150         DESTDIR=$RPM_BUILD_ROOT \
151         plugindir=%{_browserpluginsdir}
152
153 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/djview.1
154 echo '.so djview3.1' > $RPM_BUILD_ROOT%{_mandir}/man1/djview.1
155 echo '.so djview3.1' > $RPM_BUILD_ROOT%{_mandir}/ja/man1/djview.1
156
157 %clean
158 rm -rf $RPM_BUILD_ROOT
159
160 %post   -p /sbin/ldconfig
161 %postun -p /sbin/ldconfig
162
163 %post -n browser-plugin-%{name}
164 %update_browser_plugins
165
166 %postun -n browser-plugin-%{name}
167 if [ "$1" = 0 ]; then
168         %update_browser_plugins
169 fi
170
171 %files
172 %defattr(644,root,root,755)
173 %doc COPYRIGHT NEWS README TODO doc/*
174 %attr(755,root,root) %{_bindir}/[!d]*
175 %attr(755,root,root) %{_bindir}/d[!j]*
176 %attr(755,root,root) %{_bindir}/djv[!i]*
177 %attr(755,root,root) %{_libdir}/libdjvulibre.so.*.*.*
178 %{_mandir}/man1/[!dn]*
179 %{_mandir}/man1/d[!j]*
180 %{_mandir}/man1/djv[!i]*
181 %lang(ja) %{_mandir}/ja/man1/[!dn]*
182 %lang(ja) %{_mandir}/ja/man1/d[!j]*
183 %lang(ja) %{_mandir}/ja/man1/djv[!i]*
184 %dir %{_datadir}/djvu
185 %dir %{_datadir}/djvu/osi
186 %{_datadir}/djvu/osi/languages.xml
187 %lang(de) %{_datadir}/djvu/osi/de
188 %{_datadir}/djvu/osi/en
189 %lang(fr) %{_datadir}/djvu/osi/fr
190 %lang(ja) %{_datadir}/djvu/osi/ja
191 %lang(zh) %{_datadir}/djvu/osi/zh
192 %{_datadir}/djvu/pubtext
193
194 %files devel
195 %defattr(644,root,root,755)
196 %attr(755,root,root) %{_libdir}/libdjvulibre.so
197 %{_libdir}/libdjvulibre.la
198 %{_includedir}/libdjvu
199 %{_pkgconfigdir}/ddjvuapi.pc
200
201 %if %{with qt}
202 %files djview
203 %defattr(644,root,root,755)
204 %attr(755,root,root) %{_bindir}/djview
205 %attr(755,root,root) %{_bindir}/djview3
206 %dir %{_datadir}/djvu/djview3
207 %lang(de) %{_datadir}/djvu/djview3/de
208 %lang(fr) %{_datadir}/djvu/djview3/fr
209 %lang(ja) %{_datadir}/djvu/djview3/ja
210 %{_mandir}/man1/djview.1*
211 %{_mandir}/man1/djview3.1*
212 %lang(ja) %{_mandir}/ja/man1/djview.1*
213 %lang(ja) %{_mandir}/ja/man1/djview3.1*
214 %{_desktopdir}/djvulibre-djview3.desktop
215 %{_iconsdir}/hicolor/*/apps/djvulibre-djview3.png
216 %{_iconsdir}/hicolor/*/mimetypes/mime-image-vnd.djvu.png
217
218 %files -n browser-plugin-%{name}
219 %defattr(644,root,root,755)
220 %attr(755,root,root) %{_browserpluginsdir}/nsdejavu.so
221 %{_mandir}/man1/nsdejavu.1*
222 %lang(ja) %{_mandir}/ja/man1/nsdejavu.1*
223 %endif
This page took 0.141426 seconds and 3 git commands to generate.