123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263 |
- %global _hardened_build 1
- Name: libcupsfilters
- Version: 2.1.0
- Release: 1%{?_dist_release}
- Summary: Library for developing printing filters
- Group: system
- Vendor: Project Vine
- Distribution: Vine Linux
- # the CUPS exception text is the same as LLVM exception, so using that name with
- # agreement from legal team
- # https://lists.fedoraproject.org/archives/list/legal@lists.fedoraproject.org/message/A7GFSD6M3GYGSI32L2FC5KB22DUAEQI3/
- License: Apache-2.0 WITH LLVM-exception
- URL: https://github.com/OpenPrinting/libcupsfilters
- Source0: %{URL}/releases/download/%{version}/%{name}-%{version}.tar.gz
- # Patches
- # none
- # for generating configure and Makefile scripts in autogen.h
- BuildRequires: autoconf
- # for generating configure and Makefile scripts in autogen.h
- BuildRequires: automake
- # font for test script
- BuildRequires: TrueType-dejavu
- # most filter functions written in C
- BuildRequires: gcc
- # pdftopdf written in C++
- BuildRequires: gcc-c++
- # for generating configure and Makefile scripts in autogen.h
- BuildRequires: gettext-devel
- # we use gs binary in filter functions, so it could be only runtime
- # require, but there is a check in configure, which turns off GS
- # support in case the binary is not found, so the binary has to be in
- # buildroot
- BuildRequires: ghostscript >= 10.0.0
- # for autosetup
- BuildRequires: git
- # for generating configure and Makefile scripts in autogen.h
- BuildRequires: libtool
- # uses Makefiles
- BuildRequires: make
- # for pkg-config in configure and in SPEC file
- BuildRequires: pkgconfig
- # CUPS and IPP API functions
- BuildRequires: pkgconfig(cups)
- # for communication with colord
- BuildRequires: pkgconfig(dbus-1)
- # font support - configuration and customization
- BuildRequires: pkgconfig(fontconfig)
- # color management engine in rastering filter functions
- BuildRequires: pkgconfig(lcms2)
- # used for getting image resolution from images - they have
- # EXIF data in them and library accesses it
- BuildRequires: pkgconfig(libexif)
- # for jpeg file format support
- BuildRequires: pkgconfig(libjpeg)
- # for png file format support
- BuildRequires: pkgconfig(libpng)
- # for pdf filter functions
- BuildRequires: pkgconfig(libqpdf) >= 10.3.2
- # for tiff image support
- BuildRequires: pkgconfig(libtiff-4)
- # for pdftoraster filter
- BuildRequires: pkgconfig(poppler-cpp)
- # remove once CentOS Stream 10 is released
- #Obsoletes: cups-filters-libs < 2.0
- # have a fallback for fonts in texttopdf filter function (bz#1070729)
- # but make it weak, so other monospace font can be used if requested
- Recommends: liberation-mono-fonts
- # we communicate with colord regarding color profiles
- Requires: colord
- # for directory ownership of:
- # /usr/share/cups
- # /usr/share/cups/data
- Requires: cups
- # we call gs command in filter functions
- Requires: ghostscript >= 10.0.0
- %description
- Libcupsfilters provides a library, which implements common functions used
- in cups-browsed daemon and printing filters, and additional files
- as banner templates and character sets. The filters are used in CUPS daemon
- and in printer applications.
- %package devel
- Summary: Development files for libcupsfilters
- Group: programming
- # remove once CentOS Stream 10 is released
- Conflicts: cups-filters-devel{?_isa} < 2.0
- # remove once CentOS Stream 10 is released
- Obsoletes: cups-filters-devel < 2.0
- # c2esp and perl-Net-CUPS requires cups-filters-devel
- # remove once CentOS Stream 10 is released
- Provides: cups-filters-devel = %{version}-%{release}
- Requires: %{name}%{?_isa} = %{version}-%{release}
- %description devel
- Development files for OpenPrinting cupsfilters library.
- %debug_package
- %prep
- %autosetup -S git -n %{name}-%{version}
- %build
- # to get configure script
- ./autogen.sh
- %configure --disable-mutool\
- --disable-rpath\
- --disable-silent-rules\
- --disable-static\
- --enable-dbus
- # fix rpmlint error about linking to libraries, but not actually using their functions
- # it happens when the required libraries uses pkgconfig - pkgconfig file doesn't know
- # which specific functions our binary calls, so it tells us to link against every
- # possibilities
- # https://fedoraproject.org/wiki/Common_Rpmlint_issues#unused-direct-shlib-dependency
- 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 {} ';'
- mkdir -p %{buildroot}%{_pkgdocdir}/fontembed/
- install -p -m 0644 cupsfilters/fontembed/README %{buildroot}%{_pkgdocdir}/fontembed/README
- # remove .odt files (we have their .pdf versions)
- rm -f %{buildroot}%{_datadir}/cups/data/*.odt
- # remove redundant files
- rm -f %{buildroot}%{_pkgdocdir}/{INSTALL.md,ABOUT-NLS}
- # license related files are already under /usr/share/licenses
- rm -f %{buildroot}%{_pkgdocdir}/{LICENSE,COPYING,NOTICE}
- %{?ldconfig_scriptlets}
- %files
- %license COPYING LICENSE NOTICE
- %dir %{_datadir}/cups
- %dir %{_datadir}/cups/banners
- %{_datadir}/cups/banners/classified
- %{_datadir}/cups/banners/confidential
- %{_datadir}/cups/banners/form
- %{_datadir}/cups/banners/secret
- %{_datadir}/cups/banners/standard
- %{_datadir}/cups/banners/topsecret
- %{_datadir}/cups/banners/unclassified
- %dir %{_datadir}/cups/charsets
- %{_datadir}/cups/charsets/pdf.utf-8
- %{_datadir}/cups/charsets/pdf.utf-8.heavy
- %{_datadir}/cups/charsets/pdf.utf-8.simple
- %{_datadir}/cups/data/classified.pdf
- %{_datadir}/cups/data/confidential.pdf
- %{_datadir}/cups/data/default-testpage.pdf
- %{_datadir}/cups/data/default.pdf
- %{_datadir}/cups/data/form_english.pdf
- %{_datadir}/cups/data/form_russian.pdf
- %{_datadir}/cups/data/secret.pdf
- %{_datadir}/cups/data/standard.pdf
- %{_datadir}/cups/data/testprint
- %{_datadir}/cups/data/topsecret.pdf
- %{_datadir}/cups/data/unclassified.pdf
- %doc AUTHORS CHANGES.md CHANGES-1.x.md README.md
- %dir %{_docdir}/%{name}/fontembed
- %{_docdir}/%{name}/fontembed/README
- %{_libdir}/libcupsfilters.so.2*
- %files devel
- %{_docdir}/%{name}/CONTRIBUTING.md
- %{_docdir}/%{name}/DEVELOPING.md
- %dir %{_includedir}/cupsfilters
- %{_includedir}/cupsfilters/*
- %{_libdir}/libcupsfilters.so
- %{_libdir}/pkgconfig/libcupsfilters.pc
- %changelog
- * Sat Oct 19 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-4
- - initial build for Vine Linux.
- * Thu Sep 26 2024 Justin M. Forbes <jforbes@fedoraproject.org> - 1:2.1~b1-3
- - Fix for CVE-2024-47076
- * Thu Aug 22 2024 Marek Kasik <mkasik@redhat.com> - 1:2.1~b1-2
- - Rebuild for poppler 24.08.0
- * Thu Aug 15 2024 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.1~b1-1
- - 2305074 - libcupsfilters-2.1b1 is available
- * Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.0-8
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
- * Mon Mar 11 2024 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0.0-7
- - 2266609 - fix color printing via URF to driverless printer
- * Tue Feb 20 2024 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0.0-6
- - fix several issues reported in upstream
- * Mon Jan 29 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.0-5
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
- * Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.0-4
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
- * Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.0-3
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
- * Thu Oct 19 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0.0-2
- - rebuilt for side-tag with libppd
- * Tue Oct 03 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0.0-1
- - 2240388 - libcupsfilters-2.0.0 is available
- * 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
- - 2.0rc2
- * Wed Apr 19 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0~rc1-1
- - 2.0rc1
- * Wed Mar 01 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0~b4-1
- - (fedora#2173137) - libcupsfilters-2.0b4 is available
- - introduce Epoch because I'm not careful reader of FPG...
- * Mon Feb 20 2023 Zdenek Dohnal <zdohnal@redhat.com> - 2.0b3-4
- - rebuilt with obsoletes
- - fix define in image-png.c to enable PNG support
- * Mon Feb 20 2023 Zdenek Dohnal <zdohnal@redhat.com> - 2.0b3-3
- - fix double free caused by coverity fix
- * Wed Feb 15 2023 Zdenek Dohnal <zdohnal@redhat.com> - 2.0b3-2
- - remove Obsoletes for now
- * Tue Jan 31 2023 Zdenek Dohnal <zdohnal@redhat.com> - 2.0b3-1
- - Initial import
|