File qpdf.spec of Package qpdf
#
# spec file for package qpdf
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: qpdf
Version: 2.2.4
Release: 1
License: Artistic-2.0
Summary: Command-line tools and library for transforming PDF files
Url: http://qpdf.sourceforge.net/
Group: Development/Libraries/C and C++
Source: http://sourceforge.net/projects/qpdf/files/qpdf/%{version}/qpdf-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: pcre-devel
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
QPDF is a program that does structural, content-preserving
transformations on PDF files. It could have been called something
like pdf-to-pdf. It also provides many useful capabilities to
developers of PDF-producing software or for people who just want to
look at the innards of a PDF file to learn more about how they work.
QPDF offers many capabilities such as linearization (web
optimization), encrypt, and decryption of PDF files. Note that QPDF
does not have the capability to create PDF files from scratch; it is
only used to create PDF files with special characteristics starting
from other PDF files or to inspect or extract information from
existing PDF files.
%package devel
Summary: Development files for qpdf PDF manipulation library
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: pcre-devel
Requires: zlib-devel
%description devel
The qpdf-devel package contains header files and libraries necessary
for developing programs using the qpdf library.
%prep
%setup -q
%build
%configure --disable-test-compare-images \
--docdir='${datarootdir}'/doc/packages/%{name}
make %{?_smp_mflags}
%check
make check
rm -rf qpdf/qtest # Unicode data can't be redistributed freely
%install
%makeinstall
rm %{buildroot}%{_libdir}/libqpdf.a
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%dir %{_datadir}/doc/packages/%{name}
%doc %{_datadir}/doc/packages/%{name}/*
%{_bindir}/*
%{_libdir}/libqpdf*.so.*
%{_mandir}/man1/*
%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/libqpdf*.so
%clean
rm -rf %{buildroot}
%changelog