123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273 |
- %global _hardened_build 1
- %bcond_with tools
- Name: libppd
- Summary: Library for retro-fitting legacy printer drivers
- Version: 2.1.1
- Release: 1%{?_dist_release}
- Group: system
- Vendor: Project Vine
- Distribution: Vine Linux
- License: Apache-2.0 WITH LLVM-exception
- URL: https://github.com/OpenPrinting/libppd
- Source0: %{URL}/releases/download/%{version}/%{name}-%{version}.tar.gz
- BuildRequires: autoconf
- BuildRequires: automake
- BuildRequires: gcc
- BuildRequires: gcc-c++
- BuildRequires: gettext-devel
- BuildRequires: ghostscript >= 10.0.0
- BuildRequires: git
- BuildRequires: libtool
- BuildRequires: make
- BuildRequires: pkgconfig
- BuildRequires: pkgconfig(cups) >= 2.2.2
- BuildRequires: libcupsfilters-devel
- BuildRequires: pkgconfig(zlib)
- BuildRequires: poppler-utils
- %if %{without tools}
- Requires: cups
- %else
- Requires: %{name}-tools%{?_isa} = %{version}-%{release}
- %endif
- Requires: ghostscript >= 10.0.0
- Requires: poppler-utils
- %description
- Libppd provides all PPD related function/API which is going
- to be removed from CUPS 3.X, but are still required for retro-fitting
- support of legacy printers. The library is meant only for retro-fitting
- printer applications, any new printer drivers have to be written as
- native printer application without libppd.
- %package devel
- Summary: Development files for %{name}
- Group: programming
- Requires: %{name}%{?_isa} = %{version}-%{release}
- Requires: cups-devel
- Requires: libcupsfilters-devel
- %description devel
- The %{name}-devel package contains libraries and header files for
- developing retro-fitting printer applications.
- %if %{with tools}
- %package tools
- Summary: PPD compiler tools and definition files
- Requires: %{name}%{?_isa} = %{version}-%{release}
- %description tools
- The package contains PPD compiler and definition files needed for generating
- PPD files from *.drv files.
- %endif
- %debug_package
- %prep
- %autosetup -S git -n %{name}-%{version}
- %build
- ./autogen.sh
- %configure\
- --disable-acroread\
- --disable-mutool\
- --disable-rpath\
- --disable-silent-rules\
- --disable-static\
- %if %{with tools}
- --enable-ppdc-utils\
- --enable-testppdfile\
- %else
- --disable-ppdc-utils\
- --disable-testppdfile\
- %endif
- --with-pdftops=hybrid
- sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
- %make_build
- %check
- make check
- %install
- %make_install
- find %{buildroot} -name '*.la' -exec rm -f {} ';'
- rm -f %{buildroot}%{_pkgdocdir}/{LICENSE,NOTICE,COPYING}
- rm -f %{buildroot}%{_pkgdocdir}/INSTALL.md
- rm -f %{buildroot}%{_pkgdocdir}/CHANGES-1.x.md
- %if %{without tools}
- rm -rf %{buildroot}%{_datadir}/ppdc
- %endif
- %{?ldconfig_scriptlets}
- %files
- %license LICENSE NOTICE COPYING
- %doc ABOUT-NLS AUTHORS CHANGES.md README.md
- %{_libdir}/libppd.so.2*
- %files devel
- %{_docdir}/%{name}/CONTRIBUTING.md
- %{_docdir}/%{name}/DEVELOPING.md
- %dir %{_includedir}/ppd
- %{_includedir}/ppd/ppd-filter.h
- %{_includedir}/ppd/ppdc.h
- %{_includedir}/ppd/ppd.h
- %{_libdir}/libppd.so
- %{_libdir}/pkgconfig/libppd.pc
- %if %{with tools}
- %files tools
- %{_bindir}/ppdc
- %{_bindir}/ppdhtml
- %{_bindir}/ppdi
- %{_bindir}/ppdmerge
- %{_bindir}/ppdpo
- %{_bindir}/testppdfile
- %dir %{_datadir}/ppdc/
- %{_datadir}/ppdc/epson.h
- %{_datadir}/ppdc/font.defs
- %{_datadir}/ppdc/hp.h
- %{_datadir}/ppdc/label.h
- %{_datadir}/ppdc/media.defs
- %{_datadir}/ppdc/raster.defs
- %endif
- %changelog
- * Wed Feb 19 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.1.1-1
- - new upstream release.
- * Wed Oct 23 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.1.0-1
- - new upstream release.
- * Fri Oct 04 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.1~b1-3
- - initial build for Vine Linux.
- * Thu Sep 26 2024 Justin M. Forbes <jforbes@fedoraproject.org> - 1:2.1~b1-2
- - Fix for CVE-2024-47175
- * Thu Aug 15 2024 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.1~b1-1
- - 2305073 - libppd-2.1b1 is available
- * Tue Aug 06 2024 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0.0-6
- - fix deciding page sizes by changing delta for difference
- * Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.0-5
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
- * Fri Feb 16 2024 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0.0-4
- - 2263053 - CUPS/libppd PPD generators didn't check required attrs when deciding which driverless format to use,
- causing PPD generation to fail
- * Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.0-3
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
- * Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.0-2
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
- * Thu Oct 19 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0.0-1
- - 2240389 - libppd-2.0.0 is available
- * Wed Sep 20 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0~rc2-4
- - CVE-2023-4504 libppd: Postscript Parsing Heap Overflow
- * Tue Aug 08 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0~rc2-3
- - fix printing for PDF+PJL drivers
- * Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0~rc2-2
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
- * Wed Jun 28 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0~rc2-1
- - 2216565 - libppd-2.0b4 is available
- * Wed May 31 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0~rc1-3
- - fix printing for printers with reverse output order
- - fix printing resolutions
- * Mon May 29 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0~rc1-2
- - 2192912 - [Utax, Kyocera, Brother] pdftops hacks are not applied due missing manufacturer in printer-make-and-model
- * Thu Apr 27 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0~rc1-1
- - 2.0rc1
- * Wed Mar 15 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0~b4-2
- - fix printing images to Postscript printers
- * Wed Mar 01 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0~b4-1
- - 2.0b4
- - introduce Epoch because I didn't read FPG carefully...
- * Mon Feb 20 2023 Zdenek Dohnal <zdohnal@redhat.com> - 2.0b3-4
- - rebuilt with required cups
- * Thu Feb 16 2023 Zdenek Dohnal <zdohnal@redhat.com> - 2.0b3-3
- - don't use bootstrap for now - koji doesn't seem to see it...
- * Thu Feb 16 2023 Zdenek Dohnal <zdohnal@redhat.com> - 2.0b3-2
- - bootstrap cups to prevent conflicts for now
- * Wed Feb 01 2023 Zdenek Dohnal <zdohnal@redhat.com> - 2.0b3-1
- - Initial import
|