Blame SPECS/qpdf.spec

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