|
|
|
@ -1,16 +1,19 @@
|
|
|
|
|
#%%global prever pre2
|
|
|
|
|
#%%global ver %%{version}-%%{prever}
|
|
|
|
|
%global selinuxtype targeted
|
|
|
|
|
|
|
|
|
|
Name: gutenprint
|
|
|
|
|
Summary: Printer Drivers Package
|
|
|
|
|
Version: 5.3.4
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Version: 5.2.14
|
|
|
|
|
Release: 3%{?dist}.inferit
|
|
|
|
|
URL: http://gimp-print.sourceforge.net/
|
|
|
|
|
Source0: http://downloads.sourceforge.net/gimp-print/%{name}-%{version}.tar.xz
|
|
|
|
|
Source0: http://downloads.sourceforge.net/gimp-print/%{name}-%{version}.tar.bz2
|
|
|
|
|
# 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
|
|
|
|
|
Source2: gutenprint.te
|
|
|
|
|
Patch0: gutenprint-menu.patch
|
|
|
|
|
Patch1: gutenprint-O6.patch
|
|
|
|
|
Patch3: gutenprint-postscriptdriver.patch
|
|
|
|
|
Patch4: gutenprint-yyin.patch
|
|
|
|
|
Patch5: gutenprint-manpage.patch
|
|
|
|
@ -19,23 +22,19 @@ License: GPLv2+
|
|
|
|
|
|
|
|
|
|
#### 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}
|
|
|
|
|
|
|
|
|
|
# gcc is no longer in buildroot by default
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
# 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: pkgconfig(gimpui-2.0)
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: gimp
|
|
|
|
|
BuildRequires: chrpath
|
|
|
|
|
|
|
|
|
|
# Make sure we get postscriptdriver tags.
|
|
|
|
@ -44,9 +43,13 @@ BuildRequires: python3-cups
|
|
|
|
|
# autoreconf
|
|
|
|
|
BuildRequires: autoconf automake libtool
|
|
|
|
|
|
|
|
|
|
# needed for defining %%{__python3} macro for prep phase
|
|
|
|
|
# needed for defining %%{__python3} macro in prep phase
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
|
|
# fix SELinux policy
|
|
|
|
|
BuildRequires: selinux-policy-devel
|
|
|
|
|
Requires: (%{name}-selinux = %{version}-%{release} if selinux-policy-%{selinuxtype})
|
|
|
|
|
|
|
|
|
|
## NOTE ##
|
|
|
|
|
# The README file in this package contains suggestions from upstream
|
|
|
|
|
# on how to package this software. I'd be inclined to follow those
|
|
|
|
@ -86,7 +89,6 @@ Requires: gtk2-devel
|
|
|
|
|
This package contains headers and libraries required to build applications that
|
|
|
|
|
uses gutenprint package.
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} <= 8 || 0%{?fedora}
|
|
|
|
|
%package plugin
|
|
|
|
|
Summary: GIMP plug-in for gutenprint
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
@ -102,7 +104,6 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
%description extras
|
|
|
|
|
This package contains test pattern generator and the sample test pattern
|
|
|
|
|
that is used by gutenprint-devel package.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%package cups
|
|
|
|
|
Summary: CUPS drivers for Canon, Epson, HP and compatible printers
|
|
|
|
@ -113,12 +114,21 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
This package contains native CUPS support for a wide range of Canon,
|
|
|
|
|
Epson, HP and compatible printers.
|
|
|
|
|
|
|
|
|
|
%package selinux
|
|
|
|
|
Summary: SELinux policy module for gutenprint
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
%{?selinux_requires}
|
|
|
|
|
|
|
|
|
|
%description selinux
|
|
|
|
|
This package contains the SELinux policy module necessary to run
|
|
|
|
|
gutenprint from GNOME Control Center
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
%patch1 -p1 -b .O6
|
|
|
|
|
# Restore file contexts when updating PPDs.
|
|
|
|
|
#%%patch2 -p1 -b .selinux
|
|
|
|
|
# Allow the CUPS dynamic driver to run inside a build root.
|
|
|
|
@ -137,6 +147,10 @@ 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
|
|
|
|
|
|
|
|
|
|
# SELinux fixes
|
|
|
|
|
mkdir -p SELinux
|
|
|
|
|
cp %{SOURCE2} SELinux/
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
@ -153,6 +167,10 @@ sed -i -e 's,^\(TESTS *=.*\) run-weavetest,\1,' test/Makefile.in
|
|
|
|
|
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
# Build SELinux policy
|
|
|
|
|
cd SELinux
|
|
|
|
|
%{__make} NAME=%{selinuxtype} -f /usr/share/selinux/devel/Makefile
|
|
|
|
|
|
|
|
|
|
# Test suite disabled due to bug #1069274.
|
|
|
|
|
#%check
|
|
|
|
|
#make check
|
|
|
|
@ -167,21 +185,22 @@ rm -f %{buildroot}%{_datadir}/foomatic/kitload.log
|
|
|
|
|
rm -rf %{buildroot}%{_libdir}/gutenprint/5.2/modules/*.la
|
|
|
|
|
rm -f %{buildroot}%{_sysconfdir}/cups/command.types
|
|
|
|
|
|
|
|
|
|
install -d %{buildroot}%{_datadir}/selinux/%{selinuxtype}
|
|
|
|
|
install -p -m 644 SELinux/%{name}.pp %{buildroot}%{_datadir}/selinux/%{selinuxtype}/%{name}.pp
|
|
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
sed 's!%{_datadir}/locale/\([^/]*\)/LC_MESSAGES/gutenprint.mo!%{_datadir}/locale/\1/gutenprint_\1.po!g' %{name}.lang >%{name}-po.lang
|
|
|
|
|
rm -f %{name}.lang
|
|
|
|
|
%find_lang %{name} --all-name
|
|
|
|
|
cat %{name}-po.lang >>%{name}.lang
|
|
|
|
|
|
|
|
|
|
#echo .so man8/cups-genppd.8 > %{buildroot}%{_mandir}/man8/cups-genppd.5.3.3
|
|
|
|
|
echo .so man8/cups-genppd.8 > %{buildroot}%{_mandir}/man8/cups-genppd.5.2.8
|
|
|
|
|
|
|
|
|
|
# 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.5.2 \
|
|
|
|
|
%{buildroot}%{_libdir}/gimp/*/plug-ins/* \
|
|
|
|
|
%endif
|
|
|
|
|
%{buildroot}%{_libdir}/*.so.* \
|
|
|
|
|
%{buildroot}%{_cups_serverbin}/driver/* \
|
|
|
|
|
%{buildroot}%{_cups_serverbin}/filter/* \
|
|
|
|
@ -190,18 +209,35 @@ do
|
|
|
|
|
chrpath --delete ${file}
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} > 8
|
|
|
|
|
%{_bindir}/rm -f %{buildroot}%{_bindir}/testpattern \
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets libs
|
|
|
|
|
%ldconfig_scriptlets libs-ui
|
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
|
%post libs-ui -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
|
%postun libs-ui -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%post cups
|
|
|
|
|
%{_sbindir}/cups-genppdupdate >/dev/null 2>&1 || :
|
|
|
|
|
%{_bindir}/systemctl restart cups >/dev/null 2>&1 || :
|
|
|
|
|
/usr/sbin/cups-genppdupdate >/dev/null 2>&1 || :
|
|
|
|
|
/sbin/service cups reload >/dev/null 2>&1 || :
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
%pre selinux
|
|
|
|
|
%selinux_relabel_pre -s %{selinuxtype}
|
|
|
|
|
|
|
|
|
|
%post selinux
|
|
|
|
|
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/%{selinuxtype}/%{name}.pp
|
|
|
|
|
%selinux_relabel_post -s %{selinuxtype}
|
|
|
|
|
|
|
|
|
|
if [ "$1" -le "1" ]; then # First install
|
|
|
|
|
# the daemon needs to be restarted for the custom label to be applied
|
|
|
|
|
%systemd_postun_with_restart waydroid-container.service
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%postun selinux
|
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
|
%selinux_modules_uninstall -s %{selinuxtype} %{name}
|
|
|
|
|
%selinux_relabel_post -s %{selinuxtype}
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
|
%license COPYING
|
|
|
|
@ -215,12 +251,12 @@ exit 0
|
|
|
|
|
%license COPYING
|
|
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
|
%{_libdir}/libgutenprint.so.9
|
|
|
|
|
%{_libdir}/libgutenprint.so.9.5.0
|
|
|
|
|
%{_libdir}/libgutenprint.so.2
|
|
|
|
|
%{_libdir}/libgutenprint.so.2.7.0
|
|
|
|
|
|
|
|
|
|
%files libs-ui
|
|
|
|
|
%{_libdir}/libgutenprintui2.so.2
|
|
|
|
|
%{_libdir}/libgutenprintui2.so.2.5.0
|
|
|
|
|
%{_libdir}/libgutenprintui2.so.1
|
|
|
|
|
%{_libdir}/libgutenprintui2.so.1.0.0
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%doc ChangeLog doc/developer/reference-html doc/developer/gutenprint.pdf
|
|
|
|
@ -232,7 +268,6 @@ exit 0
|
|
|
|
|
%{_libdir}/pkgconfig/gutenprintui2.pc
|
|
|
|
|
%exclude %{_libdir}/*.la
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} <= 8 || 0%{?fedora}
|
|
|
|
|
%files plugin
|
|
|
|
|
%{_libdir}/gimp/*/plug-ins/gutenprint
|
|
|
|
|
|
|
|
|
@ -240,7 +275,6 @@ exit 0
|
|
|
|
|
%doc
|
|
|
|
|
%{_bindir}/testpattern
|
|
|
|
|
%{_datadir}/gutenprint/samples/*
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files cups
|
|
|
|
|
%doc
|
|
|
|
@ -252,58 +286,22 @@ exit 0
|
|
|
|
|
%{_bindir}/cups-calibrate
|
|
|
|
|
%{_sbindir}/cups-genppd*
|
|
|
|
|
%{_mandir}/man8/cups-calibrate.8*
|
|
|
|
|
%{_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
|
|
|
|
|
%{_mandir}/man8/cups-genppd*.8*
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
%files selinux
|
|
|
|
|
%doc SELinux/%{name}.te
|
|
|
|
|
%{_datadir}/selinux/%{selinuxtype}/%{name}.pp
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.4-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 13 2021 Zdenek Dohnal <zdohnal@redhat.com> - 5.3.4-1
|
|
|
|
|
- 5.3.4
|
|
|
|
|
|
|
|
|
|
* Fri Nov 06 2020 Zdenek Dohnal <zdohnal@redhat.com> - 5.3.3-7
|
|
|
|
|
- 1773690 - cups-genppdupdate doesnt work for non-utf-8 PPDs
|
|
|
|
|
|
|
|
|
|
* Thu Nov 05 2020 Zdenek Dohnal <zdohnal@redhat.com> - 5.3.3-6
|
|
|
|
|
- make is no longer in buildroot by default
|
|
|
|
|
|
|
|
|
|
* Wed Sep 30 2020 Zdenek Dohnal <zdohnal@redhat.com> - 5.3.3-5
|
|
|
|
|
- dont require the gimp package as build require, pkgconfig's gimpui-2.0 suffices
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.3-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Mar 25 2020 Tom Stellard <tstellar@redhat.com> - 5.3.3-3
|
|
|
|
|
- Fix warning building with clang
|
|
|
|
|
- non-void function 'stp_paths_copy_with_prefix' should return a value [-Wreturn-type]
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Nov 06 2019 Zdenek Dohnal <zdohnal@redhat.com> - 5.3.3-1
|
|
|
|
|
- 5.3.3
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.14-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Apr 09 2019 Zdenek Dohnal <zdohnal@redhat.com> - 5.2.14-6
|
|
|
|
|
- rebuilt again (because bodhi cannot release builds of unpushed updates)
|
|
|
|
|
|
|
|
|
|
* Mon Apr 08 2019 Zdenek Dohnal <zdohnal@redhat.com> - 5.2.14-5
|
|
|
|
|
- rebuilt for gimp-2.10.10
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Mar 15 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 5.2.14-3.inferit
|
|
|
|
|
- Added SELinux policy (based on Arkady L. Shane <tigro@msvsphere-os.ru> patch for MSVSphere 9)
|
|
|
|
|
- Rebuilt for MSVSphere 8.9
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.14-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
* Tue Jul 25 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 5.2.14-3
|
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.14-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
* Wed Aug 15 2018 Zdenek Dohnal <zdohnal@redhat.com> - 5.2.14-3
|
|
|
|
|
- rebuilt with fixed gimp module
|
|
|
|
|
|
|
|
|
|
* Wed Jul 11 2018 Zdenek Dohnal <zdohnal@redhat.com> - 5.2.14-2
|
|
|
|
|
- use %%{__python3} macro
|
|
|
|
|