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
|
|
|
#
|
2024-02-22 08:53:30 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
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
|
2020-12-28 10:20:23 +01:00
|
|
|
Version: 3.5.28
|
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
|
2020-12-28 10:20:23 +01:00
|
|
|
URL: http://djvu.sourceforge.net
|
2022-05-04 11:30:33 +02:00
|
|
|
Source: https://downloads.sourceforge.net/djvu/%{name}-%{version}.tar.gz
|
2021-05-12 12:12:52 +02:00
|
|
|
# CVE-2021-32490 [bsc#1185895], Out of bounds write in function DJVU:filter_bv() via crafted djvu file
|
|
|
|
Patch0: djvulibre-CVE-2021-32490.patch
|
|
|
|
# CVE-2021-32491 [bsc#1185900], Integer overflow in function render() in tools/ddjvu via crafted djvu file
|
|
|
|
Patch1: djvulibre-CVE-2021-32491.patch
|
|
|
|
# CVE-2021-32492 [bsc#1185904], Out of bounds read in function DJVU:DataPool:has_data() via crafted djvu file
|
|
|
|
Patch2: djvulibre-CVE-2021-32492.patch
|
|
|
|
# CVE-2021-32493 [bsc#1185905], Heap buffer overflow in function DJVU:GBitmap:decode() via crafted djvu file
|
|
|
|
Patch3: djvulibre-CVE-2021-32493.patch
|
2021-05-24 10:56:15 +02:00
|
|
|
# CVE-2021-3500 [bsc#1186253], Stack overflow in function DJVU:DjVuDocument:get_djvu_file() via crafted djvu file
|
|
|
|
Patch4: djvulibre-CVE-2021-3500.patch
|
2023-08-29 12:51:27 +02:00
|
|
|
# CVE-2021-46310 [bsc#1214670], divide by zero in IW44Image.cpp
|
|
|
|
Patch5: djvulibre-CVE-2021-46310.patch
|
|
|
|
# CVE-2021-46312 [bsc#1214672], divide by zero in IW44EncodeCodec.cpp
|
|
|
|
Patch6: djvulibre-CVE-2021-46312.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
|
2020-12-28 10:20:23 +01:00
|
|
|
# libtool needed to regenerate missing configure script (v 3.5.28)
|
|
|
|
BuildRequires: libtool
|
2015-02-28 10:33:10 +01:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: pkgconfig(libtiff-4)
|
2007-01-16 00:10:16 +01:00
|
|
|
|
|
|
|
%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
|
2024-02-22 08:53:30 +01:00
|
|
|
%autosetup -p1
|
2007-01-16 00:10:16 +01:00
|
|
|
|
|
|
|
%build
|
2020-12-28 10:20:23 +01:00
|
|
|
# configure script missing; generate using autogen.sh
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
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
|
|
|
|
2020-12-28 10:20:23 +01:00
|
|
|
%if 0%{?suse_version} < 1550
|
2015-02-28 10:33:10 +01:00
|
|
|
%post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%icon_theme_cache_postun
|
2020-12-28 10:20:23 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
2015-02-28 10:33:10 +01:00
|
|
|
|
|
|
|
%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/*
|
|
|
|
|
|
|
|
%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
|