From 31e3b7f24ed8b915cc1cb7f7ddbc975452663a34 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 31 2019 14:51:51 +0000 Subject: import qpdf-5.0.1-3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..472ee6f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/qpdf-5.0.1.tar.gz diff --git a/.qpdf.metadata b/.qpdf.metadata new file mode 100644 index 0000000..fc2d31f --- /dev/null +++ b/.qpdf.metadata @@ -0,0 +1 @@ +41a4bd91bfbc2d3585ea229b53bfd1183186b1b3 SOURCES/qpdf-5.0.1.tar.gz diff --git a/SOURCES/qpdf-doc.patch b/SOURCES/qpdf-doc.patch new file mode 100644 index 0000000..732f8f3 --- /dev/null +++ b/SOURCES/qpdf-doc.patch @@ -0,0 +1,30 @@ +diff -up qpdf-4.1.0/manual/fix-qdf.1.in.doc qpdf-4.1.0/manual/fix-qdf.1.in +--- qpdf-4.1.0/manual/fix-qdf.1.in.doc 2013-04-14 21:03:51.000000000 +0200 ++++ qpdf-4.1.0/manual/fix-qdf.1.in 2013-05-23 18:12:21.506581935 +0200 +@@ -14,5 +14,4 @@ the same file with stream lengths, cross + object stream offset tables regenerated. + .PP + For details about fix-qdf and about PDF files in QDF mode, please see +-the qpdf manual, which can be found in @docdir@/qpdf-manual.html or +-@docdir@/qpdf-manual.pdf. ++the qpdf manual, which can be found in qpdf-doc package. +diff -up qpdf-4.1.0/manual/qpdf.1.in.doc qpdf-4.1.0/manual/qpdf.1.in +--- qpdf-4.1.0/manual/qpdf.1.in.doc 2013-04-14 21:03:51.000000000 +0200 ++++ qpdf-4.1.0/manual/qpdf.1.in 2013-05-23 18:12:13.723690019 +0200 +@@ -16,4 +16,4 @@ useful primarily to PDF developers. + .PP + For a summary of qpdf's options, please run + \fBqpdf --help\fR. A complete manual can be found in +-@docdir@/qpdf-manual.html or @docdir@/qpdf-manual.pdf. ++qpdf-doc package. +diff -up qpdf-4.1.0/manual/zlib-flate.1.in.doc qpdf-4.1.0/manual/zlib-flate.1.in +--- qpdf-4.1.0/manual/zlib-flate.1.in.doc 2013-04-14 21:03:51.000000000 +0200 ++++ qpdf-4.1.0/manual/zlib-flate.1.in 2013-05-23 18:12:07.571775453 +0200 +@@ -21,6 +21,6 @@ This program should not be used as a gen + tool. Use something like gzip(1) instead. + .PP + For details about qpdf, please see the qpdf manual, which can be found +-in @docdir@/qpdf-manual.html or @docdir@/qpdf-manual.pdf. ++in qpdf-doc package. + .SH "SEE ALSO" + qpdf(1), gzip(1) diff --git a/SPECS/qpdf.spec b/SPECS/qpdf.spec new file mode 100644 index 0000000..f7d8db1 --- /dev/null +++ b/SPECS/qpdf.spec @@ -0,0 +1,168 @@ +Summary: Command-line tools and library for transforming PDF files +Name: qpdf +Version: 5.0.1 +Release: 3%{?dist} +# MIT: e.g. libqpdf/sha2.c +License: Artistic 2.0 and MIT +Group: System Environment/Base +URL: http://qpdf.sourceforge.net/ +Source0: http://downloads.sourceforge.net/sourceforge/qpdf/qpdf-%{version}.tar.gz + +Patch0: qpdf-doc.patch + +BuildRequires: zlib-devel +BuildRequires: pcre-devel + +# for fix-qdf and test suite +BuildRequires: perl +BuildRequires: perl(Digest::MD5) + +# for autoreconf +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool + +Requires: qpdf-libs%{?_isa} = %{version}-%{release} + +%package libs +Summary: QPDF library for transforming PDF files +Group: System Environment/Libraries + +%package devel +Summary: Development files for QPDF library +Group: Development/Libraries +Requires: qpdf-libs%{?_isa} = %{version}-%{release} + +%package doc +Summary: QPDF Manual +Group: Documentation +BuildArch: noarch +Requires: qpdf-libs = %{version}-%{release} + +%description +QPDF is a command-line program that does structural, content-preserving +transformations on PDF files. It could have been called something +like pdf-to-pdf. It includes support for merging and splitting PDFs +and to manipulate the list of pages in a PDF file. It is not a PDF viewer +or a program capable of converting PDF into other formats. + +%description libs +QPDF is a C++ library that inspect and manipulate the structure of PDF files. +It can encrypt and linearize files, expose the internals of a PDF file, +and do many other operations useful to PDF developers. + +%description devel +Header files and libraries necessary +for developing programs using the QPDF library. + +%description doc +QPDF Manual + +%prep +%setup -q + +# fix 'complete manual location' note in man pages +%patch0 -p1 -b .doc + +sed -i -e '1s,^#!/usr/bin/env perl,#!/usr/bin/perl,' qpdf/fix-qdf + +%build +# work-around check-rpaths errors +autoreconf --verbose --force --install + +%configure --disable-static \ + --enable-show-failed-test-output + +make %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} + +# https://fedoraproject.org/wiki/Packaging_tricks#With_.25doc +mkdir __doc +mv %{buildroot}%{_datadir}/doc/qpdf/* __doc +rm -rf %{buildroot}%{_datadir}/doc/qpdf + +rm -f %{buildroot}%{_libdir}/libqpdf.la + +%check +make check + +%post libs -p /sbin/ldconfig + +%postun libs -p /sbin/ldconfig + +%files +%{_bindir}/fix-qdf +%{_bindir}/qpdf +%{_bindir}/zlib-flate +%{_mandir}/man1/* + +%files libs +%doc README TODO ChangeLog Artistic-2.0 +%{_libdir}/libqpdf*.so.* + +%files devel +%doc examples/*.cc examples/*.c +%{_includedir}/* +%{_libdir}/libqpdf*.so +%{_libdir}/pkgconfig/libqpdf.pc + +%files doc +%doc __doc/* + +%changelog +* Fri Jan 24 2014 Daniel Mach - 5.0.1-3 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 5.0.1-2 +- Mass rebuild 2013-12-27 + +* Tue Oct 29 2013 Jiri Popelka - 5.0.1-1 +- 5.0.1 - security-hardening release (#1021493) + +* Mon Jul 22 2013 Jiri Popelka - 5.0.0-3 +- change shebang to absolute path (#987040) + +* Wed Jul 17 2013 Petr Pisar - 5.0.0-2 +- Perl 5.18 rebuild + +* Thu Jul 11 2013 Jiri Popelka - 5.0.0-1 +- 5.0.0 + +* Mon Jul 08 2013 Jiri Popelka - 4.2.0-1 +- 4.2.0 + +* Thu May 23 2013 Jiri Popelka - 4.1.0-3 +- fix 'complete manual location' note in man pages (#966534) + +* Tue May 07 2013 Jiri Popelka - 4.1.0-2 +- some source files are under MIT license + +* Mon Apr 15 2013 Jiri Popelka - 4.1.0-1 +- 4.1.0 + +* Tue Mar 05 2013 Jiri Popelka - 4.0.1-3 +- work around gcc 4.8.0 issue on ppc64 (#915321) +- properly handle overridden compressed objects + +* Thu Feb 14 2013 Fedora Release Engineering - 4.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Jan 18 2013 Jiri Popelka 4.0.1-1 +- 4.0.1 + +* Wed Jan 02 2013 Jiri Popelka 4.0.0-1 +- 4.0.0 + +* Fri Sep 07 2012 Jiri Popelka 3.0.2-1 +- 3.0.2 + +* Thu Aug 16 2012 Jiri Popelka 3.0.1-3 +- the previously added requirement doesn't need to be arch-specific + +* Thu Aug 16 2012 Jiri Popelka 3.0.1-2 +- doc subpackage requires libs subpackage due to license file (#848466) + +* Wed Aug 15 2012 Jiri Popelka 3.0.1-1 +- initial spec file