diff options
Diffstat (limited to 'pdfio.spec')
| -rw-r--r-- | pdfio.spec | 40 |
1 files changed, 12 insertions, 28 deletions
@@ -1,5 +1,5 @@ Name: pdfio -Version: 1.6.1 +Version: 1.6.4 Release: 1%{?dist} Summary: C library for PDF I/O # Apache 2.0 with exception - pdfio code @@ -39,22 +39,20 @@ 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 and examples +Summary: PDFIO development files Requires: %{name}%{?_isa} = %{version}-%{release} Recommends: %{name}-doc = %{version}-%{release} -# uses Roboto fonts in examples - use requires instead of bundling them -Recommends: google-roboto-fonts -Recommends: google-roboto-mono-fonts %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 documentation and man page for PDFIO library. +The package contains HTML documentationfor PDFIO library. %prep @@ -76,23 +74,9 @@ make install # remove duplicated license rm %{buildroot}/%{_pkgdocdir}/{LICENSE,NOTICE} -# copy the font licenses into correct license dir and remove the files -# in the old location -cp -p %{buildroot}%{_pkgdocdir}/examples/code128-LICENSE.txt . -rm %{buildroot}%{_pkgdocdir}/examples/*LICENSE* -# copy the examples to -devel -mkdir -p %{buildroot}%{_docdir}/%{name}-devel -cp -pr %{buildroot}%{_pkgdocdir}/examples/ %{buildroot}%{_docdir}/%{name}-devel -rm -rf %{buildroot}%{_pkgdocdir}/examples/ - -# make symlink for big fonts which are already packaged in Fedora -for font in Roboto-Bold.ttf Roboto-Italic.ttf Roboto-Regular.ttf -do - ln -sf ../../../fonts/google-roboto/$font %{buildroot}%{_docdir}/%{name}-devel/examples/$font -done - -ln -sf ../../../fonts/google-roboto-mono-fonts/RobotoMono-Regular.ttf %{buildroot}%{_docdir}/%{name}-devel/examples/RobotoMono-Regular.ttf +# Drop example (because of fonts) +rm -r %{buildroot}%{_pkgdocdir}/examples %check @@ -104,24 +88,24 @@ make test %{_libdir}/libpdfio.so.1 %files devel -%license code128-LICENSE.txt -# TrueType fonts, C source files, docs -# for examples -%dir %{_docdir}/%{name}-devel -%{_docdir}/%{name}-devel/examples %{_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 -%{_mandir}/man3/pdfio.3.gz %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 |
