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

Revision 12561, 8.5 KB checked in by tomop, 3 years ago (diff)

updated 6 packages

LibRaw?-0.20.2-1

djvulibre-3.5.28-1

libvorbis-1.3.7-1

re2c-2.0.3-1

vorbis-tools-1.4.2-1

xterm-366-1

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