[521] | 1 | Summary: DjVu viewers, encoders and utilities. |
---|
| 2 | Summary(ja): DjVu 画像形式ファイル操作用ライブラリ、ツール |
---|
| 3 | Name: djvulibre |
---|
[12561] | 4 | Version: 3.5.28 |
---|
[12443] | 5 | Release: 1%{?_dist_release} |
---|
[12561] | 6 | Group: graphics |
---|
[12443] | 7 | Distribution: Project Vine |
---|
| 8 | Vendor: Vine Linux |
---|
| 9 | Packager: owa |
---|
| 10 | |
---|
[9387] | 11 | License: GPLv2 |
---|
| 12 | URL: http://djvu.sourceforge.net |
---|
[12443] | 13 | Source0: http://prdownloads.sourceforge.net/djvu/djvulibre-%{version}.tar.gz |
---|
[9387] | 14 | |
---|
[12443] | 15 | Patch0: djvulibre-3.5.22-cdefs.patch |
---|
| 16 | Patch6: djvulibre-3.5.27-export-file.patch |
---|
| 17 | |
---|
[521] | 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 19 | BuildRequires: libtiff-devel |
---|
| 20 | BuildRequires: libjpeg-devel |
---|
| 21 | BuildRequires: glibc-devel |
---|
[7728] | 22 | BuildRequires: inkscape |
---|
[12443] | 23 | BuildRequires: xdg-utils chrpath |
---|
| 24 | BuildRequires: hicolor-icon-theme |
---|
[9387] | 25 | |
---|
[12561] | 26 | Requires(post): xdg-utils |
---|
| 27 | Requires(preun): xdg-utils |
---|
| 28 | |
---|
[521] | 29 | %description |
---|
| 30 | DjVu is a web-centric format and software platform for distributing documents |
---|
| 31 | and images. DjVu content downloads faster, displays and renders faster, looks |
---|
| 32 | nicer on a screen, and consume less client resources than competing formats. |
---|
| 33 | DjVu was originally developed at AT&T Labs-Research by Leon Bottou, Yann |
---|
| 34 | LeCun, Patrick Haffner, and many others. In March 2000, AT&T sold DjVu to |
---|
| 35 | LizardTech Inc. who now distributes Windows/Mac plug-ins, and commercial |
---|
| 36 | encoders (mostly on Windows) |
---|
| 37 | |
---|
| 38 | In an effort to promote DjVu as a Web standard, the LizardTech management was |
---|
| 39 | enlightened enough to release the reference implementation of DjVu under the |
---|
| 40 | GNU GPL in October 2000. DjVuLibre (which means free DjVu), is an enhanced |
---|
| 41 | version of that code maintained by the original inventors of DjVu. It is |
---|
| 42 | compatible with version 3.5 of the LizardTech DjVu software suite. |
---|
| 43 | |
---|
| 44 | DjVulibre-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 | |
---|
[12443] | 54 | |
---|
[12561] | 55 | %package libs |
---|
| 56 | Summary: Library files for DjVuLibre |
---|
| 57 | Group: programming |
---|
| 58 | |
---|
| 59 | %description libs |
---|
| 60 | Library files for DjVuLibre. |
---|
| 61 | |
---|
| 62 | |
---|
[521] | 63 | %package devel |
---|
| 64 | Summary: The libraries and header files needed for djvulibre development. |
---|
[12561] | 65 | Group: programming |
---|
| 66 | Requires: %{name}-libs = %{version}-%{release} |
---|
[9387] | 67 | |
---|
[521] | 68 | %description devel |
---|
| 69 | DjVulibre libraries and header files for development. |
---|
| 70 | |
---|
| 71 | |
---|
[12561] | 72 | %debug_package |
---|
| 73 | |
---|
| 74 | |
---|
[521] | 75 | %prep |
---|
[12443] | 76 | %setup -q -n %{name}-%{version} |
---|
| 77 | %autopatch -p1 |
---|
[521] | 78 | |
---|
[3762] | 79 | |
---|
[521] | 80 | %build |
---|
[12443] | 81 | %configure --enable-threads |
---|
| 82 | make %{?_smp_mflags} V=1 |
---|
[521] | 83 | |
---|
| 84 | |
---|
| 85 | %install |
---|
| 86 | rm -rf %{buildroot} |
---|
| 87 | make DESTDIR=%{buildroot} install |
---|
| 88 | |
---|
| 89 | # fix to stop ldconfig from complaining |
---|
| 90 | find %{buildroot}%{_libdir} -name "*.so*" -exec chmod 755 {} \; |
---|
| 91 | |
---|
[12443] | 92 | # Remove rpath |
---|
| 93 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvutoxml |
---|
| 94 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvused |
---|
| 95 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/cjb2 |
---|
| 96 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/csepdjvu |
---|
| 97 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvuserve |
---|
| 98 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvm |
---|
| 99 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvuxmlparser |
---|
| 100 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvutxt |
---|
| 101 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/ddjvu |
---|
| 102 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvumake |
---|
| 103 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/cpaldjvu |
---|
| 104 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvuextract |
---|
| 105 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/c44 |
---|
| 106 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvups |
---|
| 107 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvudump |
---|
| 108 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/djvmcvt |
---|
| 109 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/bzz |
---|
[521] | 110 | |
---|
[12443] | 111 | # This XML file does not differentiate between DjVu Image and DjVu Document |
---|
| 112 | # MIME types, the default one in shared-mime-info does. |
---|
| 113 | rm -f $RPM_BUILD_ROOT%{_datadir}/mime/packages/djvulibre-mime.xml |
---|
[521] | 114 | |
---|
[12443] | 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 |
---|
| 119 | pushd desktopfiles |
---|
| 120 | for 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 |
---|
| 124 | done |
---|
| 125 | popd |
---|
| 126 | |
---|
| 127 | |
---|
[12561] | 128 | %ldconfig_scriptlets libs |
---|
[9387] | 129 | |
---|
[12443] | 130 | |
---|
[521] | 131 | %clean |
---|
| 132 | rm -rf %{buildroot} |
---|
| 133 | |
---|
| 134 | |
---|
| 135 | %files |
---|
| 136 | %defattr(-, root, root) |
---|
[12443] | 137 | %license COPYRIGHT COPYING |
---|
[12561] | 138 | %doc README NEWS |
---|
| 139 | %{_bindir}/* |
---|
[3762] | 140 | %exclude %{_datadir}/djvu/osi/de/* |
---|
| 141 | %exclude %{_datadir}/djvu/osi/fr/* |
---|
| 142 | %exclude %{_datadir}/djvu/osi/zh/* |
---|
[12443] | 143 | %dir %{_datadir}/djvu |
---|
[521] | 144 | %{_datadir}/djvu/pubtext |
---|
[12443] | 145 | %dir %{_datadir}/djvu/osi |
---|
[521] | 146 | %{_datadir}/djvu/osi/languages.xml |
---|
| 147 | %{_datadir}/djvu/osi/en |
---|
[12443] | 148 | %{_datadir}/djvu/osi/cs |
---|
[521] | 149 | %lang(ja) %{_datadir}/djvu/osi/ja* |
---|
[12443] | 150 | %{_datadir}/icons/hicolor/*/mimetypes/* |
---|
[521] | 151 | %{_mandir}/man? |
---|
| 152 | |
---|
[12561] | 153 | %files libs |
---|
| 154 | %license COPYRIGHT COPYING |
---|
| 155 | %doc README NEWS |
---|
| 156 | %{_libdir}/*.so.* |
---|
| 157 | |
---|
[521] | 158 | %files devel |
---|
| 159 | %defattr(-, root, root) |
---|
[12561] | 160 | %doc doc |
---|
[521] | 161 | %{_includedir}/libdjvu |
---|
[9387] | 162 | %{_libdir}/lib*.so |
---|
[12561] | 163 | %exclude %{_libdir}/*.la |
---|
[521] | 164 | %{_libdir}/pkgconfig/ddjvuapi.pc |
---|
| 165 | |
---|
| 166 | |
---|
| 167 | %changelog |
---|
[12561] | 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 | |
---|
[12443] | 173 | * Tue Aug 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.5.27-1 |
---|
| 174 | - new upstream release. |
---|
| 175 | |
---|
[10480] | 176 | * Fri Jul 1 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.5.25.3-3 |
---|
| 177 | - rebuilt with new toolchain. |
---|
| 178 | |
---|
[9387] | 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 | |
---|
[7728] | 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 | |
---|
[3762] | 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 | |
---|
[1919] | 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 | |
---|
[650] | 198 | * Wed Jul 01 2009 Shu KONNO <owa@bg.wakwak.com> 3.5.22-2 |
---|
| 199 | - rebuilt with new toolchain |
---|
| 200 | |
---|
[521] | 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. |
---|
[7728] | 247 | * Mon Mar 25 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.5-2 |
---|
[521] | 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 | |
---|