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