|
|
|
@ -1,78 +1,56 @@
|
|
|
|
|
Summary: Command-line tools and library for transforming PDF files
|
|
|
|
|
Name: qpdf
|
|
|
|
|
Version: 10.3.1
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Version: 7.1.1
|
|
|
|
|
Release: 10%{?dist}
|
|
|
|
|
# MIT: e.g. libqpdf/sha2.c
|
|
|
|
|
# upstream uses ASL 2.0 now, but he allowed other to distribute qpdf under
|
|
|
|
|
# upstream uses ASL 2.0 now, but he allowed others to distribute qpdf under
|
|
|
|
|
# old license (see README)
|
|
|
|
|
License: (Artistic 2.0 or ASL 2.0) and MIT
|
|
|
|
|
URL: http://qpdf.sourceforge.net/
|
|
|
|
|
Source0: http://downloads.sourceforge.net/sourceforge/qpdf/qpdf-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
Patch0: qpdf-doc.patch
|
|
|
|
|
# zlib has optimalization for aarch64 now, which gives different output after
|
|
|
|
|
# compression - patch erases 3 tests with generated object stream which were failing
|
|
|
|
|
Patch1: qpdf-erase-tests-with-generated-object-stream.patch
|
|
|
|
|
# make qpdf working under FIPS, downstream patch
|
|
|
|
|
Patch2: qpdf-relax.patch
|
|
|
|
|
# 1950033 - Possible changes in zlib output causes FTBFS for qpdf
|
|
|
|
|
Patch3: qpdf-s390x-disable-streamtest.patch
|
|
|
|
|
Patch1: qpdf-CVE-2018-9918.patch
|
|
|
|
|
Patch2: qpdf-gnutls-crypto.patch
|
|
|
|
|
Patch3: qpdf-relax.patch
|
|
|
|
|
|
|
|
|
|
# gcc and gcc-c++ are no longer in buildroot by default
|
|
|
|
|
# gcc is needed for qpdf-ctest.c
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
# gcc-c++ is need for everything except for qpdf-ctest
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
# uses make
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
BuildRequires: libjpeg-turbo-devel
|
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
|
|
|
|
|
|
# for gnutls crypto
|
|
|
|
|
BuildRequires: gnutls-devel
|
|
|
|
|
|
|
|
|
|
# for fix-qdf and test suite
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
|
BuildRequires: perl(constant)
|
|
|
|
|
BuildRequires: perl(Cwd)
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl(Digest::MD5)
|
|
|
|
|
BuildRequires: perl(Digest::SHA)
|
|
|
|
|
BuildRequires: perl(File::Basename)
|
|
|
|
|
BuildRequires: perl(File::Copy)
|
|
|
|
|
BuildRequires: perl(File::Find)
|
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
|
BuildRequires: perl(FileHandle)
|
|
|
|
|
BuildRequires: perl(IO::Handle)
|
|
|
|
|
BuildRequires: perl(IO::Select)
|
|
|
|
|
BuildRequires: perl(IO::Socket)
|
|
|
|
|
BuildRequires: perl(POSIX)
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
# perl(Term::ANSIColor) - not needed for tests
|
|
|
|
|
# perl(Term::ReadKey) - not needed for tests
|
|
|
|
|
|
|
|
|
|
# for autoreconf
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
|
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
# for crypto by gnutls
|
|
|
|
|
BuildRequires: gnutls-devel
|
|
|
|
|
BuildRequires: pkgconf-pkg-config
|
|
|
|
|
|
|
|
|
|
Requires: qpdf-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
|
Summary: QPDF library for transforming PDF files
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for QPDF library
|
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: qpdf-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: QPDF Manual
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
|
Requires: qpdf-libs = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
QPDF is a command-line program that does structural, content-preserving
|
|
|
|
@ -98,37 +76,36 @@ QPDF Manual
|
|
|
|
|
|
|
|
|
|
# fix 'complete manual location' note in man pages
|
|
|
|
|
%patch0 -p1 -b .doc
|
|
|
|
|
%ifarch aarch64
|
|
|
|
|
%patch1 -p1 -b .erase-tests-with-generated-object-stream
|
|
|
|
|
%endif
|
|
|
|
|
%patch2 -p1 -b .relax
|
|
|
|
|
%ifarch s390x
|
|
|
|
|
%patch3 -p1 -b .s390x-disable-streamtest
|
|
|
|
|
%endif
|
|
|
|
|
# CVE-2018-9918 qpdf: stack exhaustion in QPDFObjectHandle and QPDF_Dictionary classes in libqpdf.a [fedora-all]
|
|
|
|
|
%patch1 -p1 -b .CVE-2018-9918
|
|
|
|
|
# 1605101 - qpdf: should not re-implement crypto
|
|
|
|
|
%patch2 -p1 -b .gnutls-crypto
|
|
|
|
|
# 1605101 - downstream patch for relaxing crypto for deterministic id and decrypt
|
|
|
|
|
%patch3 -p1 -b .relax
|
|
|
|
|
|
|
|
|
|
sed -i -e '1s,^#!/usr/bin/env perl,#!/usr/bin/perl,' qpdf/fix-qdf
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# work-around check-rpaths errors
|
|
|
|
|
autoreconf --verbose --force --install
|
|
|
|
|
# automake files needed to be regenerated in 8.4.0 - check if this can be removed
|
|
|
|
|
# in the next qpdf release
|
|
|
|
|
./autogen.sh
|
|
|
|
|
|
|
|
|
|
%configure --disable-static \
|
|
|
|
|
--enable-crypto-gnutls \
|
|
|
|
|
--disable-implicit-crypto \
|
|
|
|
|
--enable-show-failed-test-output
|
|
|
|
|
--enable-show-failed-test-output \
|
|
|
|
|
--enable-gnutls
|
|
|
|
|
|
|
|
|
|
%make_build
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
|
|
rm -f %{buildroot}%{_libdir}/libqpdf.la
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets libs
|
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%{_bindir}/fix-qdf
|
|
|
|
@ -139,13 +116,12 @@ make check
|
|
|
|
|
%files libs
|
|
|
|
|
%doc README.md TODO ChangeLog
|
|
|
|
|
%license Artistic-2.0
|
|
|
|
|
%{_libdir}/libqpdf.so.28
|
|
|
|
|
%{_libdir}/libqpdf.so.28.3.1
|
|
|
|
|
%{_libdir}/libqpdf*.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%doc examples/*.cc examples/*.c
|
|
|
|
|
%{_includedir}/qpdf/
|
|
|
|
|
%{_libdir}/libqpdf.so
|
|
|
|
|
%{_includedir}/*
|
|
|
|
|
%{_libdir}/libqpdf*.so
|
|
|
|
|
%{_libdir}/pkgconfig/libqpdf.pc
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
@ -153,117 +129,27 @@ make check
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Jan 04 2023 Zdenek Dohnal <zdohnal@redhat.com> - 10.3.1-7
|
|
|
|
|
- 2157765 - Ship qpdf-devel in CRB
|
|
|
|
|
|
|
|
|
|
* Fri Jul 15 2022 Zdenek Dohnal <zdohnal@redhat.com> - 10.3.1-6
|
|
|
|
|
- 2106940 - FIPS breaks pdftopdf and bannertopdf
|
|
|
|
|
|
|
|
|
|
* Wed Jun 29 2022 Zdenek Dohnal <zdohnal@redhat.com> - 10.3.1-5
|
|
|
|
|
- 2095993 - Move qpdf to CRB repository
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 10.3.1-4
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Tue Apr 20 2021 Zdenek Dohnal <zdohnal@redhat.com> - 10.3.1-3
|
|
|
|
|
- 1950033 - Possible changes in zlib output causes FTBFS for qpdf
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 10.3.1-2
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Fri Mar 12 2021 Zdenek Dohnal <zdohnal@redhat.com> - 10.3.1-1
|
|
|
|
|
- 1937988 - qpdf-10.3.1 is available
|
|
|
|
|
|
|
|
|
|
* Thu Mar 11 2021 Zdenek Dohnal <zdohnal@redhat.com> - 10.3.0-1
|
|
|
|
|
- 1935799 - qpdf-10.3.0 is available
|
|
|
|
|
|
|
|
|
|
* Wed Feb 24 2021 Zdenek Dohnal <zdohnal@redhat.com> - 10.2.0-1
|
|
|
|
|
- 1932052 - qpdf-10.2.0 is available
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 10.1.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 11 2021 Zdenek Dohnal <zdohnal@redhat.com> - 10.1.0-1
|
|
|
|
|
- 1912951 - qpdf-10.1.0 is available
|
|
|
|
|
|
|
|
|
|
* Mon Nov 23 2020 Zdenek Dohnal <zdohnal@redhat.com> - 10.0.4-1
|
|
|
|
|
- 1900262 - qpdf-10.0.4 is available
|
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 7.1.1-10
|
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
* Thu Nov 05 2020 Zdenek Dohnal <zdohnal@redhat.com> - 10.0.3-2
|
|
|
|
|
- make is no longer in buildroot by default
|
|
|
|
|
* Tue Sep 10 2019 Zdenek Dohnal <zdohnal@redhat.com> - 7.1.1-10
|
|
|
|
|
- used bad define in previous commit
|
|
|
|
|
|
|
|
|
|
* Mon Nov 02 2020 Zdenek Dohnal <zdohnal@redhat.com> - 10.0.3-1
|
|
|
|
|
- 10.0.3
|
|
|
|
|
* Tue Sep 10 2019 Zdenek Dohnal <zdohnal@redhat.com> - 7.1.1-9
|
|
|
|
|
- 1605101 - qpdf: should not re-implement crypto - episode II - relaxing crypto for decrypt
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 10.0.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
* Thu Sep 05 2019 Zdenek Dohnal <zdohnal@redhat.com> - 7.1.1-8
|
|
|
|
|
- 1605101 - qpdf: should not re-implement crypto
|
|
|
|
|
|
|
|
|
|
* Tue Apr 14 2020 Zdenek Dohnal <zdohnal@redhat.com> - 10.0.1-1
|
|
|
|
|
- 10.0.1
|
|
|
|
|
|
|
|
|
|
* Wed Mar 25 2020 Jitka Plesnikova <jplesnik@redhat.com> - 9.1.1-3
|
|
|
|
|
- Add all perl dependencies for tests
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.1.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 27 2020 Zdenek Dohnal <zdohnal@redhat.com> - 9.1.1-1
|
|
|
|
|
- 9.1.1
|
|
|
|
|
|
|
|
|
|
* Tue Nov 19 2019 Zdenek Dohnal <zdohnal@redhat.com> - 9.1.0-1
|
|
|
|
|
- 9.1.0
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.4.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri May 31 2019 Zdenek Dohnal <zdohnal@redhat.com> - 8.4.2-1
|
|
|
|
|
- 8.4.2
|
|
|
|
|
|
|
|
|
|
* Mon Mar 25 2019 Zdenek Dohnal <zdohnal@redhat.com> - 8.4.0-1
|
|
|
|
|
- 8.4.0
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.3.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 14 2019 Zdenek Dohnal <zdohnal@redhat.com> - 8.3.0-1
|
|
|
|
|
- 8.3.0
|
|
|
|
|
|
|
|
|
|
* Mon Sep 24 2018 Zdenek Dohnal <zdohnal@redhat.com> - 8.2.1-1
|
|
|
|
|
- 8.2.1
|
|
|
|
|
|
|
|
|
|
* Tue Jul 24 2018 Zdenek Dohnal <zdohnal@redhat.com> - 8.1.0-4
|
|
|
|
|
* Tue Jul 24 2018 Zdenek Dohnal <zdohnal@redhat.com> - 7.1.1-7
|
|
|
|
|
- correcting license
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8.1.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 11 2018 Zdenek Dohnal <zdohnal@redhat.com> - 8.1.0-2
|
|
|
|
|
* Wed Jul 11 2018 Zdenek Dohnal <zdohnal@redhat.com> - 7.1.1-6
|
|
|
|
|
- ship license in correct tag, mention optional change of license
|
|
|
|
|
|
|
|
|
|
* Mon Jun 25 2018 Zdenek Dohnal <zdohnal@redhat.com> - 8.1.0-1
|
|
|
|
|
- 8.1.0
|
|
|
|
|
- more tests fail because aarch64 zlib optimization - add patch for it
|
|
|
|
|
|
|
|
|
|
* Fri May 25 2018 Zdenek Dohnal <zdohnal@redhat.com> - 8.0.2-3
|
|
|
|
|
- erase failing tests for aarch64 because of zlib optimization
|
|
|
|
|
|
|
|
|
|
* Mon Apr 16 2018 Zdenek Dohnal <zdohnal@redhat.com>
|
|
|
|
|
* Mon Apr 16 2018 Zdenek Dohnal <zdohnal@redhat.com> - 7.1.1-5
|
|
|
|
|
- CVE-2018-9918 qpdf: stack exhaustion in QPDFObjectHandle and QPDF_Dictionary classes in libqpdf.a [fedora-all]
|
|
|
|
|
|
|
|
|
|
* Wed Mar 07 2018 Zdenek Dohnal <zdohnal@redhat.com> - 8.0.2-1
|
|
|
|
|
- 8.0.2
|
|
|
|
|
|
|
|
|
|
* Mon Mar 05 2018 Zdenek Dohnal <zdohnal@redhat.com> - 8.0.1-1
|
|
|
|
|
- 8.0.1
|
|
|
|
|
|
|
|
|
|
* Tue Feb 27 2018 Rex Dieter <rdieter@fedoraproject.org> - 8.0.0-2
|
|
|
|
|
- use %%license, %%ldconfig_scriptlets, %%make_build, %%make_install
|
|
|
|
|
- %%files: track files more closely, libqpdf soname in particular
|
|
|
|
|
|
|
|
|
|
* Mon Feb 26 2018 Zdenek Dohnal <zdohnal@redhat.com> - 8.0.0-1
|
|
|
|
|
- rebase to 8.0.0
|
|
|
|
|
|
|
|
|
|
* Mon Feb 19 2018 Zdenek Dohnal <zdohnal@redhat.com> - 7.1.1-4
|
|
|
|
|
- gcc and gcc-c++ are no longer in buildroot by default
|
|
|
|
|
|
|
|
|
|