]> git.pld-linux.org Git - packages/djvulibre.git/blob - djvulibre.spec
- lib64-aware mozilla/netscape dirs
[packages/djvulibre.git] / djvulibre.spec
1 Summary:        DjVu viewers, encoders and utilities
2 Summary(pl):    DjVu - przegl±darki, dekodery oraz narzêdzia
3 Name:           djvulibre
4 Version:        3.5.12
5 Release:        2
6 License:        GPL
7 Group:          Applications/Graphics
8 Source0:        http://dl.sourceforge.net/djvu/%{name}-%{version}.tar.gz
9 # Source0-md5:  4adeb92beb8295aa330b9c6b042ba02d
10 Patch0:         %{name}-opt.patch
11 Patch1:         %{name}-nostrip.patch
12 URL:            http://djvu.sourceforge.net/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  libjpeg-devel
16 BuildRequires:  libstdc++-devel
17 BuildRequires:  qt-devel >= 3.0.5
18 Obsoletes:      djvu
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         mozdir          /usr/%{_lib}/mozilla/plugins
22 %define         nsdir           /usr/%{_lib}/netscape/plugins
23
24 %description
25 DjVu is a web-centric format and software platform for distributing
26 documents and images. DjVu content downloads faster, displays and
27 renders faster, looks nicer on a screen, and consume less client
28 resources than competing formats. DjVu was originally developed at
29 AT&T Labs-Research by Leon Bottou, Yann LeCun, Patrick Haffner, and
30 many others. In March 2000, AT&T sold DjVu to LizardTech Inc. who now
31 distributes Windows/Mac plug-ins, and commercial encoders (mostly on
32 Windows).
33
34 In an effort to promote DjVu as a Web standard, the LizardTech
35 management was enlightened enough to release the reference
36 implementation of DjVu under the GNU GPL in October 2000. DjVuLibre
37 (which means free DjVu), is an enhanced version of that code
38 maintained by the original inventors of DjVu. It is compatible with
39 version 3.5 of the LizardTech DjVu software suite.
40
41 This package of DjVulibre 3.5 contains:
42 - A full-fledged wavelet-based compressor for pictures.
43 - A simple compressor for bitonal (black and white) scanned pages.
44 - A compressor for palettized images (a la GIF/PNG).
45 - A set of utilities to manipulate and assemble DjVu images and
46   documents.
47 - A set of decoders to convert DjVu to a number of other formats.
48 - An up-to-date version of the C++ DjVu Reference Library.
49
50 Following elements are placed in other subpackages:
51 - a standalone DjVu viewer based on the Qt library.
52 - A browser plugin that works with most Unix browsers.
53
54 %description -l pl
55 DjVu jest przeznaczonym g³ównie dla WWW formatem i platform±
56 programow± do dystrybucji dokumentów i obrazków. Dane w DjVu ¶ci±gaj±
57 siê szybciej, wy¶wietlaj± szybciej, wygl±daj± ³adniej na ekranie i
58 zajmuj± mniej zasobów po stronie klienckiej ni¿ inne formaty. DjVu
59 oryginalnie zosta³ stworzony w AT&T Labs-Research przez Leona Bottou,
60 Yanna LeCun, Patricka Haffnera i wielu innych. W marcu 2000 AT&T
61 sprzeda³o DjVu firmie LizardTech Inc., które teraz rozpowszechnia
62 wtyczki dla Windows i Maca oraz komercyjne kodery (g³ównie dla
63 Windows).
64
65 Aby wypromowaæ DjVu jako sieciowy standard, LizardTech udostêpni³
66 wzorcow± implementacjê DjVu na licencji GPL w pa¼dzierniku 2000.
67 DjVuLibre (czyli wolne DjVu) jest rozszerzon± wersj± tego kodu
68 rozwijan± przez pomys³odawców DjVu. Jest kompatybilna z wersj±
69 3.5 oprogramowania LizardTech DjVu.
70
71 Ten pakiet zawiera: bibliotekê w C++, zestaw kompresorów, dekoderów
72 i narzêdzi do plików w formacie DjVu. Przegl±darka oraz wtyczki do
73 przegl±darek znajduj± siê w innych podpakietach.
74
75 %package djview
76 Summary:        Qt-based DjVu viewer
77 Summary(pl):    Oparta o Qt przegl±darka DjVu
78 Group:          X11/Applications
79 Requires:       %{name} = %{version}-%{release}
80 Obsoletes:      djview
81
82 %description djview
83 Qt-based DjVu viewer.
84
85 %description djview -l pl
86 Oparta o Qt przegl±darka DjVu.
87
88 %package -n mozilla-plugin-%{name}
89 Summary:        DjVu plugin for Mozilla
90 Summary(pl):    Wtyczka DjVu do Mozilli
91 Group:          X11/Libraries
92 Requires:       %{name}-djview = %{version}-%{release}
93 Requires:       mozilla-embedded
94
95 %description -n mozilla-plugin-%{name}
96 DjVu plugin for Mozilla and Mozilla-based browsers.
97
98 %description -n mozilla-plugin-%{name} -l pl
99 Wtyczka DjVu do Mozilli i przegl±darek na niej bazuj±cych.
100
101 %package -n netscape-plugin-%{name}
102 Summary:        DjVu plugin for Netscape
103 Summary(pl):    Wtyczka DjVu do Netscape
104 Group:          X11/Libraries
105 Requires:       %{name}-djview = %{version}-%{release}
106 Requires:       netscape-common
107 Obsoletes:      djview-netscape
108
109 %description -n netscape-plugin-%{name}
110 DjVu plugin for Netscape.
111
112 %description -n netscape-plugin-%{name} -l pl
113 Wtyczka DjVu do Netscape.
114
115 %prep
116 %setup -q
117 %patch0 -p1
118 %patch1 -p1
119
120 %build
121 cp -f /usr/share/automake/config.sub config
122 %{__aclocal}
123 %{__autoconf}
124 QT_LIBS="-L%{_libdir} -lqt-mt"; export QT_LIBS
125 QT_CFLAGS="-I%{_includedir}/qt"; export QT_CFLAGS
126 %configure
127
128 %{__make} depend
129 %{__make}
130
131 %install
132 rm -rf $RPM_BUILD_ROOT
133 install -d $RPM_BUILD_ROOT{%{mozdir},%{nsdir}}
134
135 %{__make} install \
136         DESTDIR=$RPM_BUILD_ROOT
137
138 mv -f $RPM_BUILD_ROOT%{_libdir}/netscape/plugins/nsdejavu.so \
139         $RPM_BUILD_ROOT%{mozdir}
140 cp -f $RPM_BUILD_ROOT%{mozdir}/nsdejavu.so $RPM_BUILD_ROOT%{nsdir}
141
142 %clean
143 rm -rf $RPM_BUILD_ROOT
144
145 %post   -p /sbin/ldconfig
146 %postun -p /sbin/ldconfig
147
148 %files
149 %defattr(644,root,root,755)
150 %doc COPYRIGHT NEWS README TODO doc/*
151 %attr(755,root,root) %{_bindir}/[!d]*
152 %attr(755,root,root) %{_bindir}/d[!j]*
153 %attr(755,root,root) %{_bindir}/djv[!i]*
154 %attr(755,root,root) %{_libdir}/lib*.so
155 %{_mandir}/man1/[!d]*
156 %{_mandir}/man1/d[!j]*
157 %{_mandir}/man1/djv[!i]*
158 %dir %{_datadir}/djvu
159 %{_datadir}/djvu/languages.xml
160 %dir %{_datadir}/djvu/osi
161 %lang(zh) %{_datadir}/djvu/osi/Chinese_PRC
162 %lang(de) %{_datadir}/djvu/osi/de_DE
163 %{_datadir}/djvu/osi/en
164 %lang(fr) %{_datadir}/djvu/osi/fr_FR
165 %lang(ja) %{_datadir}/djvu/osi/ja_JP
166
167 %files djview
168 %defattr(644,root,root,755)
169 %attr(755,root,root) %{_bindir}/djview
170 %{_mandir}/man1/djview.1*
171
172 %files -n mozilla-plugin-%{name}
173 %defattr(644,root,root,755)
174 %attr(755,root,root) %{mozdir}/*.so
175
176 %files -n netscape-plugin-%{name}
177 %defattr(644,root,root,755)
178 %attr(755,root,root) %{nsdir}/*.so
This page took 0.052653 seconds and 4 git commands to generate.