source: projects/specs/trunk/q/qpdf/qpdf-vl.spec @ 8114

Revision 8114, 4.5 KB checked in by tomop, 10 years ago (diff)

qpdf-5.1.0-2

Line 
1Summary: Command-line tools and library for transforming PDF files
2Name:    qpdf
3Version: 5.1.0
4Release: 2%{?_dist_release}
5# MIT: e.g. libqpdf/sha2.c
6License: Artistic 2.0 and MIT
7Group:   System Environment/Base
8URL:     http://qpdf.sourceforge.net/
9Source0: http://downloads.sourceforge.net/sourceforge/qpdf/qpdf-%{version}.tar.gz
10
11Patch0:  qpdf-doc.patch
12
13BuildRequires: zlib-devel
14BuildRequires: pcre-devel
15
16# for fix-qdf and test suite
17BuildRequires: perl
18BuildRequires: perl(Digest::MD5)
19
20# for autoreconf
21BuildRequires: autoconf
22BuildRequires: automake
23BuildRequires: libtool
24
25Requires: qpdf-libs%{?_isa} = %{version}-%{release}
26
27Vendor: Project Vine
28Distribution: Vine Linux
29Packager: tomop
30
31%package libs
32Summary: QPDF library for transforming PDF files
33Group:   System Environment/Libraries
34
35%package devel
36Summary: Development files for QPDF library
37Group:   Development/Libraries
38Requires: qpdf-libs%{?_isa} = %{version}-%{release}
39
40%package doc
41Summary: QPDF Manual
42Group:   Documentation
43BuildArch: noarch
44Requires: qpdf-libs = %{version}-%{release}
45
46%description
47QPDF is a command-line program that does structural, content-preserving
48transformations on PDF files. It could have been called something
49like pdf-to-pdf. It includes support for merging and splitting PDFs
50and to manipulate the list of pages in a PDF file. It is not a PDF viewer
51or a program capable of converting PDF into other formats.
52
53%description libs
54QPDF is a C++ library that inspect and manipulate the structure of PDF files.
55It can encrypt and linearize files, expose the internals of a PDF file,
56and do many other operations useful to PDF developers.
57
58%description devel
59Header files and libraries necessary
60for developing programs using the QPDF library.
61
62%description doc
63QPDF Manual
64
65%prep
66%setup -q
67
68# fix 'complete manual location' note in man pages
69%patch0 -p1 -b .doc
70
71sed -i -e '1s,^#!/usr/bin/env perl,#!/usr/bin/perl,' qpdf/fix-qdf
72
73%build
74# work-around check-rpaths errors
75autoreconf --verbose --force --install
76
77%configure --disable-static \
78           --enable-show-failed-test-output
79
80make %{?_smp_mflags}
81
82%install
83make install DESTDIR=%{buildroot}
84
85# https://fedoraproject.org/wiki/Packaging_tricks#With_.25doc
86mkdir __doc
87mv  %{buildroot}%{_datadir}/doc/qpdf/* __doc
88rm -rf %{buildroot}%{_datadir}/doc/qpdf
89
90rm -f %{buildroot}%{_libdir}/libqpdf.la
91
92%check
93make 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
Note: See TracBrowser for help on using the repository browser.