source: projects/specs/trunk/d/djvulibre/djvulibre-vl.spec @ 12443

Revision 12443, 8.4 KB checked in by tomop, 4 years ago (diff)

updated 2 packages

djvulibre-3.5.27-1

gperf-3.1-1

Line 
1Summary: DjVu viewers, encoders and utilities.
2Summary(ja): DjVu 画像形式ファイル操作用ライブラリ、ツール
3Name: djvulibre
4Version: 3.5.27
5Release: 1%{?_dist_release}
6Distribution: Project Vine
7Vendor: Vine Linux
8Packager: owa
9
10License: GPLv2
11URL: http://djvu.sourceforge.net
12Source0: http://prdownloads.sourceforge.net/djvu/djvulibre-%{version}.tar.gz
13
14Patch0: djvulibre-3.5.22-cdefs.patch
15Patch2: djvulibre-3.5.27-buffer-overflow.patch
16Patch3: djvulibre-3.5.27-infinite-loop.patch
17Patch4: djvulibre-3.5.27-stack-overflow.patch
18Patch5: djvulibre-3.5.27-zero-bytes-check.patch
19Patch6: djvulibre-3.5.27-export-file.patch
20Patch7: djvulibre-3.5.27-null-dereference.patch
21
22BuildRoot: %{_tmppath}/%{name}-%{version}-root
23BuildRequires: libtiff-devel
24BuildRequires: libjpeg-devel
25BuildRequires: glibc-devel
26BuildRequires: inkscape
27BuildRequires: xdg-utils chrpath
28BuildRequires: hicolor-icon-theme
29
30%description
31DjVu is a web-centric format and software platform for distributing documents
32and images.  DjVu content downloads faster, displays and renders faster, looks
33nicer on a screen, and consume less client resources than competing formats.
34DjVu was originally developed at AT&T Labs-Research by Leon Bottou, Yann
35LeCun, Patrick Haffner, and many others.  In March 2000, AT&T sold DjVu to
36LizardTech Inc. who now distributes Windows/Mac plug-ins, and commercial
37encoders (mostly on Windows)
38
39In an effort to promote DjVu as a Web standard, the LizardTech management was
40enlightened enough to release the reference implementation of DjVu under the
41GNU GPL in October 2000.  DjVuLibre (which means free DjVu), is an enhanced
42version of that code maintained by the original inventors of DjVu. It is
43compatible with version 3.5 of the LizardTech DjVu software suite.
44
45DjVulibre-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
57Summary: The libraries and header files needed for djvulibre development.
58Group: Development/Libraries
59Requires: %{name} = %{version}-%{release}
60
61%description devel
62DjVulibre 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
72make %{?_smp_mflags} V=1
73
74
75%install
76rm -rf %{buildroot}
77make DESTDIR=%{buildroot} install
78
79# fix to stop ldconfig from complaining
80find %{buildroot}%{_libdir} -name "*.so*" -exec chmod 755 {} \;
81
82# Remove rpath
83chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvutoxml
84chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvused
85chrpath --delete $RPM_BUILD_ROOT%{_bindir}/cjb2
86chrpath --delete $RPM_BUILD_ROOT%{_bindir}/csepdjvu
87chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvuserve
88chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvm
89chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvuxmlparser
90chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvutxt
91chrpath --delete $RPM_BUILD_ROOT%{_bindir}/ddjvu
92chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvumake
93chrpath --delete $RPM_BUILD_ROOT%{_bindir}/cpaldjvu
94chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvuextract
95chrpath --delete $RPM_BUILD_ROOT%{_bindir}/c44
96chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvups
97chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvudump
98chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvmcvt
99chrpath --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.
103rm -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
109pushd desktopfiles
110for 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
114done
115popd
116
117
118%preun -p /sbin/ldconfig
119%postun -p /sbin/ldconfig
120
121
122%clean
123rm -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
Note: See TracBrowser for help on using the repository browser.