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 - 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 - 1.6.1-1 - rebuild for remirepo * Fri Jan 16 2026 Fedora Release Engineering - 1.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Wed Jan 14 2026 Zdenek Dohnal - 1.6.1-1 - Initial import (fedora#2428693)