]> git.pld-linux.org Git - packages/djvulibre.git/blob - djvulibre.spec
307adc9888df38a85446975aafb3494331104f31
[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.11
5 Release:        1
6 License:        GPL
7 Group:          Applications/Graphics
8 Source0:        http://dl.sourceforge.net/djvu/%{name}-%{version}.tar.gz
9 # Source0-md5:  c6adf3312d9930b8dd39418a48a50139
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}
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}
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}
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 -q
116 %setup -q
117 %patch0 -p1
118 %patch1 -p1
119
120 %build
121 %{__aclocal}
122 %{__autoconf}
123 # there are aliasing violations - at least at libdjvu/BSByteStream.cpp:363-364
124 # (GPBuffer::GPBuffer casts unsigned int*& to void*&),
125 # so -fno-strict-aliasing must be passed
126 CXXFLAGS="%{rpmcflags} -fno-strict-aliasing"
127 %configure
128
129 %{__make} depend
130 %{__make}
131
132 %install
133 rm -rf $RPM_BUILD_ROOT
134 install -d $RPM_BUILD_ROOT{%{mozdir},%{nsdir}}
135
136 %{__make} install \
137         DESTDIR=$RPM_BUILD_ROOT
138
139 mv -f $RPM_BUILD_ROOT%{_libdir}/netscape/plugins/nsdejavu.so \
140         $RPM_BUILD_ROOT%{mozdir}
141 cp -f $RPM_BUILD_ROOT%{mozdir}/nsdejavu.so $RPM_BUILD_ROOT%{nsdir}
142
143 %clean
144 rm -rf $RPM_BUILD_ROOT
145
146 %post   -p /sbin/ldconfig
147 %postun -p /sbin/ldconfig
148
149 %files
150 %defattr(644,root,root,755)
151 %doc COPYRIGHT NEWS README TODO doc/*
152 %attr(755,root,root) %{_bindir}/[!d]*
153 %attr(755,root,root) %{_bindir}/d[!j]*
154 %attr(755,root,root) %{_bindir}/djv[!i]*
155 %attr(755,root,root) %{_libdir}/lib*.so
156 %{_mandir}/man1/[!d]*
157 %{_mandir}/man1/d[!j]*
158 %{_mandir}/man1/djv[!i]*
159 %dir %{_datadir}/djvu
160 %{_datadir}/djvu/languages.xml
161 %dir %{_datadir}/djvu/osi
162 %lang(zh) %{_datadir}/djvu/osi/Chinese_PRC
163 %lang(de) %{_datadir}/djvu/osi/de_DE
164 %{_datadir}/djvu/osi/en
165 %lang(fr) %{_datadir}/djvu/osi/fr_FR
166 %lang(ja) %{_datadir}/djvu/osi/ja_JP
167
168 %files djview
169 %defattr(644,root,root,755)
170 %attr(755,root,root) %{_bindir}/djview
171 %{_mandir}/man1/djview.1*
172
173 %files -n mozilla-plugin-%{name}
174 %defattr(644,root,root,755)
175 %attr(755,root,root) %{mozdir}/*.so
176
177 %files -n netscape-plugin-%{name}
178 %defattr(644,root,root,755)
179 %attr(755,root,root) %{nsdir}/*.so
This page took 0.060603 seconds and 2 git commands to generate.