1 | Summary: DjVu viewers, encoders and utilities. |
---|
2 | Summary(ja): DjVu 画像形式ファイル操作用ライブラリ、ツール |
---|
3 | Name: djvulibre |
---|
4 | Version: 3.5.27 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | Distribution: Project Vine |
---|
7 | Vendor: Vine Linux |
---|
8 | Packager: owa |
---|
9 | |
---|
10 | License: GPLv2 |
---|
11 | URL: http://djvu.sourceforge.net |
---|
12 | Source0: http://prdownloads.sourceforge.net/djvu/djvulibre-%{version}.tar.gz |
---|
13 | |
---|
14 | Patch0: djvulibre-3.5.22-cdefs.patch |
---|
15 | Patch2: djvulibre-3.5.27-buffer-overflow.patch |
---|
16 | Patch3: djvulibre-3.5.27-infinite-loop.patch |
---|
17 | Patch4: djvulibre-3.5.27-stack-overflow.patch |
---|
18 | Patch5: djvulibre-3.5.27-zero-bytes-check.patch |
---|
19 | Patch6: djvulibre-3.5.27-export-file.patch |
---|
20 | Patch7: djvulibre-3.5.27-null-dereference.patch |
---|
21 | |
---|
22 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
23 | BuildRequires: libtiff-devel |
---|
24 | BuildRequires: libjpeg-devel |
---|
25 | BuildRequires: glibc-devel |
---|
26 | BuildRequires: inkscape |
---|
27 | BuildRequires: xdg-utils chrpath |
---|
28 | BuildRequires: hicolor-icon-theme |
---|
29 | |
---|
30 | %description |
---|
31 | DjVu is a web-centric format and software platform for distributing documents |
---|
32 | and images. DjVu content downloads faster, displays and renders faster, looks |
---|
33 | nicer on a screen, and consume less client resources than competing formats. |
---|
34 | DjVu was originally developed at AT&T Labs-Research by Leon Bottou, Yann |
---|
35 | LeCun, Patrick Haffner, and many others. In March 2000, AT&T sold DjVu to |
---|
36 | LizardTech Inc. who now distributes Windows/Mac plug-ins, and commercial |
---|
37 | encoders (mostly on Windows) |
---|
38 | |
---|
39 | In an effort to promote DjVu as a Web standard, the LizardTech management was |
---|
40 | enlightened enough to release the reference implementation of DjVu under the |
---|
41 | GNU GPL in October 2000. DjVuLibre (which means free DjVu), is an enhanced |
---|
42 | version of that code maintained by the original inventors of DjVu. It is |
---|
43 | compatible with version 3.5 of the LizardTech DjVu software suite. |
---|
44 | |
---|
45 | DjVulibre-3.5 contains: |
---|
46 | - a standalone DjVu viewer based on the Qt library. |
---|
47 | - A browser plugin that works with most Unix browsers. |
---|
48 | - A full-fledged wavelet-based compressor for pictures. |
---|
49 | - A simple compressor for bitonal (black and white) scanned pages. |
---|
50 | - A compressor for palettized images (a la GIF/PNG). |
---|
51 | - A set of utilities to manipulate and assemble DjVu images and documents. |
---|
52 | - A set of decoders to convert DjVu to a number of other formats. |
---|
53 | - An up-to-date version of the C++ DjVu Reference Library. |
---|
54 | |
---|
55 | |
---|
56 | %package devel |
---|
57 | Summary: The libraries and header files needed for djvulibre development. |
---|
58 | Group: Development/Libraries |
---|
59 | Requires: %{name} = %{version}-%{release} |
---|
60 | |
---|
61 | %description devel |
---|
62 | DjVulibre libraries and header files for development. |
---|
63 | |
---|
64 | |
---|
65 | %prep |
---|
66 | %setup -q -n %{name}-%{version} |
---|
67 | %autopatch -p1 |
---|
68 | |
---|
69 | |
---|
70 | %build |
---|
71 | %configure --enable-threads |
---|
72 | make %{?_smp_mflags} V=1 |
---|
73 | |
---|
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 | # Remove rpath |
---|
83 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvutoxml |
---|
84 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvused |
---|
85 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/cjb2 |
---|
86 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/csepdjvu |
---|
87 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvuserve |
---|
88 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvm |
---|
89 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvuxmlparser |
---|
90 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvutxt |
---|
91 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/ddjvu |
---|
92 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvumake |
---|
93 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/cpaldjvu |
---|
94 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvuextract |
---|
95 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/c44 |
---|
96 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvups |
---|
97 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvudump |
---|
98 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvmcvt |
---|
99 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/bzz |
---|
100 | |
---|
101 | # This XML file does not differentiate between DjVu Image and DjVu Document |
---|
102 | # MIME types, the default one in shared-mime-info does. |
---|
103 | rm -f $RPM_BUILD_ROOT%{_datadir}/mime/packages/djvulibre-mime.xml |
---|
104 | |
---|
105 | # MIME types (icons and desktop file) - this installs icon files under |
---|
106 | # /usr/share/icons/hicolor/ and an xml file under /usr/share/mime/image/ |
---|
107 | # Taken from {_datadir}/djvu/osi/desktop/register-djvu-mime install |
---|
108 | # See also the README file in the desktopfiles directory of the source distribution |
---|
109 | pushd desktopfiles |
---|
110 | for i in 22 32 48 64 ; do |
---|
111 | install -d $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${i}x${i}/mimetypes/ |
---|
112 | cp -a ./prebuilt-hi${i}-djvu.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${i}x${i}/mimetypes/image-vnd.djvu.mime.png |
---|
113 | # cp -a ./hi${i}-djvu.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${i}x${i}/mimetypes/gnome-mime-image-vnd.djvu.png |
---|
114 | done |
---|
115 | popd |
---|
116 | |
---|
117 | |
---|
118 | %preun -p /sbin/ldconfig |
---|
119 | %postun -p /sbin/ldconfig |
---|
120 | |
---|
121 | |
---|
122 | %clean |
---|
123 | rm -rf %{buildroot} |
---|
124 | |
---|
125 | |
---|
126 | %files |
---|
127 | %defattr(-, root, root) |
---|
128 | %license COPYRIGHT COPYING |
---|
129 | %doc README NEWS doc |
---|
130 | %{_bindir} |
---|
131 | %{_libdir}/lib*.so.* |
---|
132 | %exclude %{_libdir}/libdjvulibre.la |
---|
133 | %exclude %{_datadir}/djvu/osi/de/* |
---|
134 | %exclude %{_datadir}/djvu/osi/fr/* |
---|
135 | %exclude %{_datadir}/djvu/osi/zh/* |
---|
136 | %dir %{_datadir}/djvu |
---|
137 | %{_datadir}/djvu/pubtext |
---|
138 | %dir %{_datadir}/djvu/osi |
---|
139 | %{_datadir}/djvu/osi/languages.xml |
---|
140 | %{_datadir}/djvu/osi/en |
---|
141 | %{_datadir}/djvu/osi/cs |
---|
142 | %lang(ja) %{_datadir}/djvu/osi/ja* |
---|
143 | %{_datadir}/icons/hicolor/*/mimetypes/* |
---|
144 | %{_mandir}/man? |
---|
145 | |
---|
146 | %files devel |
---|
147 | %defattr(-, root, root) |
---|
148 | %{_includedir}/libdjvu |
---|
149 | %{_libdir}/lib*.so |
---|
150 | %{_libdir}/pkgconfig/ddjvuapi.pc |
---|
151 | |
---|
152 | |
---|
153 | %changelog |
---|
154 | * Tue Aug 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.5.27-1 |
---|
155 | - new upstream release. |
---|
156 | |
---|
157 | * Fri Jul 1 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.5.25.3-3 |
---|
158 | - rebuilt with new toolchain. |
---|
159 | |
---|
160 | * Thu Feb 26 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.5.25.3-2 |
---|
161 | - rebuilt on current VineSeed |
---|
162 | - moved %{_libdir}/lib*.so to devel subpackage |
---|
163 | |
---|
164 | * Sun Jul 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.5.25.3-1 |
---|
165 | - update to 3.5.25.3 |
---|
166 | - remove BuildRequires: qt-devel |
---|
167 | - add BuildRequires: inkscape |
---|
168 | |
---|
169 | * Sun May 01 2011 Shu KONNO <owa@bg.wakwak.com> 3.5.24-1 |
---|
170 | - updated djvulibre to 3.5.24 |
---|
171 | - obsoletes djvulibre-plugin (new is djview-plugin) |
---|
172 | |
---|
173 | * Sat Apr 30 2011 Shu KONNO <owa@bg.wakwak.com> 3.5.22-4 |
---|
174 | - installed djview3.png |
---|
175 | |
---|
176 | * Sun Sep 26 2010 Shu KONNO <owa@bg.wakwak.com> 3.5.22-3 |
---|
177 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
178 | |
---|
179 | * Wed Jul 01 2009 Shu KONNO <owa@bg.wakwak.com> 3.5.22-2 |
---|
180 | - rebuilt with new toolchain |
---|
181 | |
---|
182 | * Wed Jul 01 2009 Shu KONNO <owa@bg.wakwak.com> 3.5.22-1 |
---|
183 | - updated djvulibre to 3.5.22 |
---|
184 | |
---|
185 | * Tue Dec 30 2008 Shu KONNO <owa@bg.wakwak.com> 3.5.21-1 |
---|
186 | - initial build for VineSeed |
---|
187 | - spec in utf-8, and applied vine versioning policy |
---|
188 | - updated djvulibre to 3.5.21 |
---|
189 | - added CXXFLAG="-march=i686" if i386 |
---|
190 | - added djview desktop file |
---|
191 | |
---|
192 | * Tue Apr 03 2007 Shu KONNO <owa@bg.wakwak.com> 3.5.19-uvl1 |
---|
193 | - updated djvulibre to 3.5.19 |
---|
194 | - added scripts to alternative djview at %%post, %%preun |
---|
195 | |
---|
196 | * Thu Dec 01 2005 Shu KONNO <owa@bg.wakwak.com> 3.5.16-uvl1 |
---|
197 | - updated djvulibre to 3.5.16 |
---|
198 | - changed suffix |
---|
199 | - divided into djvulibre, djvulibre-devel, djvulibre-plugin |
---|
200 | |
---|
201 | * Tue Nov 09 2004 Shu KONNO <owa@bg.wakwak.com> 3.5.14-uvl2 |
---|
202 | - updated djvulibre to 3.5.14 (realese 2) |
---|
203 | |
---|
204 | * Thu Jun 17 2004 Leon Bottou <leon@bottou.org> 3.5.13-4 |
---|
205 | - changed runtime generation of file list. |
---|
206 | * Mon May 31 2004 Leon Bottou <leon@bottou.org> 3.5.13-3 |
---|
207 | - removed 'make install-desktop-files' |
---|
208 | * Wed May 5 2004 Leon Bottou <leon@bottou.org> 3.5.13-2 |
---|
209 | * Fri Apr 9 2004 Leon Bottou <leon@bottou.org> 3.5.13-1 |
---|
210 | - added runtime generation of file list. |
---|
211 | - using DESTDIR instead of %makeinstall. |
---|
212 | - added 'make install-desktop-files' |
---|
213 | * Wed Nov 5 2003 Leon Bottou <leon@bottou.org> 3.5.12-3 |
---|
214 | - added support for i18n |
---|
215 | - renamed symlink in mozilla plugin dirs. |
---|
216 | * Mon Jul 7 2003 Leon Bottou <leon@bottou.org> 3.5.12-1 |
---|
217 | * Thu Apr 24 2003 Leon Bottou <leon@bottou.org> 3.5.11-1 |
---|
218 | * Thu Feb 6 2003 Leon Bottou <leon@bottou.org> 3.5.10-2 |
---|
219 | * Fri Jan 24 2003 Leon Bottou <leon@bottou.org> 3.5.10-1 |
---|
220 | * Wed Oct 9 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.9-2 |
---|
221 | - fixed logic for uninstalling nsdejavu links. |
---|
222 | - learned a few tricks from the freshrpms spec file. |
---|
223 | * Sun Oct 6 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.9-1 |
---|
224 | - added logic to install nsdejavu for mozilla. |
---|
225 | * Wed May 29 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.6-1 |
---|
226 | * Mon Apr 1 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.5-2 |
---|
227 | - changed group to Applications/Publishing. |
---|
228 | * Mon Mar 25 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.5-2 |
---|
229 | * Tue Jan 22 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.4-2 |
---|
230 | - added macros to locate man directory. |
---|
231 | * Wed Jan 16 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.3-1 |
---|
232 | * Fri Dec 7 2001 Leon Bottou <leonb@users.sourceforge.net> 3.5.2-1 |
---|
233 | * Wed Dec 5 2001 Leon Bottou <leonb@users.sourceforge.net> 3.5.1-1 |
---|
234 | - created initial file. |
---|
235 | |
---|