[packages/pdfio] - new

qboosh qboosh at pld-linux.org
Fri Apr 24 17:17:47 CEST 2026


commit 03f0c0ea92098b6480d17e82aae53208a757a237
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Apr 24 17:18:18 2026 +0200

    - new

 pdfio.spec | 123 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 123 insertions(+)
---
diff --git a/pdfio.spec b/pdfio.spec
new file mode 100644
index 0000000..f82a0d9
--- /dev/null
+++ b/pdfio.spec
@@ -0,0 +1,123 @@
+#
+# Conditional build:
+%bcond_without	static_libs	# static libraries
+#
+Summary:	PDF read/write library
+Summary(pl.UTF-8):	Biblioteka do odczytu i zapisu PDF
+Name:		pdfio
+Version:	1.6.2
+Release:	1
+License:	Apache v2.0
+Group:		Libraries
+#Source0Download: https://github.com/michaelrsweet/pdfio/releases
+Source0:	https://github.com/michaelrsweet/pdfio/releases/download/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	a1eec2a957ba408c84a24485accd9c89
+URL:		https://www.msweet.org/pdfio/
+BuildRequires:	gcc >= 5:3.2
+BuildRequires:	libpng-devel >= 1.6
+BuildRequires:	pkgconfig
+BuildRequires:	zlib-devel >= 1.1
+Requires:	zlib >= 1.1
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+PDFio is a simple C library for reading and writing PDF files. The
+primary goals of PDFio are:
+- Read and write any version of PDF file
+- Provide access to pages, objects, and streams within a PDF file
+- Support reading and writing of encrypted PDF files
+- Extract or embed useful metadata (author, creator, page information,
+  etc.)
+- "Filter" PDF files, for example to extract a range of pages or to
+  embed fonts that are missing from a PDF
+- Provide access to objects used for each page
+
+PDFio is not concerned with rendering or viewing a PDF file, although
+a PDF RIP or viewer could be written using it.
+
+%description -l pl.UTF-8
+PDFio to prosta biblioteka C do odczytu i zapisu plików PDF. Główne
+jej cele to:
+- odczyt i zapis plików PDF w dowolnej wersji
+- zapewnienie dostępu do stron, obiektów i strumieni w pliku PDF
+- obsługa odzytu i zapisu szyfrowanych plików PDF
+- wydobywanie lub osadzanie przydatnych metadanych (autor, twórca,
+  informacje o stronie itp.)
+- "filtrowanie" plików PDF, na przykład wydobywanie przedziału stron
+  lub osadzanie fontów brakujących w pliku
+- zapewnienie dostępu do obiektów używanych dla każdej strony
+
+PDFio nie obejmuje zadań takich jak renderowanie czy przeglądarnie
+pliku PDF, ale przy jej użyciu można napisać ripper albu przxeglądarkę
+PDF.
+
+%package devel
+Summary:	Header files for PDFio library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki PDFio
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	libpng-devel >= 1.6
+Requires:	zlib-devel >= 1.1
+
+%description devel
+Header files for PDFio library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki PDFio.
+
+%package static
+Summary:	Static PDFio library
+Summary(pl.UTF-8):	Statyczna biblioteka PDFio
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static PDFio library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka PDFio.
+
+%prep
+%setup -q
+
+%build
+%configure \
+	--enable-shared \
+	%{!?with_static_libs:--disable-static}
+
+# --debug=p to override .SILENT
+# OPTIM not to override our flags with -Os
+%{__make} \
+	--debug=p \
+	OPTIM=
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	RPM_BUILD_ROOT=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.md NOTICE README.md SECURITY.md
+%{_libdir}/libpdfio.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/libpdfio.so
+%{_includedir}/pdfio.h
+%{_includedir}/pdfio-content.h
+%{_pkgconfigdir}/pdfio.pc
+%{_mandir}/man3/pdfio.3*
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libpdfio.a
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pdfio.git/commitdiff/03f0c0ea92098b6480d17e82aae53208a757a237



More information about the pld-cvs-commit mailing list