1 | Summary: DjVu viewers, encoders and utilities. |
---|
2 | Summary(ja): DjVu 画像形式ファイル操作用ライブラリ、ツール |
---|
3 | Name: djvulibre |
---|
4 | Version: 3.5.22 |
---|
5 | Release: 3%{?_dist_release} |
---|
6 | License: GPL |
---|
7 | Group: System Environment/Libraries |
---|
8 | Source0: http://prdownloads.sourceforge.net/djvu/djvulibre-%{version}.tar.gz |
---|
9 | #Source1: djview.png |
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
11 | URL: http://djvu.sourceforge.net |
---|
12 | BuildRequires: qt-devel, qt-designer |
---|
13 | BuildRequires: libtiff-devel |
---|
14 | BuildRequires: libjpeg-devel |
---|
15 | BuildRequires: glibc-devel |
---|
16 | Requires: qt, libtiff, libjpeg, glibc-devel |
---|
17 | Distribution: Project Vine |
---|
18 | Vendor: Vine Linux |
---|
19 | |
---|
20 | %description |
---|
21 | DjVu is a web-centric format and software platform for distributing documents |
---|
22 | and images. DjVu content downloads faster, displays and renders faster, looks |
---|
23 | nicer on a screen, and consume less client resources than competing formats. |
---|
24 | DjVu was originally developed at AT&T Labs-Research by Leon Bottou, Yann |
---|
25 | LeCun, Patrick Haffner, and many others. In March 2000, AT&T sold DjVu to |
---|
26 | LizardTech Inc. who now distributes Windows/Mac plug-ins, and commercial |
---|
27 | encoders (mostly on Windows) |
---|
28 | |
---|
29 | In an effort to promote DjVu as a Web standard, the LizardTech management was |
---|
30 | enlightened enough to release the reference implementation of DjVu under the |
---|
31 | GNU GPL in October 2000. DjVuLibre (which means free DjVu), is an enhanced |
---|
32 | version of that code maintained by the original inventors of DjVu. It is |
---|
33 | compatible with version 3.5 of the LizardTech DjVu software suite. |
---|
34 | |
---|
35 | DjVulibre-3.5 contains: |
---|
36 | - a standalone DjVu viewer based on the Qt library. |
---|
37 | - A browser plugin that works with most Unix browsers. |
---|
38 | - A full-fledged wavelet-based compressor for pictures. |
---|
39 | - A simple compressor for bitonal (black and white) scanned pages. |
---|
40 | - A compressor for palettized images (a la GIF/PNG). |
---|
41 | - A set of utilities to manipulate and assemble DjVu images and documents. |
---|
42 | - A set of decoders to convert DjVu to a number of other formats. |
---|
43 | - An up-to-date version of the C++ DjVu Reference Library. |
---|
44 | |
---|
45 | %package devel |
---|
46 | Summary: The libraries and header files needed for djvulibre development. |
---|
47 | Group: Development/Libraries |
---|
48 | Requires: djvulibre = %{version} |
---|
49 | %description devel |
---|
50 | DjVulibre libraries and header files for development. |
---|
51 | |
---|
52 | %package plugin |
---|
53 | Summary: The plug-in files needed for mozilla. |
---|
54 | Group: Applications/Internet |
---|
55 | Requires: djvulibre = %{version} |
---|
56 | %description plugin |
---|
57 | DjVulibre plug-in files for mozilla. |
---|
58 | |
---|
59 | %prep |
---|
60 | %setup -q |
---|
61 | cp gui/nsdejavu/Makefile.in gui/nsdejavu/Makefile.in.orig |
---|
62 | sed "s|netscape|mozilla|" gui/nsdejavu/Makefile.in.orig \ |
---|
63 | > gui/nsdejavu/Makefile.in |
---|
64 | |
---|
65 | %build |
---|
66 | %ifarch i386 |
---|
67 | export CXXFLAGS="-march=i686" |
---|
68 | %endif |
---|
69 | %configure |
---|
70 | |
---|
71 | # don't set smp option (-j n) with make |
---|
72 | make depend |
---|
73 | make |
---|
74 | |
---|
75 | %install |
---|
76 | rm -rf %{buildroot} |
---|
77 | make DESTDIR=%{buildroot} install |
---|
78 | |
---|
79 | # fix to stop ldconfig from complaining |
---|
80 | find %{buildroot}%{_libdir} -name "*.so*" -exec chmod 755 {} \; |
---|
81 | |
---|
82 | # cleanup of the docs |
---|
83 | rm -rf doc/CVS 2>/dev/null || : |
---|
84 | |
---|
85 | cat > djview.desktop <<EOF |
---|
86 | [Desktop Entry] |
---|
87 | Encoding=UTF-8 |
---|
88 | Name=djview |
---|
89 | Name[ja]=Djvuビュアー |
---|
90 | Comment=Standalone Djvu Viewer |
---|
91 | Comment[ja]=スタンドアロンでDjvu画像を表示するツールです |
---|
92 | Icon=djview |
---|
93 | Terminal=false |
---|
94 | Exec=djview |
---|
95 | Type=Application |
---|
96 | Categories=Application;Graphics; |
---|
97 | EOF |
---|
98 | |
---|
99 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications |
---|
100 | install -m644 djview.desktop $RPM_BUILD_ROOT%{_datadir}/applications/ |
---|
101 | #mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps |
---|
102 | #cp %SOURCE1 $RPM_BUILD_ROOT%{_datadir}/pixmaps/ |
---|
103 | |
---|
104 | |
---|
105 | %clean |
---|
106 | rm -rf %{buildroot} |
---|
107 | |
---|
108 | %post |
---|
109 | /sbin/ldconfig |
---|
110 | if test -x /sbin/update-alternatives ; then |
---|
111 | m1=`ls -1 %{_mandir}/man1/djview3.* | head -1` |
---|
112 | m2=`echo $m1 | sed -e 's/djview3/djview/'` |
---|
113 | /sbin/update-alternatives \ |
---|
114 | --install %{_bindir}/djview djview %{_bindir}/djview3 103 \ |
---|
115 | --slave $m2 `basename $m2` $m1 |
---|
116 | fi |
---|
117 | |
---|
118 | %preun |
---|
119 | if test "$1" = 0 ; then |
---|
120 | if test -x /sbin/update-alternatives ; then |
---|
121 | /sbin/update-alternatives --remove djview %{_bindir}/djview3 |
---|
122 | fi |
---|
123 | fi |
---|
124 | |
---|
125 | %postun |
---|
126 | /sbin/ldconfig |
---|
127 | |
---|
128 | %files |
---|
129 | %defattr(-, root, root) |
---|
130 | %doc README COPYRIGHT COPYING INSTALL NEWS TODO doc |
---|
131 | %{_bindir} |
---|
132 | %{_libdir} |
---|
133 | %exclude %{_libdir}/mozilla |
---|
134 | %exclude %{_libdir}/pkgconfig |
---|
135 | %exclude %{_libdir}/libdjvulibre.la |
---|
136 | |
---|
137 | %{_datadir}/applications/djview.desktop |
---|
138 | #%{_datadir}/pixmaps/djview.png |
---|
139 | %{_datadir}/djvu/djview3 |
---|
140 | %{_datadir}/djvu/pubtext |
---|
141 | %{_datadir}/djvu/osi/languages.xml |
---|
142 | %{_datadir}/djvu/osi/en |
---|
143 | %{_datadir}/djvu/osi/cs/messages.xml |
---|
144 | %lang(ja) %{_datadir}/djvu/osi/ja* |
---|
145 | %lang(fr) %{_datadir}/djvu/osi/fr* |
---|
146 | %lang(de) %{_datadir}/djvu/osi/de* |
---|
147 | %lang(zh) %{_datadir}/djvu/osi/zh* |
---|
148 | %{_mandir}/man? |
---|
149 | %lang(ja) %{_mandir}/ja* |
---|
150 | %lang(fr) %{_mandir}/fr* |
---|
151 | %lang(de) %{_mandir}/de* |
---|
152 | |
---|
153 | %files devel |
---|
154 | %defattr(-, root, root) |
---|
155 | %{_includedir}/libdjvu |
---|
156 | %{_libdir}/pkgconfig/ddjvuapi.pc |
---|
157 | |
---|
158 | %files plugin |
---|
159 | %defattr(-, root, root) |
---|
160 | %{_libdir}/mozilla/plugins/nsdejavu.so |
---|
161 | |
---|
162 | %changelog |
---|
163 | * Sun Sep 26 2010 Shu KONNO <owa@bg.wakwak.com> 3.5.22-3 |
---|
164 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
165 | |
---|
166 | * Wed Jul 01 2009 Shu KONNO <owa@bg.wakwak.com> 3.5.22-2 |
---|
167 | - rebuilt with new toolchain |
---|
168 | |
---|
169 | * Wed Jul 01 2009 Shu KONNO <owa@bg.wakwak.com> 3.5.22-1 |
---|
170 | - updated djvulibre to 3.5.22 |
---|
171 | |
---|
172 | * Tue Dec 30 2008 Shu KONNO <owa@bg.wakwak.com> 3.5.21-1 |
---|
173 | - initial build for VineSeed |
---|
174 | - spec in utf-8, and applied vine versioning policy |
---|
175 | - updated djvulibre to 3.5.21 |
---|
176 | - added CXXFLAG="-march=i686" if i386 |
---|
177 | - added djview desktop file |
---|
178 | |
---|
179 | * Tue Apr 03 2007 Shu KONNO <owa@bg.wakwak.com> 3.5.19-uvl1 |
---|
180 | - updated djvulibre to 3.5.19 |
---|
181 | - added scripts to alternative djview at %%post, %%preun |
---|
182 | |
---|
183 | * Thu Dec 01 2005 Shu KONNO <owa@bg.wakwak.com> 3.5.16-uvl1 |
---|
184 | - updated djvulibre to 3.5.16 |
---|
185 | - changed suffix |
---|
186 | - divided into djvulibre, djvulibre-devel, djvulibre-plugin |
---|
187 | |
---|
188 | * Tue Nov 09 2004 Shu KONNO <owa@bg.wakwak.com> 3.5.14-uvl2 |
---|
189 | - updated djvulibre to 3.5.14 (realese 2) |
---|
190 | |
---|
191 | * Thu Jun 17 2004 Leon Bottou <leon@bottou.org> 3.5.13-4 |
---|
192 | - changed runtime generation of file list. |
---|
193 | * Mon May 31 2004 Leon Bottou <leon@bottou.org> 3.5.13-3 |
---|
194 | - removed 'make install-desktop-files' |
---|
195 | * Wed May 5 2004 Leon Bottou <leon@bottou.org> 3.5.13-2 |
---|
196 | * Fri Apr 9 2004 Leon Bottou <leon@bottou.org> 3.5.13-1 |
---|
197 | - added runtime generation of file list. |
---|
198 | - using DESTDIR instead of %makeinstall. |
---|
199 | - added 'make install-desktop-files' |
---|
200 | * Wed Nov 5 2003 Leon Bottou <leon@bottou.org> 3.5.12-3 |
---|
201 | - added support for i18n |
---|
202 | - renamed symlink in mozilla plugin dirs. |
---|
203 | * Mon Jul 7 2003 Leon Bottou <leon@bottou.org> 3.5.12-1 |
---|
204 | * Thu Apr 24 2003 Leon Bottou <leon@bottou.org> 3.5.11-1 |
---|
205 | * Thu Feb 6 2003 Leon Bottou <leon@bottou.org> 3.5.10-2 |
---|
206 | * Fri Jan 24 2003 Leon Bottou <leon@bottou.org> 3.5.10-1 |
---|
207 | * Wed Oct 9 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.9-2 |
---|
208 | - fixed logic for uninstalling nsdejavu links. |
---|
209 | - learned a few tricks from the freshrpms spec file. |
---|
210 | * Sun Oct 6 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.9-1 |
---|
211 | - added logic to install nsdejavu for mozilla. |
---|
212 | * Wed May 29 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.6-1 |
---|
213 | * Mon Apr 1 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.5-2 |
---|
214 | - changed group to Applications/Publishing. |
---|
215 | * Tue Mar 25 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.5-2 |
---|
216 | * Tue Jan 22 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.4-2 |
---|
217 | - added macros to locate man directory. |
---|
218 | * Wed Jan 16 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.3-1 |
---|
219 | * Fri Dec 7 2001 Leon Bottou <leonb@users.sourceforge.net> 3.5.2-1 |
---|
220 | * Wed Dec 5 2001 Leon Bottou <leonb@users.sourceforge.net> 3.5.1-1 |
---|
221 | - created initial file. |
---|
222 | |
---|