]> git.pld-linux.org Git - packages/djvulibre.git/blob - djvulibre.spec
- up to 3.5.11, updated opt patch
[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 Patch0:         %{name}-opt.patch
10 Patch1:         %{name}-nostrip.patch
11 URL:            http://djvu.sourceforge.net/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  libjpeg-devel
15 BuildRequires:  libstdc++-devel
16 BuildRequires:  qt-devel >= 3.0.5
17 Obsoletes:      djvu
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         mozdir          /usr/lib/mozilla/plugins
21 %define         nsdir           /usr/lib/netscape/plugins
22
23 %description
24 DjVu is a web-centric format and software platform for distributing
25 documents and images. DjVu content downloads faster, displays and
26 renders faster, looks nicer on a screen, and consume less client
27 resources than competing formats. DjVu was originally developed at
28 AT&T Labs-Research by Leon Bottou, Yann LeCun, Patrick Haffner, and
29 many others. In March 2000, AT&T sold DjVu to LizardTech Inc. who now
30 distributes Windows/Mac plug-ins, and commercial encoders (mostly on
31 Windows).
32
33 In an effort to promote DjVu as a Web standard, the LizardTech
34 management was enlightened enough to release the reference
35 implementation of DjVu under the GNU GPL in October 2000. DjVuLibre
36 (which means free DjVu), is an enhanced version of that code
37 maintained by the original inventors of DjVu. It is compatible with
38 version 3.5 of the LizardTech DjVu software suite.
39
40 This package of DjVulibre 3.5 contains:
41 - A full-fledged wavelet-based compressor for pictures.
42 - A simple compressor for bitonal (black and white) scanned pages.
43 - A compressor for palettized images (a la GIF/PNG).
44 - A set of utilities to manipulate and assemble DjVu images and
45   documents.
46 - A set of decoders to convert DjVu to a number of other formats.
47 - An up-to-date version of the C++ DjVu Reference Library.
48
49 Following elements are placed in other subpackages:
50 - a standalone DjVu viewer based on the Qt library.
51 - A browser plugin that works with most Unix browsers.
52
53 %description -l pl
54 DjVu jest przeznaczonym g³ównie dla WWW formatem i platform±
55 programow± do dystrybucji dokumentów i obrazków. Dane w DjVu ¶ci±gaj±
56 siê szybciej, wy¶wietlaj± szybciej, wygl±daj± ³adniej na ekranie i
57 zajmuj± mniej zasobów po stronie klienckiej ni¿ inne formaty. DjVu
58 oryginalnie zosta³ stworzony w AT&T Labs-Research przez Leona Bottou,
59 Yanna LeCun, Patricka Haffnera i wielu innych. W marcu 2000 AT&T
60 sprzeda³o DjVu firmie LizardTech Inc., które teraz rozpowszechnia
61 wtyczki dla Windows i Maca oraz komercyjne kodery (g³ównie dla
62 Windows).
63
64 Aby wypromowaæ DjVu jako sieciowy standard, LizardTech udostêpni³
65 wzorcow± implementacjê DjVu na licencji GPL w pa¼dzierniku 2000.
66 DjVuLibre (czyli wolne DjVu) jest rozszerzon± wersj± tego kodu
67 rozwijan± przez pomys³odawców DjVu. Jest kompatybilna z wersj±
68 3.5 oprogramowania LizardTech DjVu.
69
70 Ten pakiet zawiera: bibliotekê w C++, zestaw kompresorów, dekoderów
71 i narzêdzi do plików w formacie DjVu. Przegl±darka oraz wtyczki do
72 przegl±darek znajduj± siê w innych podpakietach.
73
74 %package djview
75 Summary:        Qt-based DjVu viewer
76 Summary(pl):    Oparta o Qt przegl±darka DjVu
77 Group:          X11/Applications
78 Requires:       %{name} = %{version}
79 Obsoletes:      djview
80
81 %description djview
82 Qt-based DjVu viewer.
83
84 %description djview -l pl
85 Oparta o Qt przegl±darka DjVu.
86
87 %package -n mozilla-plugin-%{name}
88 Summary:        DjVu plugin for Mozilla
89 Summary(pl):    Wtyczka DjVu do Mozilli
90 Group:          X11/Libraries
91 Requires:       %{name}-djview = %{version}
92 Requires:       mozilla-embedded
93
94 %description -n mozilla-plugin-%{name}
95 DjVu plugin for Mozilla and Mozilla-based browsers.
96
97 %description -n mozilla-plugin-%{name} -l pl
98 Wtyczka DjVu do Mozilli i przegl±darek na niej bazuj±cych.
99
100 %package -n netscape-plugin-%{name}
101 Summary:        DjVu plugin for Netscape
102 Summary(pl):    Wtyczka DjVu do Netscape
103 Group:          X11/Libraries
104 Requires:       %{name}-djview = %{version}
105 Requires:       netscape-common
106 Obsoletes:      djview-netscape
107
108 %description -n netscape-plugin-%{name}
109 DjVu plugin for Netscape.
110
111 %description -n netscape-plugin-%{name} -l pl
112 Wtyczka DjVu do Netscape.
113
114 %prep -q
115 %setup -q
116 %patch0 -p1
117 %patch1 -p1
118
119 %build
120 %{__aclocal}
121 %{__autoconf}
122 # there are aliasing violations - at least at libdjvu/BSByteStream.cpp:363-364
123 # (GPBuffer::GPBuffer casts unsigned int*& to void*&),
124 # so -fno-strict-aliasing must be passed
125 CXXFLAGS="%{rpmcflags} -fno-strict-aliasing"
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.090903 seconds and 3 git commands to generate.