From ae8fc2609514771e3f6c982e990f2860c8bbeeff Mon Sep 17 00:00:00 2001 From: James Antill Date: Thu, 26 May 2022 01:04:10 -0400 Subject: [PATCH] Auto sync2gitlab import of c2esp-2.7-14.el8.src.rpm --- .gitignore | 1 + EMPTY | 1 - c2esp-ftbfs-gcc7.patch | 23 +++++++++ c2esp.spec | 105 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 5 files changed, 130 insertions(+), 1 deletion(-) create mode 100644 .gitignore delete mode 100644 EMPTY create mode 100644 c2esp-ftbfs-gcc7.patch create mode 100644 c2esp.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..404aff9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/c2esp-27.tar.gz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/c2esp-ftbfs-gcc7.patch b/c2esp-ftbfs-gcc7.patch new file mode 100644 index 0000000..8b65eaa --- /dev/null +++ b/c2esp-ftbfs-gcc7.patch @@ -0,0 +1,23 @@ +diff -up c2esp-27/src/c2espC.c.ftbfs-gcc7 c2esp-27/src/c2espC.c +diff -up c2esp-27/src/c2espcommon.c.ftbfs-gcc7 c2esp-27/src/c2espcommon.c +--- c2esp-27/src/c2espcommon.c.ftbfs-gcc7 2017-03-03 14:10:28.018395128 +0100 ++++ c2esp-27/src/c2espcommon.c 2017-03-03 14:19:26.967383931 +0100 +@@ -24,6 +24,7 @@ + #include //files + #include //for chmod + #include //time functions used for debugging ++#include + + #if HAVE_CUPSFILTERS_DRIVER_H == 1 + #include //has the dither functions +diff -up c2esp-27/src/c2espcommon.h.ftbfs-gcc7 c2esp-27/src/c2espcommon.h +--- c2esp-27/src/c2espcommon.h.ftbfs-gcc7 2017-03-03 14:25:54.186413550 +0100 ++++ c2esp-27/src/c2espcommon.h 2017-03-03 14:26:53.105961575 +0100 +@@ -21,6 +21,7 @@ + #include //FlushBackChannel, and the side channel functions and constants + #include //files + #include //time functions used for debugging ++#include //library for stderr, stdout, stdin - because of gcc7, it needed to be included + + /* + * Constants... diff --git a/c2esp.spec b/c2esp.spec new file mode 100644 index 0000000..eadbe29 --- /dev/null +++ b/c2esp.spec @@ -0,0 +1,105 @@ +%global version_no_dot 27 + +Name: c2esp +Version: 2.7 +Release: 14%{?dist} +Summary: CUPS driver for Kodak AiO printers + +License: GPLv2+ +URL: http://sourceforge.net/projects/cupsdriverkodak/ +Source0: http://downloads.sourceforge.net/cupsdriverkodak/c2esp-%{version_no_dot}.tar.gz + +Patch01: c2esp-ftbfs-gcc7.patch + +# _cups_serverbin macro +BuildRequires: cups-devel + +# postscriptdriver tags +BuildRequires: python3-cups cups + +# cupsfilters/image.h +BuildRequires: cups-filters-devel + +# JBIG1 lossless image compression +BuildRequires: jbigkit-devel + +# Needs gcc for compilation +BuildRequires: gcc + +# directory structure +Requires: cups-filesystem + +%description +CUPS filters and drivers for Kodak ESP and Hero all in one printers. + +%prep +%setup -q -n c2esp-%{version_no_dot} +%patch01 -p1 -b .ftbfs-gcc7 + +%build +%configure +make %{_smp_mflags} -C src/ + +%install +# do not install doc/ or scripts/ +make -C src/ install DESTDIR=%{buildroot} + +%files +%license doc/COPYING +%doc doc/README +%{_cups_serverbin}/filter/c2esp +%{_cups_serverbin}/filter/c2espC +%{_cups_serverbin}/filter/command2esp +%{_datadir}/cups/drv/c2esp + +%changelog +* Mon Feb 19 2018 Zdenek Dohnal - 2.7-14 +- gcc is no longer in buildroot by default + +* Wed Feb 07 2018 Fedora Release Engineering - 2.7-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Aug 02 2017 Fedora Release Engineering - 2.7-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 2.7-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Mar 03 2017 Zdenek Dohnal - 2.7-10 +- 1423287 - c2esp: FTBFS in rawhide + +* Fri Feb 10 2017 Fedora Release Engineering - 2.7-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Feb 03 2016 Fedora Release Engineering - 2.7-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Nov 26 2015 Jiri Popelka - 2.7-7 +- BuildRequires: python3-cups + +* Wed Jun 17 2015 Fedora Release Engineering - 2.7-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Fri Aug 15 2014 Fedora Release Engineering - 2.7-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Wed Aug 13 2014 Jiri Popelka - 2.7-4 +- Rebuilt against jbigkit-2.1 + +* Sat Jun 07 2014 Fedora Release Engineering - 2.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon Jan 27 2014 Jiri Popelka - 2.7-2 +- upstream updated tarball + +* Sun Dec 29 2013 Jiri Popelka - 2.7-1 +- 2.7 + +* Thu Dec 19 2013 Jiri Popelka - 2.7-0.1.rc1 +- 2.7~rc1 + +* Sat Aug 03 2013 Fedora Release Engineering - 2.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu May 09 2013 Jiri Popelka - 2.6-1 +- initial build diff --git a/sources b/sources new file mode 100644 index 0000000..5cf0516 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (c2esp-27.tar.gz) = d3ff9dc6de7cf692e4be4f4b316f862d271bff06181f0000daf1ce2fb6921f1b24efe88ec24f7b811d78cb9dca18fcba3f17dd5273ac84ceb9f6bfcecedeecce