2007-01-16 00:10:16 +01:00
|
|
|
#
|
2011-03-07 15:00:04 +01:00
|
|
|
# spec file for package djvulibre
|
2007-01-16 00:10:16 +01:00
|
|
|
#
|
2019-09-02 14:14:18 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:10:16 +01:00
|
|
|
#
|
2008-08-26 01:52:50 +02:00
|
|
|
# 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.
|
|
|
|
|
2019-09-02 14:14:18 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:10:16 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-09-02 14:14:18 +02:00
|
|
|
%define asan_build 0
|
|
|
|
|
2015-02-28 10:33:10 +01:00
|
|
|
%define libname lib%{name}21
|
2007-01-16 00:10:16 +01:00
|
|
|
Name: djvulibre
|
2015-02-28 10:33:10 +01:00
|
|
|
Version: 3.5.27
|
2012-03-16 14:31:26 +01:00
|
|
|
Release: 0
|
2019-09-03 08:42:11 +02:00
|
|
|
Summary: An Implementation of DjVu
|
2019-09-02 14:14:18 +02:00
|
|
|
License: GPL-2.0-or-later
|
2012-03-16 14:31:26 +01:00
|
|
|
Group: Productivity/Graphics/Other
|
2015-02-28 10:33:10 +01:00
|
|
|
Url: http://djvu.sourceforge.net
|
|
|
|
Source: http://downloads.sourceforge.net/djvu/%{name}-%{version}.tar.gz
|
2017-05-15 16:22:03 +02:00
|
|
|
# PATCH-FIX-UPSTREAM -- https://sourceforge.net/p/djvu/djvulibre-git/ci/ff8e5b68f856a7fe17c9aa33d0f2220f4ba6b40c/
|
|
|
|
Patch0: reproducible.patch
|
2019-09-02 14:14:18 +02:00
|
|
|
# CVE-2019-15143 [bsc#1146569]
|
|
|
|
Patch1: djvulibre-CVE-2019-15143.patch
|
|
|
|
# CVE-2019-15144 [bsc#1146571]
|
|
|
|
Patch2: djvulibre-CVE-2019-15144.patch
|
|
|
|
# CVE-2019-15145 [bsc#1146572]
|
|
|
|
Patch3: djvulibre-CVE-2019-15145.patch
|
|
|
|
# CVE-2019-15142 [bsc#1146702]
|
|
|
|
Patch4: djvulibre-CVE-2019-15142.patch
|
|
|
|
# do not segfault when libtiff encounters corrupted TIFF (upstream issue #295)
|
|
|
|
Patch5: djvulibre-invalid-tiff.patch
|
2019-10-18 10:33:37 +02:00
|
|
|
# https://sourceforge.net/p/djvu/bugs/293/
|
|
|
|
Patch6: djvulibre-always-assume-that-cpuid-works-on-x86_64.patch
|
2019-11-08 12:15:17 +01:00
|
|
|
# CVE-2019-18804 [bsc#1156188]
|
|
|
|
Patch7: djvulibre-CVE-2019-18804.patch
|
2015-02-28 10:33:10 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2019-01-14 10:22:26 +01:00
|
|
|
BuildRequires: hicolor-icon-theme
|
2015-02-28 10:33:10 +01:00
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: pkgconfig(libtiff-4)
|
|
|
|
Requires(post): shared-mime-info
|
|
|
|
Requires(postun): shared-mime-info
|
2007-01-16 00:10:16 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
DjVu is a Web-centric format and software platform for distributing
|
2019-09-03 08:42:11 +02:00
|
|
|
documents and images. DjVuLibre is an implementation of DjVu,
|
|
|
|
including viewers, browser plug-ins, decoders, encoders, and
|
|
|
|
utilities. DjVu can replace PDF, PS, TIFF, JPEG, and GIF for
|
|
|
|
distributing scanned documents, digital documents, or high-resolution
|
|
|
|
pictures. DjVu content is often smaller and consumes less client
|
|
|
|
resources than competing formats.
|
2007-01-16 00:10:16 +01:00
|
|
|
|
2015-02-28 10:33:10 +01:00
|
|
|
%package -n %{libname}
|
2019-09-03 08:42:11 +02:00
|
|
|
Summary: DjVu rendering library
|
2007-04-20 23:28:28 +02:00
|
|
|
Group: Productivity/Graphics/Other
|
|
|
|
|
2015-02-28 10:33:10 +01:00
|
|
|
%description -n %{libname}
|
2019-09-03 08:42:11 +02:00
|
|
|
DjVuLibre is an implementation of DjVu, a Web-centric format and
|
|
|
|
software platform for distributing documents and images.
|
|
|
|
|
|
|
|
This package contains the shared libraries.
|
2007-06-08 00:34:22 +02:00
|
|
|
|
|
|
|
%package -n libdjvulibre-devel
|
2019-09-03 08:42:11 +02:00
|
|
|
Summary: Headers for djvulibre libraries
|
2007-12-10 23:51:48 +01:00
|
|
|
Group: Development/Libraries/Other
|
2015-02-28 10:33:10 +01:00
|
|
|
Requires: %{libname} = %{version}
|
2007-06-08 00:34:22 +02:00
|
|
|
|
|
|
|
%description -n libdjvulibre-devel
|
2019-09-03 08:42:11 +02:00
|
|
|
DjVuLibre is an implementation of DjVu, a Web-centric format and
|
|
|
|
software platform for distributing documents and images.
|
|
|
|
|
|
|
|
This package contains the development files.
|
2007-04-20 23:28:28 +02:00
|
|
|
|
2009-06-16 00:40:57 +02:00
|
|
|
%package doc
|
2019-09-03 08:42:11 +02:00
|
|
|
Summary: Documentation for djvulibre
|
2009-06-16 00:40:57 +02:00
|
|
|
Group: Productivity/Graphics/Other
|
2019-09-03 08:42:11 +02:00
|
|
|
BuildArch: noarch
|
2009-06-16 00:40:57 +02:00
|
|
|
|
|
|
|
%description doc
|
2019-09-03 08:42:11 +02:00
|
|
|
DjVuLibre is an implementation of DjVu, a Web-centric format and
|
|
|
|
software platform for distributing documents and images.
|
|
|
|
|
|
|
|
This package contains the documentation.
|
2009-06-16 00:40:57 +02:00
|
|
|
|
2007-01-16 00:10:16 +01:00
|
|
|
%prep
|
2019-10-18 10:33:37 +02:00
|
|
|
%setup -q
|
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
2019-11-08 12:15:17 +01:00
|
|
|
%patch7 -p1
|
2007-01-16 00:10:16 +01:00
|
|
|
|
|
|
|
%build
|
2019-09-02 14:14:18 +02:00
|
|
|
%configure \
|
|
|
|
--disable-silent-rules
|
|
|
|
%if %{asan_build}
|
|
|
|
sed -i -e 's/\(^CFLAGS.*\)/\1 -fsanitize=address/' \
|
|
|
|
-e 's/\(^CXXFLAGS.*\)/\1 -fsanitize=address/' \
|
|
|
|
-e 's/\(^LIBS =.*\)/\1 -lasan/' \
|
|
|
|
Makefile */Makefile
|
|
|
|
%endif
|
2015-02-28 10:33:10 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:10:16 +01:00
|
|
|
|
|
|
|
%install
|
2019-09-03 08:42:11 +02:00
|
|
|
%make_install
|
2015-02-28 10:33:10 +01:00
|
|
|
|
|
|
|
# do not ship these
|
|
|
|
rm %{buildroot}%{_libdir}/libdjvulibre.la
|
|
|
|
|
2019-09-03 08:42:11 +02:00
|
|
|
%fdupes %{buildroot}/%{_prefix}
|
2015-02-28 10:33:10 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%mime_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%mime_database_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2007-04-03 21:19:08 +02:00
|
|
|
|
2007-01-16 00:10:16 +01:00
|
|
|
%files
|
2019-01-14 10:22:26 +01:00
|
|
|
%license COPYING COPYRIGHT
|
|
|
|
%doc NEWS README
|
2007-01-16 00:10:16 +01:00
|
|
|
%doc %{_mandir}/man1/*
|
|
|
|
%{_datadir}/djvu
|
|
|
|
%{_bindir}/*
|
2015-02-28 10:33:10 +01:00
|
|
|
%{_datadir}/icons/hicolor/*
|
|
|
|
%{_datadir}/mime/packages/djvulibre-mime.xml
|
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
%{_libdir}/libdjvulibre.so.*
|
2007-04-20 23:28:28 +02:00
|
|
|
|
2007-06-08 00:34:22 +02:00
|
|
|
%files -n libdjvulibre-devel
|
|
|
|
%{_libdir}/libdjvulibre.so
|
2015-02-28 10:33:10 +01:00
|
|
|
%dir %{_includedir}/libdjvu
|
|
|
|
%{_includedir}/libdjvu/*.h
|
2007-06-08 00:34:22 +02:00
|
|
|
%{_libdir}/pkgconfig/ddjvuapi.pc
|
|
|
|
|
2009-06-16 00:40:57 +02:00
|
|
|
%files doc
|
|
|
|
%doc doc/*
|
|
|
|
|
2007-04-03 21:19:08 +02:00
|
|
|
%changelog
|