|
|
|
@ -1,51 +1,96 @@
|
|
|
|
|
#%%global prever pre2
|
|
|
|
|
#%%global ver %%{version}-%%{prever}
|
|
|
|
|
|
|
|
|
|
# change with every change of major or minor version number
|
|
|
|
|
#%%global majminver 5.3
|
|
|
|
|
%global majminver $(echo %{version} | sed -E 's/\.[0-9]+$//')
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} <= 8 || 0%{?fedora}
|
|
|
|
|
%bcond_without plugin
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with plugin
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} <= 9 || 0%{?fedora}
|
|
|
|
|
%bcond_without gtk2
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with gtk2
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# added in cups-1:2.4.7-3 - remove once F40 is EOL and C10S is released
|
|
|
|
|
# (that's the safe bet for versions where macros will be always available)
|
|
|
|
|
%{!?_cups_datadir:%global _cups_datadir %(/usr/bin/pkg-config --variable=cups_datadir cups)}
|
|
|
|
|
%{!?_cups_serverroot:%global _cups_serverroot %(/usr/bin/pkg-config --variable=cups_serverroot cups)}
|
|
|
|
|
|
|
|
|
|
Name: gutenprint
|
|
|
|
|
Summary: Printer Drivers Package
|
|
|
|
|
Version: 5.3.4
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Release: 18%{?dist}
|
|
|
|
|
URL: http://gimp-print.sourceforge.net/
|
|
|
|
|
Source0: http://downloads.sourceforge.net/gimp-print/%{name}-%{version}.tar.xz
|
|
|
|
|
# Post-install script to update CUPS native PPDs.
|
|
|
|
|
Source1: cups-genppdupdate.py.in
|
|
|
|
|
# ported from old gimp-print package - fix for a menu in gimp gutenprint plugin
|
|
|
|
|
Patch0: gutenprint-menu.patch
|
|
|
|
|
Patch3: gutenprint-postscriptdriver.patch
|
|
|
|
|
Patch4: gutenprint-yyin.patch
|
|
|
|
|
Patch5: gutenprint-manpage.patch
|
|
|
|
|
Patch6: gutenprint-python36syntax.patch
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
Patch1: gutenprint-postscriptdriver.patch
|
|
|
|
|
Patch2: gutenprint-yyin.patch
|
|
|
|
|
Patch3: gutenprint-manpage.patch
|
|
|
|
|
Patch4: gutenprint-python36syntax.patch
|
|
|
|
|
Patch5: gutenprint-xmlfixes.patch
|
|
|
|
|
Patch6: gutenprint-libusb-crash.patch
|
|
|
|
|
Patch7: gutenprint-c99.patch
|
|
|
|
|
License: GPL-2.0-or-later AND LGPL-2.0-or-later AND MIT AND GPL-3.0-or-later WITH Bison-exception-2.2
|
|
|
|
|
|
|
|
|
|
#### removed patches, because the seems useless
|
|
|
|
|
# I'll leave them here, in case its removal will break something
|
|
|
|
|
#Patch1: gutenprint-O6.patch
|
|
|
|
|
#Patch2: gutenprint-selinux.patch
|
|
|
|
|
|
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
# autoreconf
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
# we remove rpath during %%install
|
|
|
|
|
BuildRequires: chrpath
|
|
|
|
|
# we use CUPS functions in CUPS driver
|
|
|
|
|
BuildRequires: cups
|
|
|
|
|
BuildRequires: cups-devel
|
|
|
|
|
BuildRequires: cups-libs
|
|
|
|
|
# gcc is no longer in buildroot by default
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
# for language support
|
|
|
|
|
BuildRequires: gettext-devel
|
|
|
|
|
# for JPEG, PNG and TIFF file format support
|
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
|
# for autoreconf
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
# uses make
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: cups-libs, cups-devel, cups
|
|
|
|
|
BuildRequires: gettext-devel,pkgconfig
|
|
|
|
|
BuildRequires: libtiff-devel,libjpeg-devel,libpng-devel
|
|
|
|
|
BuildRequires: pkgconfig(libusb-1.0)
|
|
|
|
|
BuildRequires: pkgconfig(gtk+-2.0)
|
|
|
|
|
%if 0%{?rhel} <= 8 || 0%{?fedora}
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
# we use pkgconfig in spec file to get correct devel packages
|
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
# for gutenprint usb backend gutenprintMAJMIN+usb
|
|
|
|
|
BuildRequires: pkgconfig(libusb-1.0)
|
|
|
|
|
# Make sure we get postscriptdriver tags - for automatic driver installation
|
|
|
|
|
# via PackageKit.
|
|
|
|
|
BuildRequires: python3-cups
|
|
|
|
|
# needed for defining %%{__python3} macro for prep phase
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
# we use sed in spec file to get majorver.minver string, which is used in directory
|
|
|
|
|
# structure
|
|
|
|
|
BuildRequires: sed
|
|
|
|
|
|
|
|
|
|
# the plugin is built only in Fedora, so
|
|
|
|
|
# no need gimp devel files for its ui
|
|
|
|
|
%if %{with plugin}
|
|
|
|
|
BuildRequires: pkgconfig(gimpui-2.0)
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: chrpath
|
|
|
|
|
|
|
|
|
|
# Make sure we get postscriptdriver tags.
|
|
|
|
|
BuildRequires: python3-cups
|
|
|
|
|
|
|
|
|
|
# autoreconf
|
|
|
|
|
BuildRequires: autoconf automake libtool
|
|
|
|
|
%if %{with gtk2}
|
|
|
|
|
# gutenprint library uses functions from GTK2 for gutenprint UI library
|
|
|
|
|
BuildRequires: pkgconfig(gtk+-2.0)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# needed for defining %%{__python3} macro for prep phase
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
# escputil uses lp for sending raw print commands to the printer...
|
|
|
|
|
Requires: cups-client%{?_isa}
|
|
|
|
|
|
|
|
|
|
## NOTE ##
|
|
|
|
|
# The README file in this package contains suggestions from upstream
|
|
|
|
@ -69,24 +114,30 @@ Summary: libgutenprint library
|
|
|
|
|
%description libs
|
|
|
|
|
This package includes libgutenprint library, necessary to run gutenprint.
|
|
|
|
|
|
|
|
|
|
%if %{with gtk2}
|
|
|
|
|
%package libs-ui
|
|
|
|
|
Summary: libgutenprintui2 library
|
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
# function in the library tries to figure out local printing system by checking for lp binary
|
|
|
|
|
Requires: cups-client%{?_isa}
|
|
|
|
|
|
|
|
|
|
%description libs-ui
|
|
|
|
|
This package includes libgutenprintui2 library, which contains
|
|
|
|
|
GTK+ widgets, which may be used for print dialogs etc.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Library development files for gutenprint
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
%if %{with gtk2}
|
|
|
|
|
Requires: gtk2-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package contains headers and libraries required to build applications that
|
|
|
|
|
uses gutenprint package.
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} <= 8 || 0%{?fedora}
|
|
|
|
|
%if %{with plugin}
|
|
|
|
|
%package plugin
|
|
|
|
|
Summary: GIMP plug-in for gutenprint
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
@ -108,6 +159,9 @@ that is used by gutenprint-devel package.
|
|
|
|
|
Summary: CUPS drivers for Canon, Epson, HP and compatible printers
|
|
|
|
|
Requires: cups
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
# for cups-genppdupdate python script
|
|
|
|
|
Requires: python3
|
|
|
|
|
Requires: python3-charset-normalizer
|
|
|
|
|
|
|
|
|
|
%description cups
|
|
|
|
|
This package contains native CUPS support for a wide range of Canon,
|
|
|
|
@ -116,18 +170,13 @@ Epson, HP and compatible printers.
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
|
# Fix menu placement of GIMP plugin.
|
|
|
|
|
%patch0 -p1 -b .menu
|
|
|
|
|
# Don't use -O6 compiler option.
|
|
|
|
|
#%%patch1 -p1 -b .O6
|
|
|
|
|
# Restore file contexts when updating PPDs.
|
|
|
|
|
#%%patch2 -p1 -b .selinux
|
|
|
|
|
%patch -P 0 -p1 -b .menu
|
|
|
|
|
# Allow the CUPS dynamic driver to run inside a build root.
|
|
|
|
|
%patch3 -p1 -b .postscriptdriver
|
|
|
|
|
%patch -P 1 -p1 -b .postscriptdriver
|
|
|
|
|
# Don't export yy* symbols (bug #882194).
|
|
|
|
|
%patch4 -p1 -b .yyin
|
|
|
|
|
|
|
|
|
|
%patch -P 2 -p1 -b .yyin
|
|
|
|
|
# Added some escputil options to the manpage (bug #979064).
|
|
|
|
|
%patch5 -p1 -b .manpage
|
|
|
|
|
%patch -P 3 -p1 -b .manpage
|
|
|
|
|
|
|
|
|
|
cp %{SOURCE1} src/cups/cups-genppdupdate.in
|
|
|
|
|
|
|
|
|
@ -135,21 +184,30 @@ cp %{SOURCE1} src/cups/cups-genppdupdate.in
|
|
|
|
|
sed -i -e 's,^#!/usr/bin/python3,#!%{__python3},' src/cups/cups-genppdupdate.in
|
|
|
|
|
|
|
|
|
|
# Python 3.6 invalid escape sequence deprecation fixes, COPYING as license (bug #1448303)
|
|
|
|
|
%patch6 -p1 -b .python36syntax
|
|
|
|
|
%patch -P 4 -p1 -b .python36syntax
|
|
|
|
|
# fix xml error reported by rpminspect, sent upstream via email
|
|
|
|
|
%patch -P 5 -p1 -b .xmlfixes
|
|
|
|
|
# 2055504 - Set gutenprint53+usb backend to use the default USB context
|
|
|
|
|
%patch -P 6 -p1 -b .crash
|
|
|
|
|
|
|
|
|
|
%patch -P 7 -p1 -b .c99
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# Don't run the weave test as it takes a very long time.
|
|
|
|
|
sed -i -e 's,^\(TESTS *=.*\) run-weavetest,\1,' test/Makefile.in
|
|
|
|
|
|
|
|
|
|
%configure --disable-dependency-tracking \
|
|
|
|
|
--disable-static \
|
|
|
|
|
--enable-samples \
|
|
|
|
|
--enable-escputil \
|
|
|
|
|
--enable-test \
|
|
|
|
|
--disable-rpath \
|
|
|
|
|
--enable-cups-1_2-enhancements \
|
|
|
|
|
--disable-cups-ppds \
|
|
|
|
|
--enable-simplified-cups-ppds
|
|
|
|
|
--disable-static \
|
|
|
|
|
--enable-samples \
|
|
|
|
|
--enable-escputil \
|
|
|
|
|
--enable-test \
|
|
|
|
|
--disable-rpath \
|
|
|
|
|
--enable-cups-1_2-enhancements \
|
|
|
|
|
--disable-cups-ppds \
|
|
|
|
|
%if %{without gtk2}
|
|
|
|
|
--disable-libgutenprintui2 \
|
|
|
|
|
%endif
|
|
|
|
|
--enable-simplified-cups-ppds
|
|
|
|
|
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
@ -164,8 +222,9 @@ mkdir -p %{buildroot}%{_sbindir}
|
|
|
|
|
|
|
|
|
|
rm -rf %{buildroot}%{_datadir}/gutenprint/doc
|
|
|
|
|
rm -f %{buildroot}%{_datadir}/foomatic/kitload.log
|
|
|
|
|
rm -rf %{buildroot}%{_libdir}/gutenprint/5.2/modules/*.la
|
|
|
|
|
rm -f %{buildroot}%{_sysconfdir}/cups/command.types
|
|
|
|
|
|
|
|
|
|
rm -rf %{buildroot}%{_libdir}/gutenprint/%{majminver}/modules/*.la
|
|
|
|
|
rm -f %{buildroot}%{_cups_serverroot}/command.types
|
|
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
sed 's!%{_datadir}/locale/\([^/]*\)/LC_MESSAGES/gutenprint.mo!%{_datadir}/locale/\1/gutenprint_\1.po!g' %{name}.lang >%{name}-po.lang
|
|
|
|
@ -178,8 +237,8 @@ cat %{name}-po.lang >>%{name}.lang
|
|
|
|
|
# Fix up rpath. If you can find a way to do this without resorting
|
|
|
|
|
# to chrpath, please let me know!
|
|
|
|
|
for file in \
|
|
|
|
|
%{buildroot}%{_sbindir}/cups-genppd.5.3 \
|
|
|
|
|
%if 0%{?rhel} <= 8 || 0%{?fedora}
|
|
|
|
|
%{buildroot}%{_sbindir}/cups-genppd.%{majminver} \
|
|
|
|
|
%if %{with plugin}
|
|
|
|
|
%{buildroot}%{_libdir}/gimp/*/plug-ins/* \
|
|
|
|
|
%endif
|
|
|
|
|
%{buildroot}%{_libdir}/*.so.* \
|
|
|
|
@ -190,7 +249,7 @@ do
|
|
|
|
|
chrpath --delete ${file}
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} > 8
|
|
|
|
|
%if %{without plugin}
|
|
|
|
|
%{_bindir}/rm -f %{buildroot}%{_bindir}/testpattern \
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -218,21 +277,26 @@ exit 0
|
|
|
|
|
%{_libdir}/libgutenprint.so.9
|
|
|
|
|
%{_libdir}/libgutenprint.so.9.5.0
|
|
|
|
|
|
|
|
|
|
%if %{with gtk2}
|
|
|
|
|
%files libs-ui
|
|
|
|
|
%{_libdir}/libgutenprintui2.so.2
|
|
|
|
|
%{_libdir}/libgutenprintui2.so.2.5.0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%doc ChangeLog doc/developer/reference-html doc/developer/gutenprint.pdf
|
|
|
|
|
%doc doc/gutenprint doc/gutenprintui2
|
|
|
|
|
%doc doc/gutenprint
|
|
|
|
|
%{_includedir}/gutenprint/
|
|
|
|
|
%{_includedir}/gutenprintui2/
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_libdir}/pkgconfig/gutenprint.pc
|
|
|
|
|
%{_libdir}/pkgconfig/gutenprintui2.pc
|
|
|
|
|
%exclude %{_libdir}/*.la
|
|
|
|
|
%if %{with gtk2}
|
|
|
|
|
%doc doc/gutenprintui2
|
|
|
|
|
%{_includedir}/gutenprintui2/
|
|
|
|
|
%{_libdir}/pkgconfig/gutenprintui2.pc
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} <= 8 || 0%{?fedora}
|
|
|
|
|
%if %{with plugin}
|
|
|
|
|
%files plugin
|
|
|
|
|
%{_libdir}/gimp/*/plug-ins/gutenprint
|
|
|
|
|
|
|
|
|
@ -244,8 +308,8 @@ exit 0
|
|
|
|
|
|
|
|
|
|
%files cups
|
|
|
|
|
%doc
|
|
|
|
|
%{_datadir}/cups/calibrate.ppm
|
|
|
|
|
%{_datadir}/cups/usb/net.sf.gimp-print.usb-quirks
|
|
|
|
|
%{_cups_datadir}/calibrate.ppm
|
|
|
|
|
%{_cups_datadir}/usb/net.sf.gimp-print.usb-quirks
|
|
|
|
|
%{_cups_serverbin}/filter/*
|
|
|
|
|
%{_cups_serverbin}/driver/*
|
|
|
|
|
%{_cups_serverbin}/backend/*
|
|
|
|
@ -255,12 +319,58 @@ exit 0
|
|
|
|
|
%{_mandir}/man8/cups-genppd*8*.gz
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 5.3.4-4
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 5.3.4-18
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 5.3.4-17
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.4-16
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.4-15
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 03 2024 Florian Weimer <fweimer@redhat.com> - 5.3.4-14
|
|
|
|
|
- Backport upstream patch to fix C compatibility issue
|
|
|
|
|
|
|
|
|
|
* Thu Nov 16 2023 Zdenek Dohnal <zdohnal@redhat.com> - 5.3.4-13
|
|
|
|
|
- make gutenprint and gutenprint-libs-ui dependant on cups-client - both checks for existence of lp
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.4-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 06 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 5.3.4-11
|
|
|
|
|
- Replace python3-chardet with python3-charset-normalizer
|
|
|
|
|
|
|
|
|
|
* Wed Apr 05 2023 Zdenek Dohnal <zdohnal@redhat.com> - 5.3.4-11
|
|
|
|
|
- GTK2 is not in CentOS Stream 10, dont ship libs-ui subpackage there
|
|
|
|
|
- Add other licenses to License tag and use SPDX identifiers to comply with FPG
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.4-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.4-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Mar 28 2022 Zdenek Dohnal <zdohnal@redhat.com> - 5.3.4-8
|
|
|
|
|
- 2055504 - Set gutenprint53+usb backend to use the default USB context
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.4-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 11 2022 Zdenek Dohnal <zdohnal@redhat.com> - 5.3.4-6
|
|
|
|
|
- remove the static libraries which were shipped by mistake
|
|
|
|
|
|
|
|
|
|
* Mon Nov 22 2021 Zdenek Dohnal <zdohnal@redhat.com> - 5.3.4-5
|
|
|
|
|
- 2025107 - cups-genppdupdate needs python3-chardet
|
|
|
|
|
|
|
|
|
|
* Wed Aug 11 2021 Zdenek Dohnal <zdohnal@redhat.com> - 5.3.4-4
|
|
|
|
|
- fix xml errors reported by rpminspect
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 5.3.4-3
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.4-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.4-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|