|
|
b2b716 |
Summary: Command-line tools and library for transforming PDF files
|
|
|
b2b716 |
Name: qpdf
|
|
|
b2b716 |
Version: 7.1.1
|
|
|
b2b716 |
Release: 10%{?dist}
|
|
|
b2b716 |
# MIT: e.g. libqpdf/sha2.c
|
|
|
b2b716 |
# upstream uses ASL 2.0 now, but he allowed others to distribute qpdf under
|
|
|
b2b716 |
# old license (see README)
|
|
|
b2b716 |
License: (Artistic 2.0 or ASL 2.0) and MIT
|
|
|
b2b716 |
URL: http://qpdf.sourceforge.net/
|
|
|
b2b716 |
Source0: http://downloads.sourceforge.net/sourceforge/qpdf/qpdf-%{version}.tar.gz
|
|
|
b2b716 |
|
|
|
b2b716 |
Patch0: qpdf-doc.patch
|
|
|
b2b716 |
Patch1: qpdf-CVE-2018-9918.patch
|
|
|
b2b716 |
Patch2: qpdf-gnutls-crypto.patch
|
|
|
b2b716 |
Patch3: qpdf-relax.patch
|
|
|
b2b716 |
|
|
|
b2b716 |
# gcc and gcc-c++ are no longer in buildroot by default
|
|
|
b2b716 |
# gcc is needed for qpdf-ctest.c
|
|
|
b2b716 |
BuildRequires: gcc
|
|
|
b2b716 |
# gcc-c++ is need for everything except for qpdf-ctest
|
|
|
b2b716 |
BuildRequires: gcc-c++
|
|
|
b2b716 |
|
|
|
b2b716 |
BuildRequires: zlib-devel
|
|
|
b2b716 |
BuildRequires: libjpeg-turbo-devel
|
|
|
b2b716 |
BuildRequires: pcre-devel
|
|
|
b2b716 |
|
|
|
b2b716 |
# for fix-qdf and test suite
|
|
|
b2b716 |
BuildRequires: perl-interpreter
|
|
|
b2b716 |
BuildRequires: perl-generators
|
|
|
b2b716 |
BuildRequires: perl(Digest::MD5)
|
|
|
b2b716 |
|
|
|
b2b716 |
# for autoreconf
|
|
|
b2b716 |
BuildRequires: autoconf
|
|
|
b2b716 |
BuildRequires: automake
|
|
|
b2b716 |
BuildRequires: libtool
|
|
|
b2b716 |
|
|
|
b2b716 |
# for crypto by gnutls
|
|
|
b2b716 |
BuildRequires: gnutls-devel
|
|
|
b2b716 |
BuildRequires: pkgconf-pkg-config
|
|
|
b2b716 |
|
|
|
b2b716 |
Requires: qpdf-libs%{?_isa} = %{version}-%{release}
|
|
|
b2b716 |
|
|
|
b2b716 |
%package libs
|
|
|
b2b716 |
Summary: QPDF library for transforming PDF files
|
|
|
b2b716 |
|
|
|
b2b716 |
%package devel
|
|
|
b2b716 |
Summary: Development files for QPDF library
|
|
|
b2b716 |
Requires: qpdf-libs%{?_isa} = %{version}-%{release}
|
|
|
b2b716 |
|
|
|
b2b716 |
%package doc
|
|
|
b2b716 |
Summary: QPDF Manual
|
|
|
b2b716 |
BuildArch: noarch
|
|
|
b2b716 |
Requires: qpdf-libs = %{version}-%{release}
|
|
|
b2b716 |
|
|
|
b2b716 |
%description
|
|
|
b2b716 |
QPDF is a command-line program that does structural, content-preserving
|
|
|
b2b716 |
transformations on PDF files. It could have been called something
|
|
|
b2b716 |
like pdf-to-pdf. It includes support for merging and splitting PDFs
|
|
|
b2b716 |
and to manipulate the list of pages in a PDF file. It is not a PDF viewer
|
|
|
b2b716 |
or a program capable of converting PDF into other formats.
|
|
|
b2b716 |
|
|
|
b2b716 |
%description libs
|
|
|
b2b716 |
QPDF is a C++ library that inspect and manipulate the structure of PDF files.
|
|
|
b2b716 |
It can encrypt and linearize files, expose the internals of a PDF file,
|
|
|
b2b716 |
and do many other operations useful to PDF developers.
|
|
|
b2b716 |
|
|
|
b2b716 |
%description devel
|
|
|
b2b716 |
Header files and libraries necessary
|
|
|
b2b716 |
for developing programs using the QPDF library.
|
|
|
b2b716 |
|
|
|
b2b716 |
%description doc
|
|
|
b2b716 |
QPDF Manual
|
|
|
b2b716 |
|
|
|
b2b716 |
%prep
|
|
|
b2b716 |
%setup -q
|
|
|
b2b716 |
|
|
|
b2b716 |
# fix 'complete manual location' note in man pages
|
|
|
b2b716 |
%patch0 -p1 -b .doc
|
|
|
b2b716 |
# CVE-2018-9918 qpdf: stack exhaustion in QPDFObjectHandle and QPDF_Dictionary classes in libqpdf.a [fedora-all]
|
|
|
b2b716 |
%patch1 -p1 -b .CVE-2018-9918
|
|
|
b2b716 |
# 1605101 - qpdf: should not re-implement crypto
|
|
|
b2b716 |
%patch2 -p1 -b .gnutls-crypto
|
|
|
b2b716 |
# 1605101 - downstream patch for relaxing crypto for deterministic id and decrypt
|
|
|
b2b716 |
%patch3 -p1 -b .relax
|
|
|
b2b716 |
|
|
|
b2b716 |
sed -i -e '1s,^#!/usr/bin/env perl,#!/usr/bin/perl,' qpdf/fix-qdf
|
|
|
b2b716 |
|
|
|
b2b716 |
%build
|
|
|
b2b716 |
# work-around check-rpaths errors
|
|
|
b2b716 |
autoreconf --verbose --force --install
|
|
|
b2b716 |
|
|
|
b2b716 |
%configure --disable-static \
|
|
|
b2b716 |
--enable-show-failed-test-output \
|
|
|
b2b716 |
--enable-gnutls
|
|
|
b2b716 |
|
|
|
b2b716 |
make %{?_smp_mflags}
|
|
|
b2b716 |
|
|
|
b2b716 |
%install
|
|
|
b2b716 |
make install DESTDIR=%{buildroot}
|
|
|
b2b716 |
|
|
|
b2b716 |
rm -f %{buildroot}%{_libdir}/libqpdf.la
|
|
|
b2b716 |
|
|
|
b2b716 |
%check
|
|
|
b2b716 |
make check
|
|
|
b2b716 |
|
|
|
b2b716 |
%post libs -p /sbin/ldconfig
|
|
|
b2b716 |
|
|
|
b2b716 |
%postun libs -p /sbin/ldconfig
|
|
|
b2b716 |
|
|
|
b2b716 |
%files
|
|
|
b2b716 |
%{_bindir}/fix-qdf
|
|
|
b2b716 |
%{_bindir}/qpdf
|
|
|
b2b716 |
%{_bindir}/zlib-flate
|
|
|
b2b716 |
%{_mandir}/man1/*
|
|
|
b2b716 |
|
|
|
b2b716 |
%files libs
|
|
|
b2b716 |
%doc README.md TODO ChangeLog
|
|
|
b2b716 |
%license Artistic-2.0
|
|
|
b2b716 |
%{_libdir}/libqpdf*.so.*
|
|
|
b2b716 |
|
|
|
b2b716 |
%files devel
|
|
|
b2b716 |
%doc examples/*.cc examples/*.c
|
|
|
b2b716 |
%{_includedir}/*
|
|
|
b2b716 |
%{_libdir}/libqpdf*.so
|
|
|
b2b716 |
%{_libdir}/pkgconfig/libqpdf.pc
|
|
|
b2b716 |
|
|
|
b2b716 |
%files doc
|
|
|
b2b716 |
%{_pkgdocdir}
|
|
|
b2b716 |
|
|
|
b2b716 |
|
|
|
b2b716 |
%changelog
|
|
|
b2b716 |
* Tue Sep 10 2019 Zdenek Dohnal <zdohnal@redhat.com> - 7.1.1-10
|
|
|
b2b716 |
- used bad define in previous commit
|
|
|
b2b716 |
|
|
|
b2b716 |
* Tue Sep 10 2019 Zdenek Dohnal <zdohnal@redhat.com> - 7.1.1-9
|
|
|
b2b716 |
- 1605101 - qpdf: should not re-implement crypto - episode II - relaxing crypto for decrypt
|
|
|
b2b716 |
|
|
|
b2b716 |
* Thu Sep 05 2019 Zdenek Dohnal <zdohnal@redhat.com> - 7.1.1-8
|
|
|
b2b716 |
- 1605101 - qpdf: should not re-implement crypto
|
|
|
b2b716 |
|
|
|
b2b716 |
* Tue Jul 24 2018 Zdenek Dohnal <zdohnal@redhat.com> - 7.1.1-7
|
|
|
b2b716 |
- correcting license
|
|
|
b2b716 |
|
|
|
b2b716 |
* Wed Jul 11 2018 Zdenek Dohnal <zdohnal@redhat.com> - 7.1.1-6
|
|
|
b2b716 |
- ship license in correct tag, mention optional change of license
|
|
|
b2b716 |
|
|
|
b2b716 |
* Mon Apr 16 2018 Zdenek Dohnal <zdohnal@redhat.com> - 7.1.1-5
|
|
|
b2b716 |
- CVE-2018-9918 qpdf: stack exhaustion in QPDFObjectHandle and QPDF_Dictionary classes in libqpdf.a [fedora-all]
|
|
|
b2b716 |
|
|
|
b2b716 |
* Mon Feb 19 2018 Zdenek Dohnal <zdohnal@redhat.com> - 7.1.1-4
|
|
|
b2b716 |
- gcc and gcc-c++ are no longer in buildroot by default
|
|
|
b2b716 |
|
|
|
b2b716 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.1-3
|
|
|
b2b716 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
b2b716 |
|
|
|
b2b716 |
* Thu Feb 08 2018 Zdenek Dohnal <zdohnal@redhat.com> - 7.1.1-2
|
|
|
b2b716 |
- remove old stuff
|
|
|
b2b716 |
|
|
|
b2b716 |
* Mon Feb 05 2018 Zdenek Dohnal <zdohnal@redhat.com> - 7.1.1-1
|
|
|
b2b716 |
- rebase to 7.1.1
|
|
|
b2b716 |
|
|
|
b2b716 |
* Tue Sep 19 2017 Zdenek Dohnal <zdohnal@redhat.com> - 7.0.0-1
|
|
|
b2b716 |
- rebase to 7.0.0
|
|
|
b2b716 |
|
|
|
b2b716 |
* Fri Aug 11 2017 Zdenek Dohnal <zdohnal@redhat.com> - 6.0.0-10
|
|
|
b2b716 |
- adding patches for CVE back (cups-filters needed to rebuild)
|
|
|
b2b716 |
|
|
|
b2b716 |
* Mon Aug 07 2017 Zdenek Dohnal <zdohnal@redhat.com> - 6.0.0-9
|
|
|
b2b716 |
- removing patches for CVEs, because they break other things now
|
|
|
b2b716 |
|
|
|
b2b716 |
* Thu Aug 03 2017 Zdenek Dohnal <zdohnal@redhat.com> - 6.0.0-8
|
|
|
b2b716 |
- 1477213 - Detect recursions loop resolving objects
|
|
|
b2b716 |
- 1454820 - CVE-2017-9208
|
|
|
b2b716 |
- 1454820 - CVE-2017-9209
|
|
|
b2b716 |
- 1454820 - CVE-2017-9210
|
|
|
b2b716 |
|
|
|
b2b716 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-7
|
|
|
b2b716 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
b2b716 |
|
|
|
b2b716 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-6
|
|
|
b2b716 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
b2b716 |
|
|
|
b2b716 |
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.0-5
|
|
|
b2b716 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
|
|
|
b2b716 |
|
|
|
b2b716 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-4
|
|
|
b2b716 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
b2b716 |
|
|
|
b2b716 |
* Wed Aug 03 2016 Jiri Popelka <jpopelka@redhat.com> - 6.0.0-3
|
|
|
b2b716 |
- %%{_defaultdocdir}/qpdf/ -> %%{_pkgdocdir}
|
|
|
b2b716 |
|
|
|
b2b716 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-2
|
|
|
b2b716 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
b2b716 |
|
|
|
b2b716 |
* Wed Nov 11 2015 Jiri Popelka <jpopelka@redhat.com> - 6.0.0-1
|
|
|
b2b716 |
- 6.0.0
|
|
|
b2b716 |
|
|
|
b2b716 |
* Mon Nov 09 2015 Jiri Popelka <jpopelka@redhat.com> - 5.2.0-1
|
|
|
b2b716 |
- 5.2.0
|
|
|
b2b716 |
|
|
|
b2b716 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.3-2
|
|
|
b2b716 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
b2b716 |
|
|
|
b2b716 |
* Mon May 25 2015 Jiri Popelka <jpopelka@redhat.com> - 5.1.3
|
|
|
b2b716 |
- New upstream release 5.1.3
|
|
|
b2b716 |
|
|
|
b2b716 |
* Tue Apr 14 2015 Jiri Popelka <jpopelka@redhat.com> - 5.1.2-5
|
|
|
b2b716 |
- rebuilt
|
|
|
b2b716 |
|
|
|
b2b716 |
* Mon Feb 16 2015 Jiri Popelka <jpopelka@redhat.com> - 5.1.2-4
|
|
|
b2b716 |
- rebuilt
|
|
|
b2b716 |
|
|
|
b2b716 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-3
|
|
|
b2b716 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
b2b716 |
|
|
|
b2b716 |
* Fri Aug 15 2014 Jiri Popelka <jpopelka@redhat.com> - 5.1.2-2
|
|
|
b2b716 |
- Use %%_defaultdocdir instead of %%doc
|
|
|
b2b716 |
|
|
|
b2b716 |
* Mon Jun 09 2014 Jiri Popelka <jpopelka@redhat.com> - 5.1.2-1
|
|
|
b2b716 |
- 5.1.2
|
|
|
b2b716 |
|
|
|
b2b716 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.1-2
|
|
|
b2b716 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
b2b716 |
|
|
|
b2b716 |
* Wed Jan 15 2014 Jiri Popelka <jpopelka@redhat.com> - 5.1.1-1
|
|
|
b2b716 |
- 5.1.1
|
|
|
b2b716 |
|
|
|
b2b716 |
* Wed Dec 18 2013 Jiri Popelka <jpopelka@redhat.com> - 5.1.0-1
|
|
|
b2b716 |
- 5.1.0
|
|
|
b2b716 |
|
|
|
b2b716 |
* Mon Oct 21 2013 Jiri Popelka <jpopelka@redhat.com> - 5.0.1-1
|
|
|
b2b716 |
- 5.0.1
|
|
|
b2b716 |
|
|
|
b2b716 |
* Sat Aug 03 2013 Petr Pisar <ppisar@redhat.com> - 5.0.0-4
|
|
|
b2b716 |
- Perl 5.18 rebuild
|
|
|
b2b716 |
|
|
|
b2b716 |
* Mon Jul 22 2013 Jiri Popelka <jpopelka@redhat.com> - 5.0.0-3
|
|
|
b2b716 |
- change shebang to absolute path (#987040)
|
|
|
b2b716 |
|
|
|
b2b716 |
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 5.0.0-2
|
|
|
b2b716 |
- Perl 5.18 rebuild
|
|
|
b2b716 |
|
|
|
b2b716 |
* Thu Jul 11 2013 Jiri Popelka <jpopelka@redhat.com> - 5.0.0-1
|
|
|
b2b716 |
- 5.0.0
|
|
|
b2b716 |
|
|
|
b2b716 |
* Mon Jul 08 2013 Jiri Popelka <jpopelka@redhat.com> - 4.2.0-1
|
|
|
b2b716 |
- 4.2.0
|
|
|
b2b716 |
|
|
|
b2b716 |
* Thu May 23 2013 Jiri Popelka <jpopelka@redhat.com> - 4.1.0-3
|
|
|
b2b716 |
- fix 'complete manual location' note in man pages (#966534)
|
|
|
b2b716 |
|
|
|
b2b716 |
* Tue May 07 2013 Jiri Popelka <jpopelka@redhat.com> - 4.1.0-2
|
|
|
b2b716 |
- some source files are under MIT license
|
|
|
b2b716 |
|
|
|
b2b716 |
* Mon Apr 15 2013 Jiri Popelka <jpopelka@redhat.com> - 4.1.0-1
|
|
|
b2b716 |
- 4.1.0
|
|
|
b2b716 |
|
|
|
b2b716 |
* Tue Mar 05 2013 Jiri Popelka <jpopelka@redhat.com> - 4.0.1-3
|
|
|
b2b716 |
- work around gcc 4.8.0 issue on ppc64 (#915321)
|
|
|
b2b716 |
- properly handle overridden compressed objects
|
|
|
b2b716 |
|
|
|
b2b716 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-2
|
|
|
b2b716 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
b2b716 |
|
|
|
b2b716 |
* Fri Jan 18 2013 Jiri Popelka <jpopelka@redhat.com> 4.0.1-1
|
|
|
b2b716 |
- 4.0.1
|
|
|
b2b716 |
|
|
|
b2b716 |
* Wed Jan 02 2013 Jiri Popelka <jpopelka@redhat.com> 4.0.0-1
|
|
|
b2b716 |
- 4.0.0
|
|
|
b2b716 |
|
|
|
b2b716 |
* Fri Sep 07 2012 Jiri Popelka <jpopelka@redhat.com> 3.0.2-1
|
|
|
b2b716 |
- 3.0.2
|
|
|
b2b716 |
|
|
|
b2b716 |
* Thu Aug 16 2012 Jiri Popelka <jpopelka@redhat.com> 3.0.1-3
|
|
|
b2b716 |
- the previously added requirement doesn't need to be arch-specific
|
|
|
b2b716 |
|
|
|
b2b716 |
* Thu Aug 16 2012 Jiri Popelka <jpopelka@redhat.com> 3.0.1-2
|
|
|
b2b716 |
- doc subpackage requires libs subpackage due to license file (#848466)
|
|
|
b2b716 |
|
|
|
b2b716 |
* Wed Aug 15 2012 Jiri Popelka <jpopelka@redhat.com> 3.0.1-1
|
|
|
b2b716 |
- initial spec file
|