|
|
31e3b7 |
Summary: Command-line tools and library for transforming PDF files
|
|
|
31e3b7 |
Name: qpdf
|
|
|
31e3b7 |
Version: 5.0.1
|
|
|
31e3b7 |
Release: 3%{?dist}
|
|
|
31e3b7 |
# MIT: e.g. libqpdf/sha2.c
|
|
|
31e3b7 |
License: Artistic 2.0 and MIT
|
|
|
31e3b7 |
Group: System Environment/Base
|
|
|
31e3b7 |
URL: http://qpdf.sourceforge.net/
|
|
|
31e3b7 |
Source0: http://downloads.sourceforge.net/sourceforge/qpdf/qpdf-%{version}.tar.gz
|
|
|
31e3b7 |
|
|
|
31e3b7 |
Patch0: qpdf-doc.patch
|
|
|
31e3b7 |
|
|
|
31e3b7 |
BuildRequires: zlib-devel
|
|
|
31e3b7 |
BuildRequires: pcre-devel
|
|
|
31e3b7 |
|
|
|
31e3b7 |
# for fix-qdf and test suite
|
|
|
31e3b7 |
BuildRequires: perl
|
|
|
31e3b7 |
BuildRequires: perl(Digest::MD5)
|
|
|
31e3b7 |
|
|
|
31e3b7 |
# for autoreconf
|
|
|
31e3b7 |
BuildRequires: autoconf
|
|
|
31e3b7 |
BuildRequires: automake
|
|
|
31e3b7 |
BuildRequires: libtool
|
|
|
31e3b7 |
|
|
|
31e3b7 |
Requires: qpdf-libs%{?_isa} = %{version}-%{release}
|
|
|
31e3b7 |
|
|
|
31e3b7 |
%package libs
|
|
|
31e3b7 |
Summary: QPDF library for transforming PDF files
|
|
|
31e3b7 |
Group: System Environment/Libraries
|
|
|
31e3b7 |
|
|
|
31e3b7 |
%package devel
|
|
|
31e3b7 |
Summary: Development files for QPDF library
|
|
|
31e3b7 |
Group: Development/Libraries
|
|
|
31e3b7 |
Requires: qpdf-libs%{?_isa} = %{version}-%{release}
|
|
|
31e3b7 |
|
|
|
31e3b7 |
%package doc
|
|
|
31e3b7 |
Summary: QPDF Manual
|
|
|
31e3b7 |
Group: Documentation
|
|
|
31e3b7 |
BuildArch: noarch
|
|
|
31e3b7 |
Requires: qpdf-libs = %{version}-%{release}
|
|
|
31e3b7 |
|
|
|
31e3b7 |
%description
|
|
|
31e3b7 |
QPDF is a command-line program that does structural, content-preserving
|
|
|
31e3b7 |
transformations on PDF files. It could have been called something
|
|
|
31e3b7 |
like pdf-to-pdf. It includes support for merging and splitting PDFs
|
|
|
31e3b7 |
and to manipulate the list of pages in a PDF file. It is not a PDF viewer
|
|
|
31e3b7 |
or a program capable of converting PDF into other formats.
|
|
|
31e3b7 |
|
|
|
31e3b7 |
%description libs
|
|
|
31e3b7 |
QPDF is a C++ library that inspect and manipulate the structure of PDF files.
|
|
|
31e3b7 |
It can encrypt and linearize files, expose the internals of a PDF file,
|
|
|
31e3b7 |
and do many other operations useful to PDF developers.
|
|
|
31e3b7 |
|
|
|
31e3b7 |
%description devel
|
|
|
31e3b7 |
Header files and libraries necessary
|
|
|
31e3b7 |
for developing programs using the QPDF library.
|
|
|
31e3b7 |
|
|
|
31e3b7 |
%description doc
|
|
|
31e3b7 |
QPDF Manual
|
|
|
31e3b7 |
|
|
|
31e3b7 |
%prep
|
|
|
31e3b7 |
%setup -q
|
|
|
31e3b7 |
|
|
|
31e3b7 |
# fix 'complete manual location' note in man pages
|
|
|
31e3b7 |
%patch0 -p1 -b .doc
|
|
|
31e3b7 |
|
|
|
31e3b7 |
sed -i -e '1s,^#!/usr/bin/env perl,#!/usr/bin/perl,' qpdf/fix-qdf
|
|
|
31e3b7 |
|
|
|
31e3b7 |
%build
|
|
|
31e3b7 |
# work-around check-rpaths errors
|
|
|
31e3b7 |
autoreconf --verbose --force --install
|
|
|
31e3b7 |
|
|
|
31e3b7 |
%configure --disable-static \
|
|
|
31e3b7 |
--enable-show-failed-test-output
|
|
|
31e3b7 |
|
|
|
31e3b7 |
make %{?_smp_mflags}
|
|
|
31e3b7 |
|
|
|
31e3b7 |
%install
|
|
|
31e3b7 |
make install DESTDIR=%{buildroot}
|
|
|
31e3b7 |
|
|
|
31e3b7 |
# https://fedoraproject.org/wiki/Packaging_tricks#With_.25doc
|
|
|
31e3b7 |
mkdir __doc
|
|
|
31e3b7 |
mv %{buildroot}%{_datadir}/doc/qpdf/* __doc
|
|
|
31e3b7 |
rm -rf %{buildroot}%{_datadir}/doc/qpdf
|
|
|
31e3b7 |
|
|
|
31e3b7 |
rm -f %{buildroot}%{_libdir}/libqpdf.la
|
|
|
31e3b7 |
|
|
|
31e3b7 |
%check
|
|
|
31e3b7 |
make check
|
|
|
31e3b7 |
|
|
|
31e3b7 |
%post libs -p /sbin/ldconfig
|
|
|
31e3b7 |
|
|
|
31e3b7 |
%postun libs -p /sbin/ldconfig
|
|
|
31e3b7 |
|
|
|
31e3b7 |
%files
|
|
|
31e3b7 |
%{_bindir}/fix-qdf
|
|
|
31e3b7 |
%{_bindir}/qpdf
|
|
|
31e3b7 |
%{_bindir}/zlib-flate
|
|
|
31e3b7 |
%{_mandir}/man1/*
|
|
|
31e3b7 |
|
|
|
31e3b7 |
%files libs
|
|
|
31e3b7 |
%doc README TODO ChangeLog Artistic-2.0
|
|
|
31e3b7 |
%{_libdir}/libqpdf*.so.*
|
|
|
31e3b7 |
|
|
|
31e3b7 |
%files devel
|
|
|
31e3b7 |
%doc examples/*.cc examples/*.c
|
|
|
31e3b7 |
%{_includedir}/*
|
|
|
31e3b7 |
%{_libdir}/libqpdf*.so
|
|
|
31e3b7 |
%{_libdir}/pkgconfig/libqpdf.pc
|
|
|
31e3b7 |
|
|
|
31e3b7 |
%files doc
|
|
|
31e3b7 |
%doc __doc/*
|
|
|
31e3b7 |
|
|
|
31e3b7 |
%changelog
|
|
|
31e3b7 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 5.0.1-3
|
|
|
31e3b7 |
- Mass rebuild 2014-01-24
|
|
|
31e3b7 |
|
|
|
31e3b7 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 5.0.1-2
|
|
|
31e3b7 |
- Mass rebuild 2013-12-27
|
|
|
31e3b7 |
|
|
|
31e3b7 |
* Tue Oct 29 2013 Jiri Popelka <jpopelka@redhat.com> - 5.0.1-1
|
|
|
31e3b7 |
- 5.0.1 - security-hardening release (#1021493)
|
|
|
31e3b7 |
|
|
|
31e3b7 |
* Mon Jul 22 2013 Jiri Popelka <jpopelka@redhat.com> - 5.0.0-3
|
|
|
31e3b7 |
- change shebang to absolute path (#987040)
|
|
|
31e3b7 |
|
|
|
31e3b7 |
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 5.0.0-2
|
|
|
31e3b7 |
- Perl 5.18 rebuild
|
|
|
31e3b7 |
|
|
|
31e3b7 |
* Thu Jul 11 2013 Jiri Popelka <jpopelka@redhat.com> - 5.0.0-1
|
|
|
31e3b7 |
- 5.0.0
|
|
|
31e3b7 |
|
|
|
31e3b7 |
* Mon Jul 08 2013 Jiri Popelka <jpopelka@redhat.com> - 4.2.0-1
|
|
|
31e3b7 |
- 4.2.0
|
|
|
31e3b7 |
|
|
|
31e3b7 |
* Thu May 23 2013 Jiri Popelka <jpopelka@redhat.com> - 4.1.0-3
|
|
|
31e3b7 |
- fix 'complete manual location' note in man pages (#966534)
|
|
|
31e3b7 |
|
|
|
31e3b7 |
* Tue May 07 2013 Jiri Popelka <jpopelka@redhat.com> - 4.1.0-2
|
|
|
31e3b7 |
- some source files are under MIT license
|
|
|
31e3b7 |
|
|
|
31e3b7 |
* Mon Apr 15 2013 Jiri Popelka <jpopelka@redhat.com> - 4.1.0-1
|
|
|
31e3b7 |
- 4.1.0
|
|
|
31e3b7 |
|
|
|
31e3b7 |
* Tue Mar 05 2013 Jiri Popelka <jpopelka@redhat.com> - 4.0.1-3
|
|
|
31e3b7 |
- work around gcc 4.8.0 issue on ppc64 (#915321)
|
|
|
31e3b7 |
- properly handle overridden compressed objects
|
|
|
31e3b7 |
|
|
|
31e3b7 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-2
|
|
|
31e3b7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
31e3b7 |
|
|
|
31e3b7 |
* Fri Jan 18 2013 Jiri Popelka <jpopelka@redhat.com> 4.0.1-1
|
|
|
31e3b7 |
- 4.0.1
|
|
|
31e3b7 |
|
|
|
31e3b7 |
* Wed Jan 02 2013 Jiri Popelka <jpopelka@redhat.com> 4.0.0-1
|
|
|
31e3b7 |
- 4.0.0
|
|
|
31e3b7 |
|
|
|
31e3b7 |
* Fri Sep 07 2012 Jiri Popelka <jpopelka@redhat.com> 3.0.2-1
|
|
|
31e3b7 |
- 3.0.2
|
|
|
31e3b7 |
|
|
|
31e3b7 |
* Thu Aug 16 2012 Jiri Popelka <jpopelka@redhat.com> 3.0.1-3
|
|
|
31e3b7 |
- the previously added requirement doesn't need to be arch-specific
|
|
|
31e3b7 |
|
|
|
31e3b7 |
* Thu Aug 16 2012 Jiri Popelka <jpopelka@redhat.com> 3.0.1-2
|
|
|
31e3b7 |
- doc subpackage requires libs subpackage due to license file (#848466)
|
|
|
31e3b7 |
|
|
|
31e3b7 |
* Wed Aug 15 2012 Jiri Popelka <jpopelka@redhat.com> 3.0.1-1
|
|
|
31e3b7 |
- initial spec file
|