blob: b41eba899ed025598d3c7ddb8cebcc95da45f9db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
Name: pdfio
Version: 1.6.4
Release: 1%{?dist}
Summary: C library for PDF I/O
# Apache 2.0 with exception - pdfio code
# GPL-2.0-or-later - code128 font from examples
# Zlib - md5 code
# MIT-CMU - rc4 code
# BSD-3-Clause - sha256 code
License: Apache-2.0 WITH LLVM-exception AND Zlib AND GPL-2.0-or-later AND MIT-CMU AND BSD-3-Clause
URL: https://msweet.org/pdfio
Source0: https://github.com/michaelrsweet/pdfio/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source1: https://github.com/michaelrsweet/pdfio/releases/download/v%{version}/%{name}-%{version}.tar.gz.sig
# Mike's public key from here https://www.msweet.org/pgp.html
Source2: msweet-pub.gpg
# Patches
# uses autosetup with git
BuildRequires: git-core
# builds with gcc
BuildRequires: gcc
# for verifying the tarball signature
BuildRequires: gpgverify
# use make for Makefile
BuildRequires: make
# uses pkg-config in SPEC and in configure
BuildRequires: pkgconf-pkg-config
# supports compression
BuildRequires: pkgconfig(zlib)
# for enhanced PNG support
BuildRequires: pkgconfig(libpng16)
%description
PDFIO is C library for reading and writing PDF files. It includes support
for reading and writing encrypted PDF files, accessing pages, objects,
and streams withing PDF file, working with PDF metadata etc.
%package devel
Summary: PDFIO development files
Requires: %{name}%{?_isa} = %{version}-%{release}
Recommends: %{name}-doc = %{version}-%{release}
%description devel
The package contains development files for PDFIO library.
%package doc
Summary: PDFIO documentation
Requires: %{name}-devel = %{version}-%{release}
BuildArch: noarch
%description doc
The package contains HTML documentationfor PDFIO library.
%prep
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -S git
%build
%configure --libdir=%{_libdir} \
--disable-static \
--enable-shared \
--enable-libpng
%make_build
%install
make install
# remove duplicated license
rm %{buildroot}/%{_pkgdocdir}/{LICENSE,NOTICE}
# Drop example (because of fonts)
rm -r %{buildroot}%{_pkgdocdir}/examples
%check
make test
%files
%license LICENSE NOTICE
%{_libdir}/libpdfio.so.1
%files devel
%{_includedir}/pdfio.h
%{_includedir}/pdfio-content.h
%{_libdir}/libpdfio.so
%{_libdir}/pkgconfig/pdfio.pc
%{_mandir}/man3/pdfio.3.gz
%files doc
%dir %{_pkgdocdir}
%{_docdir}/%{name}/pdfio.html
%{_docdir}/%{name}/pdfio-512.png
%changelog
* Wed Jun 17 2026 Remi Collet <remi@remirepo.net> - 1.6.4-1
- update to 1.6.4
- drop examples to avoid pulling google fonts
- move man page to devel
* Tue Jun 16 2026 Remi Collet <remi@remirepo.net> - 1.6.1-1
- rebuild for remirepo
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Wed Jan 14 2026 Zdenek Dohnal <zdohnal@redhat.com> - 1.6.1-1
- Initial import (fedora#2428693)
|