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