]> git.pld-linux.org Git - packages/djvulibre.git/blob - djvulibre.spec
- updated for 3.5.15
[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.14
9 Release:        2
10 License:        GPL
11 Group:          Applications/Graphics
12 Source0:        http://dl.sourceforge.net/djvu/%{name}-%{version}.tar.gz
13 # Source0-md5:  4a3f17603468b2e6969190be18bf00d0
14 Patch0:         %{name}-opt.patch
15 Patch1:         %{name}-nostrip.patch
16 Patch2:         %{name}-desktop.patch
17 URL:            http://djvu.sourceforge.net/
18 BuildRequires:  autoconf >= 2.50
19 BuildRequires:  automake
20 BuildRequires:  libjpeg-devel
21 BuildRequires:  libstdc++-devel
22 %{?with_qt:BuildRequires:       qt-devel >= 3.0.5}
23 Obsoletes:      djvu
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %define         mozdir          /usr/%{_lib}/mozilla/plugins
27 %define         nsdir           /usr/%{_lib}/netscape/plugins
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±
74 3.5 oprogramowania LizardTech DjVu.
75
76 Ten pakiet zawiera: bibliotekê w C++, zestaw kompresorów, dekoderów
77 i 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 mozilla-plugin-%{name}
108 Summary:        DjVu plugin for Mozilla
109 Summary(pl):    Wtyczka DjVu do Mozilli
110 Group:          X11/Libraries
111 Requires:       %{name}-djview = %{version}-%{release}
112 Requires:       mozilla-embedded
113
114 %description -n mozilla-plugin-%{name}
115 DjVu plugin for Mozilla and Mozilla-based browsers.
116
117 %description -n mozilla-plugin-%{name} -l pl
118 Wtyczka DjVu do Mozilli i przegl±darek na niej bazuj±cych.
119
120 %package -n netscape-plugin-%{name}
121 Summary:        DjVu plugin for Netscape
122 Summary(pl):    Wtyczka DjVu do Netscape
123 Group:          X11/Libraries
124 Requires:       %{name}-djview = %{version}-%{release}
125 Requires:       netscape-common
126 Obsoletes:      djview-netscape
127
128 %description -n netscape-plugin-%{name}
129 DjVu plugin for Netscape.
130
131 %description -n netscape-plugin-%{name} -l pl
132 Wtyczka DjVu do Netscape.
133
134 %prep
135 %setup -q
136 %patch0 -p1
137 %patch1 -p1
138 %patch2 -p1
139
140 %build
141 cp -f /usr/share/automake/config.sub config
142 %{__aclocal} -I config -I gui/desktop
143 %{__autoconf}
144 QT_LIBS="-L%{_libdir} -lqt-mt"; export QT_LIBS
145 QT_CFLAGS="-I%{_includedir}/qt"; export QT_CFLAGS
146 %configure \
147         PTHREAD_LIBS="-lpthread"
148
149 %{__make}
150
151 %install
152 rm -rf $RPM_BUILD_ROOT
153 install -d $RPM_BUILD_ROOT{%{mozdir},%{nsdir}}
154
155 # pass dtop_* to allow build w/o gnome/kde/etc. installed
156 %{__make} install \
157         DESTDIR=$RPM_BUILD_ROOT \
158         plugindir=%{mozdir} \
159         dtop_applications=%{_desktopdir} \
160         dtop_icons=%{_iconsdir} \
161         dtop_mimelnk=%{_datadir}/mimelnk \
162         dtop_applnk= \
163         dtop_pixmaps=%{_pixmapsdir} \
164         dtop_mime_info= \
165         dtop_application_registry=
166
167 %if %{with qt}
168 cp -f $RPM_BUILD_ROOT%{mozdir}/nsdejavu.so $RPM_BUILD_ROOT%{nsdir}
169 %endif
170
171 %clean
172 rm -rf $RPM_BUILD_ROOT
173
174 %post   -p /sbin/ldconfig
175 %postun -p /sbin/ldconfig
176
177 %files
178 %defattr(644,root,root,755)
179 %doc COPYRIGHT NEWS README TODO doc/*
180 %attr(755,root,root) %{_bindir}/[!d]*
181 %attr(755,root,root) %{_bindir}/d[!j]*
182 %attr(755,root,root) %{_bindir}/djv[!i]*
183 %attr(755,root,root) %{_libdir}/libdjvulibre.so.*.*.*
184 %{_mandir}/man1/[!dn]*
185 %{_mandir}/man1/d[!j]*
186 %{_mandir}/man1/djv[!i]*
187 %lang(ja) %{_mandir}/ja/man1/[!dn]*
188 %lang(ja) %{_mandir}/ja/man1/d[!j]*
189 %lang(ja) %{_mandir}/ja/man1/djv[!i]*
190 %dir %{_datadir}/djvu
191 %{_datadir}/djvu/languages.xml
192 %dir %{_datadir}/djvu/osi
193 %lang(de) %{_datadir}/djvu/osi/de
194 %{_datadir}/djvu/osi/en
195 %lang(fr) %{_datadir}/djvu/osi/fr
196 %lang(ja) %{_datadir}/djvu/osi/ja
197 %lang(zh) %{_datadir}/djvu/osi/zh
198 %{_datadir}/djvu/pubtext
199
200 %files devel
201 %defattr(644,root,root,755)
202 %attr(755,root,root) %{_libdir}/libdjvulibre.so
203 %{_libdir}/libdjvulibre.la
204 %{_includedir}/libdjvu
205
206 %if %{with qt}
207 %files djview
208 %defattr(644,root,root,755)
209 %attr(755,root,root) %{_bindir}/djview
210 %{_mandir}/man1/djview.1*
211 %lang(ja) %{_mandir}/ja/man1/djview.1*
212 %{_datadir}/mimelnk/image/x-djvu.desktop
213 %{_desktopdir}/djview.desktop
214 %{_iconsdir}/hicolor/*/mimetypes/djvu.png
215 %{_pixmapsdir}/djvu.png
216
217 %files -n mozilla-plugin-%{name}
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{mozdir}/*.so
220 %{_mandir}/man1/nsdejavu.1*
221 %lang(ja) %{_mandir}/ja/man1/nsdejavu.1*
222
223 %files -n netscape-plugin-%{name}
224 %defattr(644,root,root,755)
225 %attr(755,root,root) %{nsdir}/*.so
226 %endif
This page took 0.137507 seconds and 3 git commands to generate.