]> git.pld-linux.org Git - packages/djvulibre.git/blob - djvulibre.spec
- browser plugins v2; rel 4
[packages/djvulibre.git] / djvulibre.spec
1 # Conditional build:
2 %bcond_without  qt      # disable qt wrapper
3 #
4 Summary:        DjVu viewers, encoders and utilities
5 Summary(pl):    DjVu - przegl±darki, dekodery oraz narzêdzia
6 Name:           djvulibre
7 Version:        3.5.17
8 Release:        4
9 License:        GPL
10 Group:          Applications/Graphics
11 Source0:        http://dl.sourceforge.net/djvu/%{name}-%{version}.tar.gz
12 # Source0-md5:  18e71eec1f7d59ef4710b405ea64650e
13 Patch0:         %{name}-opt.patch
14 Patch1:         %{name}-nostrip.patch
15 Patch2:         %{name}-desktop.patch
16 URL:            http://djvu.sourceforge.net/
17 BuildRequires:  autoconf >= 2.50
18 BuildRequires:  automake
19 BuildRequires:  libjpeg-devel
20 BuildRequires:  libstdc++-devel
21 %{?with_qt:BuildRequires:       qt-devel >= 3.0.5}
22 BuildRequires:  rpmbuild(macros) >= 1.357
23 Obsoletes:      djvu
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 DjVu is a web-centric format and software platform for distributing
28 documents and images. DjVu content downloads faster, displays and
29 renders faster, looks nicer on a screen, and consume less client
30 resources than competing formats. DjVu was originally developed at
31 AT&T Labs-Research by Leon Bottou, Yann LeCun, Patrick Haffner, and
32 many others. In March 2000, AT&T sold DjVu to LizardTech Inc. who now
33 distributes Windows/Mac plug-ins, and commercial encoders (mostly on
34 Windows).
35
36 In an effort to promote DjVu as a Web standard, the LizardTech
37 management was enlightened enough to release the reference
38 implementation of DjVu under the GNU GPL in October 2000. DjVuLibre
39 (which means free DjVu), is an enhanced version of that code
40 maintained by the original inventors of DjVu. It is compatible with
41 version 3.5 of the LizardTech DjVu software suite.
42
43 This package of DjVulibre 3.5 contains:
44 - A full-fledged wavelet-based compressor for pictures.
45 - A simple compressor for bitonal (black and white) scanned pages.
46 - A compressor for palettized images (a la GIF/PNG).
47 - A set of utilities to manipulate and assemble DjVu images and
48   documents.
49 - A set of decoders to convert DjVu to a number of other formats.
50 - An up-to-date version of the C++ DjVu Reference Library.
51
52 Following elements are placed in other subpackages:
53 - a standalone DjVu viewer based on the Qt library.
54 - A browser plugin that works with most Unix browsers.
55
56 %description -l pl
57 DjVu jest przeznaczonym g³ównie dla WWW formatem i platform±
58 programow± do dystrybucji dokumentów i obrazków. Dane w DjVu ¶ci±gaj±
59 siê szybciej, wy¶wietlaj± szybciej, wygl±daj± ³adniej na ekranie i
60 zajmuj± mniej zasobów po stronie klienckiej ni¿ inne formaty. DjVu
61 oryginalnie zosta³ stworzony w AT&T Labs-Research przez Leona Bottou,
62 Yanna LeCun, Patricka Haffnera i wielu innych. W marcu 2000 AT&T
63 sprzeda³o DjVu firmie LizardTech Inc., które teraz rozpowszechnia
64 wtyczki dla Windows i Maca oraz komercyjne kodery (g³ównie dla
65 Windows).
66
67 Aby wypromowaæ DjVu jako sieciowy standard, LizardTech udostêpni³
68 wzorcow± implementacjê DjVu na licencji GPL w pa¼dzierniku 2000.
69 DjVuLibre (czyli wolne DjVu) jest rozszerzon± wersj± tego kodu
70 rozwijan± przez pomys³odawców DjVu. Jest kompatybilna z wersj± 3.5
71 oprogramowania LizardTech DjVu.
72
73 Ten pakiet zawiera: bibliotekê w C++, zestaw kompresorów, dekoderów i
74 narzêdzi do plików w formacie DjVu. Przegl±darka oraz wtyczki do
75 przegl±darek znajduj± siê w innych podpakietach.
76
77 %package devel
78 Summary:        Header file for DjVu library
79 Summary(pl):    Plik nag³ówkowy biblioteki DjVu
80 Group:          Development/Libraries
81 Requires:       %{name} = %{version}-%{release}
82 Requires:       libjpeg-devel
83 Requires:       libstdc++-devel
84
85 %description devel
86 Header file for DjVu library.
87
88 %description devel -l pl
89 Plik nag³ówkowy biblioteki DjVu.
90
91 %package djview
92 Summary:        Qt-based DjVu viewer
93 Summary(pl):    Oparta o Qt przegl±darka DjVu
94 Group:          X11/Applications
95 Requires:       %{name} = %{version}-%{release}
96 Obsoletes:      djview
97
98 %description djview
99 Qt-based DjVu viewer.
100
101 %description djview -l pl
102 Oparta o Qt przegl±darka DjVu.
103
104 %package -n browser-plugin-%{name}
105 Summary:        DjVu browser plugin
106 Summary(pl):    Wtyczka DjVu do przegl±derek WWW
107 Group:          X11/Libraries
108 Requires:       %{name}-djview = %{version}-%{release}
109 Requires:       browser-plugins >= 2.0
110 Requires:       browser-plugins(%{_target_base_arch})
111 Obsoletes:      djview-netscape
112 Obsoletes:      mozilla-plugin-djvulibre
113 Obsoletes:      netscape-plugin-djvulibre
114 # for migrate purposes (greedy poldek upgrade)
115 Provides:       mozilla-plugin-djvulibre
116 Provides:       netscape-plugin-djvulibre
117
118 %description -n browser-plugin-%{name}
119 DjVu plugin for Mozilla and Mozilla-based browsers.
120
121 %description -n browser-plugin-%{name} -l pl
122 Wtyczka DjVu do przegl±darek zgodnych z Mozill±.
123
124 %prep
125 %setup -q
126 %patch0 -p1
127 %patch1 -p1
128 %patch2 -p1
129
130 %build
131 cp -f /usr/share/automake/config.sub config
132 %{__aclocal} -I config -I gui/desktop
133 %{__autoconf}
134 export QT_LIBS="-L%{_libdir} -lqt-mt"
135 export QT_CFLAGS="-I%{_includedir}/qt"
136 %configure \
137         PTHREAD_LIBS="-lpthread"
138
139 %{__make}
140
141 %install
142 rm -rf $RPM_BUILD_ROOT
143 install -d $RPM_BUILD_ROOT%{_browserpluginsdir}
144
145 # pass dtop_* to allow build w/o gnome/kde/etc. installed
146 %{__make} install \
147         DESTDIR=$RPM_BUILD_ROOT \
148         plugindir=%{_browserpluginsdir} \
149         dtop_applications=%{_desktopdir} \
150         dtop_icons=%{_iconsdir} \
151         dtop_mimelnk=%{_datadir}/mimelnk \
152         dtop_applnk= \
153         dtop_pixmaps=%{_pixmapsdir} \
154         dtop_mime_info= \
155         dtop_application_registry=
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 %{_datadir}/djvu/languages.xml
186 %dir %{_datadir}/djvu/osi
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}/*.pc
200
201 %if %{with qt}
202 %files djview
203 %defattr(644,root,root,755)
204 %attr(755,root,root) %{_bindir}/djview
205 %{_mandir}/man1/djview.1*
206 %lang(ja) %{_mandir}/ja/man1/djview.1*
207 # don't include here - conflicts with kdelibs
208 # %{_datadir}/mimelnk/image/x-djvu.desktop
209 %{_desktopdir}/djview.desktop
210 %{_iconsdir}/hicolor/*/mimetypes/djvu.png
211 %{_pixmapsdir}/djvu.png
212
213 %files -n browser-plugin-%{name}
214 %defattr(644,root,root,755)
215 %attr(755,root,root) %{_browserpluginsdir}/*.so
216 %{_mandir}/man1/nsdejavu.1*
217 %lang(ja) %{_mandir}/ja/man1/nsdejavu.1*
218 %endif
This page took 0.10107 seconds and 3 git commands to generate.