File mingw64-djvulibre.spec of Package mingw64-djvulibre
#
# spec file for package mingw64-djvulibre
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define __base_version 3.5.27
Name: mingw64-djvulibre
Version: %{__base_version}
Release: 0
Summary: An Open Source Implementation of DjVu
License: GPL-2.0-or-later
Group: Development/Libraries/C and C++
Url: http://djvu.sf.net/
Source0: http://downloads.sf.net/djvu/djvulibre-%{version}.tar.gz
Source1000: %{name}-rpmlintrc
Patch3: djvulibre-3.5.23-size_t.patch
Patch4: 0001-Define-XXX_EXPORT-symbols-under-win32.patch
#!BuildIgnore: post-build-checks
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem >= 23
BuildRequires: mingw64-libjpeg-devel
BuildRequires: mingw64-libtiff-devel
BuildRequires: mingw64-zlib-devel autoconf automake libtool
%_mingw64_package_header_debug
BuildArch: noarch
%description
DjVu is a Web-centric format and software platform for distributing
documents and images. DjVuLibre is an open source (GPL) implementation
of DjVu, including viewers, browser plug-ins, decoders, simple
encoders, and utilities. DjVu can advantageously replace PDF, PS, TIFF,
JPEG, and GIF for distributing scanned documents, digital documents, or
high-resolution pictures. DjVu content downloads faster, displays and
renders faster, looks nicer on a screen, and consumes less client
resources than competing formats. DjVu images display instantly and can
be smoothly zoomed and panned with no lengthy rerendering. DjVu is used
by hundreds of academic, commercial, governmental, and noncommercial
Web sites around the world.
%package -n mingw64-libdjvulibre-devel
Summary: Libraries of Open Source Implementation of DjVu - djvulibre
Group: Development/Libraries/C and C++
%description -n mingw64-libdjvulibre-devel
DjVu is a Web-centric format and software platform for distributing
documents and images. DjVuLibre is an open source (GPL) implementation
of DjVu, including viewers, browser plug-ins, decoders, simple
encoders, and utilities. DjVu can advantageously replace PDF, PS, TIFF,
JPEG, and GIF for distributing scanned documents, digital documents, or
high-resolution pictures. DjVu content downloads faster, displays and
renders faster, looks nicer on a screen, and consumes less client
resources than competing formats. DjVu images display instantly and can
be smoothly zoomed and panned with no lengthy rerendering. DjVu is used
by hundreds of academic, commercial, governmental, and noncommercial
Web sites around the world.
%package -n mingw64-libdjvulibre21
Summary: ALibraries of Open Source Implementation of DjVu - djvulibre
Group: System/Libraries
Obsoletes: mingw64-libdjvulibre
Provides: mingw64-libdjvulibre
%description -n mingw64-libdjvulibre21
DjVu is a Web-centric format and software platform for distributing
documents and images. DjVuLibre is an open source (GPL) implementation
of DjVu, including viewers, browser plug-ins, decoders, simple
encoders, and utilities. DjVu can advantageously replace PDF, PS, TIFF,
JPEG, and GIF for distributing scanned documents, digital documents, or
high-resolution pictures. DjVu content downloads faster, displays and
renders faster, looks nicer on a screen, and consumes less client
resources than competing formats. DjVu images display instantly and can
be smoothly zoomed and panned with no lengthy rerendering. DjVu is used
by hundreds of academic, commercial, governmental, and noncommercial
Web sites around the world.
%_mingw64_debug_package
%prep
%setup -q -n djvulibre-%{__base_version}
%patch -P 3 -p1 -b .size_t
%patch -P 4 -p1
%build
libtoolize --force --copy --install
autoreconf -fi
echo "lt_cv_deplibs_check_method=pass_all" >>%{_mingw64_cache}
PATH="%{_mingw64_bindir}:$PATH" \
%{_mingw64_configure} \
--disable-static --enable-shared \
--without-x --disable-djview --disable-desktopfiles
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files
%defattr(-,root,root)
%{_mingw64_bindir}/any2djvu
%{_mingw64_bindir}/bzz.exe
%{_mingw64_bindir}/c44.exe
%{_mingw64_bindir}/cjb2.exe
%{_mingw64_bindir}/cpaldjvu.exe
%{_mingw64_bindir}/csepdjvu.exe
%{_mingw64_bindir}/ddjvu.exe
%{_mingw64_bindir}/djvmcvt.exe
%{_mingw64_bindir}/djvm.exe
%{_mingw64_bindir}/djvudigital
%{_mingw64_bindir}/djvudump.exe
%{_mingw64_bindir}/djvuextract.exe
%{_mingw64_bindir}/djvumake.exe
%{_mingw64_bindir}/djvups.exe
%{_mingw64_bindir}/djvused.exe
%{_mingw64_bindir}/djvuserve.exe
%{_mingw64_bindir}/djvutoxml.exe
%{_mingw64_bindir}/djvutxt.exe
%{_mingw64_bindir}/djvuxmlparser.exe
%{_mingw64_mandir}/man1/any2djvu.1*
%{_mingw64_mandir}/man1/bzz.1*
%{_mingw64_mandir}/man1/c44.1*
%{_mingw64_mandir}/man1/cjb2.1*
%{_mingw64_mandir}/man1/cpaldjvu.1*
%{_mingw64_mandir}/man1/csepdjvu.1*
%{_mingw64_mandir}/man1/ddjvu.1*
%{_mingw64_mandir}/man1/djvm.1*
%{_mingw64_mandir}/man1/djvmcvt.1*
%{_mingw64_mandir}/man1/djvu.1*
%{_mingw64_mandir}/man1/djvudigital.1*
%{_mingw64_mandir}/man1/djvudump.1*
%{_mingw64_mandir}/man1/djvuextract.1*
%{_mingw64_mandir}/man1/djvumake.1*
%{_mingw64_mandir}/man1/djvups.1*
%{_mingw64_mandir}/man1/djvused.1*
%{_mingw64_mandir}/man1/djvuserve.1*
%{_mingw64_mandir}/man1/djvutoxml.1*
%{_mingw64_mandir}/man1/djvutxt.1*
%{_mingw64_mandir}/man1/djvuxml.1*
%{_mingw64_mandir}/man1/djvuxmlparser.1*
%{_mingw64_datadir}/djvu/osi/languages.xml
%{_mingw64_datadir}/djvu/osi/*/djvutools-reference.xml
%{_mingw64_datadir}/djvu/osi/*/messages.xml
%{_mingw64_datadir}/djvu/osi/*/libdjvu++.xml
%{_mingw64_datadir}/djvu/pubtext/DjVuOCR.dtd
%{_mingw64_datadir}/djvu/pubtext/DjVuXML-s.dtd
%{_mingw64_datadir}/djvu/pubtext/DjVuMessages.dtd
%files -n mingw64-libdjvulibre-devel
%defattr(-,root,root)
%{_mingw64_libdir}/libdjvulibre.dll.a
%{_mingw64_libdir}/pkgconfig/ddjvuapi.pc
%{_mingw64_includedir}/libdjvu/ddjvuapi.h
%{_mingw64_includedir}/libdjvu/miniexp.h
%files -n mingw64-libdjvulibre21
%defattr(-,root,root)
%{_mingw64_bindir}/libdjvulibre-21.dll
%changelog