[8114] | 1 | Summary: Command-line tools and library for transforming PDF files |
---|
| 2 | Name: qpdf |
---|
[11455] | 3 | Version: 7.1.0 |
---|
[10421] | 4 | Release: 1%{?_dist_release} |
---|
[11455] | 5 | |
---|
[8114] | 6 | # MIT: e.g. libqpdf/sha2.c |
---|
[11455] | 7 | License: Apache License Version 2.0 or Artistic 2.0 |
---|
[8114] | 8 | Group: System Environment/Base |
---|
| 9 | URL: http://qpdf.sourceforge.net/ |
---|
| 10 | Source0: http://downloads.sourceforge.net/sourceforge/qpdf/qpdf-%{version}.tar.gz |
---|
| 11 | |
---|
| 12 | Patch0: qpdf-doc.patch |
---|
| 13 | |
---|
| 14 | BuildRequires: zlib-devel |
---|
| 15 | BuildRequires: pcre-devel |
---|
[11455] | 16 | BuildRequires: libjpeg-turbo-devel libtiff-devel |
---|
[8114] | 17 | |
---|
| 18 | # for fix-qdf and test suite |
---|
| 19 | BuildRequires: perl |
---|
| 20 | BuildRequires: perl(Digest::MD5) |
---|
| 21 | |
---|
[11455] | 22 | # # for autoreconf |
---|
| 23 | # BuildRequires: autoconf |
---|
| 24 | # BuildRequires: automake |
---|
| 25 | # BuildRequires: libtool |
---|
[8114] | 26 | |
---|
| 27 | Requires: qpdf-libs%{?_isa} = %{version}-%{release} |
---|
| 28 | |
---|
| 29 | Vendor: Project Vine |
---|
| 30 | Distribution: Vine Linux |
---|
[11455] | 31 | Packager: tomopl, ara_t |
---|
[8114] | 32 | |
---|
[11455] | 33 | |
---|
[8114] | 34 | %package libs |
---|
| 35 | Summary: QPDF library for transforming PDF files |
---|
| 36 | Group: System Environment/Libraries |
---|
| 37 | |
---|
| 38 | %package devel |
---|
| 39 | Summary: Development files for QPDF library |
---|
| 40 | Group: Development/Libraries |
---|
| 41 | Requires: qpdf-libs%{?_isa} = %{version}-%{release} |
---|
| 42 | |
---|
| 43 | %package doc |
---|
| 44 | Summary: QPDF Manual |
---|
| 45 | Group: Documentation |
---|
| 46 | BuildArch: noarch |
---|
| 47 | Requires: qpdf-libs = %{version}-%{release} |
---|
| 48 | |
---|
[11455] | 49 | |
---|
[8114] | 50 | %description |
---|
| 51 | QPDF is a command-line program that does structural, content-preserving |
---|
| 52 | transformations on PDF files. It could have been called something |
---|
| 53 | like pdf-to-pdf. It includes support for merging and splitting PDFs |
---|
| 54 | and to manipulate the list of pages in a PDF file. It is not a PDF viewer |
---|
| 55 | or a program capable of converting PDF into other formats. |
---|
| 56 | |
---|
| 57 | %description libs |
---|
| 58 | QPDF is a C++ library that inspect and manipulate the structure of PDF files. |
---|
| 59 | It can encrypt and linearize files, expose the internals of a PDF file, |
---|
| 60 | and do many other operations useful to PDF developers. |
---|
| 61 | |
---|
| 62 | %description devel |
---|
| 63 | Header files and libraries necessary |
---|
| 64 | for developing programs using the QPDF library. |
---|
| 65 | |
---|
| 66 | %description doc |
---|
| 67 | QPDF Manual |
---|
| 68 | |
---|
[11455] | 69 | |
---|
[8114] | 70 | %prep |
---|
| 71 | %setup -q |
---|
| 72 | |
---|
| 73 | # fix 'complete manual location' note in man pages |
---|
| 74 | %patch0 -p1 -b .doc |
---|
| 75 | |
---|
| 76 | sed -i -e '1s,^#!/usr/bin/env perl,#!/usr/bin/perl,' qpdf/fix-qdf |
---|
| 77 | |
---|
| 78 | %build |
---|
| 79 | # work-around check-rpaths errors |
---|
[11455] | 80 | # autoreconf --verbose --force --install |
---|
[8114] | 81 | |
---|
| 82 | %configure --disable-static \ |
---|
| 83 | --enable-show-failed-test-output |
---|
| 84 | |
---|
| 85 | make %{?_smp_mflags} |
---|
| 86 | |
---|
| 87 | %install |
---|
| 88 | make install DESTDIR=%{buildroot} |
---|
| 89 | |
---|
| 90 | # https://fedoraproject.org/wiki/Packaging_tricks#With_.25doc |
---|
| 91 | mkdir __doc |
---|
| 92 | mv %{buildroot}%{_datadir}/doc/qpdf/* __doc |
---|
| 93 | rm -rf %{buildroot}%{_datadir}/doc/qpdf |
---|
| 94 | |
---|
| 95 | rm -f %{buildroot}%{_libdir}/libqpdf.la |
---|
| 96 | |
---|
| 97 | %check |
---|
| 98 | make check |
---|
| 99 | |
---|
| 100 | %post libs -p /sbin/ldconfig |
---|
| 101 | |
---|
| 102 | %postun libs -p /sbin/ldconfig |
---|
| 103 | |
---|
[11455] | 104 | |
---|
[8114] | 105 | %files |
---|
| 106 | %{_bindir}/fix-qdf |
---|
| 107 | %{_bindir}/qpdf |
---|
| 108 | %{_bindir}/zlib-flate |
---|
| 109 | %{_mandir}/man1/* |
---|
| 110 | |
---|
| 111 | %files libs |
---|
[11455] | 112 | %doc README.md NOTICE.md TODO ChangeLog Artistic-2.0 LICENSE.txt |
---|
[8114] | 113 | %{_libdir}/libqpdf*.so.* |
---|
| 114 | |
---|
| 115 | %files devel |
---|
| 116 | %doc examples/*.cc examples/*.c |
---|
| 117 | %{_includedir}/* |
---|
| 118 | %{_libdir}/libqpdf*.so |
---|
| 119 | %{_libdir}/pkgconfig/libqpdf.pc |
---|
| 120 | |
---|
| 121 | %files doc |
---|
| 122 | %doc __doc/* |
---|
| 123 | |
---|
[11455] | 124 | |
---|
[8114] | 125 | %changelog |
---|
[11455] | 126 | * Tue Jan 30 2018 Toshiaki Ara <ara_t@384.jp> - 7.1.0-1 |
---|
| 127 | - new upstream release. |
---|
| 128 | - add BuildRequires: libjpeg-turbo-devel libtiff-devel |
---|
| 129 | - drop BuildRequires: autoconf automake libtool |
---|
| 130 | |
---|
[10421] | 131 | * Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 6.0.0-1 |
---|
| 132 | - new upstream release. |
---|
| 133 | |
---|
[8114] | 134 | * Sat Jan 04 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.1.0-2 |
---|
| 135 | - initial build for Vine Linux. |
---|
| 136 | |
---|
| 137 | * Wed Dec 18 2013 Jiri Popelka <jpopelka@redhat.com> - 5.1.0-1 |
---|
| 138 | - 5.1.0 |
---|
| 139 | |
---|
| 140 | * Mon Oct 21 2013 Jiri Popelka <jpopelka@redhat.com> - 5.0.1-1 |
---|
| 141 | - 5.0.1 |
---|
| 142 | |
---|
| 143 | * Sat Aug 03 2013 Petr Pisar <ppisar@redhat.com> - 5.0.0-4 |
---|
| 144 | - Perl 5.18 rebuild |
---|
| 145 | |
---|
| 146 | * Mon Jul 22 2013 Jiri Popelka <jpopelka@redhat.com> - 5.0.0-3 |
---|
| 147 | - change shebang to absolute path (#987040) |
---|
| 148 | |
---|
| 149 | * Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 5.0.0-2 |
---|
| 150 | - Perl 5.18 rebuild |
---|
| 151 | |
---|
| 152 | * Thu Jul 11 2013 Jiri Popelka <jpopelka@redhat.com> - 5.0.0-1 |
---|
| 153 | - 5.0.0 |
---|
| 154 | |
---|
| 155 | * Mon Jul 08 2013 Jiri Popelka <jpopelka@redhat.com> - 4.2.0-1 |
---|
| 156 | - 4.2.0 |
---|
| 157 | |
---|
| 158 | * Thu May 23 2013 Jiri Popelka <jpopelka@redhat.com> - 4.1.0-3 |
---|
| 159 | - fix 'complete manual location' note in man pages (#966534) |
---|
| 160 | |
---|
| 161 | * Tue May 07 2013 Jiri Popelka <jpopelka@redhat.com> - 4.1.0-2 |
---|
| 162 | - some source files are under MIT license |
---|
| 163 | |
---|
| 164 | * Mon Apr 15 2013 Jiri Popelka <jpopelka@redhat.com> - 4.1.0-1 |
---|
| 165 | - 4.1.0 |
---|
| 166 | |
---|
| 167 | * Tue Mar 05 2013 Jiri Popelka <jpopelka@redhat.com> - 4.0.1-3 |
---|
| 168 | - work around gcc 4.8.0 issue on ppc64 (#915321) |
---|
| 169 | - properly handle overridden compressed objects |
---|
| 170 | |
---|
| 171 | * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-2 |
---|
| 172 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild |
---|
| 173 | |
---|
| 174 | * Fri Jan 18 2013 Jiri Popelka <jpopelka@redhat.com> 4.0.1-1 |
---|
| 175 | - 4.0.1 |
---|
| 176 | |
---|
| 177 | * Wed Jan 02 2013 Jiri Popelka <jpopelka@redhat.com> 4.0.0-1 |
---|
| 178 | - 4.0.0 |
---|
| 179 | |
---|
| 180 | * Fri Sep 07 2012 Jiri Popelka <jpopelka@redhat.com> 3.0.2-1 |
---|
| 181 | - 3.0.2 |
---|
| 182 | |
---|
| 183 | * Thu Aug 16 2012 Jiri Popelka <jpopelka@redhat.com> 3.0.1-3 |
---|
| 184 | - the previously added requirement doesn't need to be arch-specific |
---|
| 185 | |
---|
| 186 | * Thu Aug 16 2012 Jiri Popelka <jpopelka@redhat.com> 3.0.1-2 |
---|
| 187 | - doc subpackage requires libs subpackage due to license file (#848466) |
---|
| 188 | |
---|
| 189 | * Wed Aug 15 2012 Jiri Popelka <jpopelka@redhat.com> 3.0.1-1 |
---|
| 190 | - initial spec file |
---|