update to 5.2.9 [release 5.2.9-1mamba;Sat Sep 29 2012]

This commit is contained in:
Silvan Calarco 2024-01-05 23:35:26 +01:00
parent 1da01eb13e
commit 45302abf49
5 changed files with 369 additions and 0 deletions

View File

@ -1,2 +1,11 @@
# gutenprint
Gutenprint is the new name for the former gimp-print tool.
Gutenprint is a package of high quality printer drivers for Linux, BSD, Solaris, IRIX, and other UNIX-alike operating systems.
In many cases, these drivers rival or exceed the OEM drivers in quality and functionality.
Our goal is to produce the highest possible output quality from all supported printers.
To that end, we have done extensive work on screening algorithms, color generation, and printer feature utilization.
We are continuing our work in all of these areas to produce ever higher quality results, particularly on the ubiquitous, inexpensive inkjet printers that are nonetheless capable of nearly photographic output quality.
Despite the name, printing support for The GIMP is only one small part of what Gutenprin does, and indeed, the Print plugin may eventually be removed from the core gutenprint distribution.
Gutenprint printer drivers can be used with all common UNIX print spooling systems, by means of either CUPS or Ghostscript.

View File

@ -0,0 +1,69 @@
diff -Nru gutenprint-5.2.3.orig/src/cups/Makefile.am gutenprint-5.2.3/src/cups/Makefile.am
--- gutenprint-5.2.3.orig/src/cups/Makefile.am 2009-05-07 03:06:37.000000000 +0200
+++ gutenprint-5.2.3/src/cups/Makefile.am 2009-05-07 03:19:25.000000000 +0200
@@ -201,26 +201,26 @@
ppd-nonls: cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@
$(mkdir_p) ppd/C
- LC_ALL= LANG= LANGUAGE= $(STP_ENV) ./cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ @WHICH_PPDS@ -l C -p ppd/C
+ LC_ALL= LANG= LANGUAGE= LD_PRELOAD=../main/.libs/libgutenprint.so.2 $(STP_ENV) ./cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ @WHICH_PPDS@ -l C -p ppd/C
ppd-global: cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ ppd-catalog
$(mkdir_p) ppd/Global
@echo "Global PPDs:"
- LC_ALL= LANG= LANGUAGE= $(STP_ENV) ./cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ @WHICH_PPDS@ -p ppd/Global
+ LC_ALL= LANG= LANGUAGE= LD_PRELOAD=../main/.libs/libgutenprint.so.2 $(STP_ENV) ./cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ @WHICH_PPDS@ -p ppd/Global
-$(RM) -r catalog
ppd-global-ln: cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ ppd-catalog
$(mkdir_p) ppd/Global
@echo "Global PPDs (localized numbers for testing):"
- LC_ALL= LANG= LANGUAGE= $(STP_ENV) ./cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ @WHICH_PPDS@ -p ppd/Global -N
+ LC_ALL= LANG= LANGUAGE= LD_PRELOAD=../main/.libs/libgutenprint.so.2 $(STP_ENV) ./cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ @WHICH_PPDS@ -p ppd/Global -N
-$(RM) -r catalog
ppd-nls: cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ ppd-catalog ppd-nonls
$(mkdir_p) ppd
- for language in `$(STP_ENV) ./cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ -L` ; do \
+ for language in `LD_PRELOAD=../main/.libs/libgutenprint.so.2 $(STP_ENV) ./cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ -L` ; do \
mkdir ppd/$$language ; \
echo "$$language:" ; \
- LC_ALL=$$language LANG=$$language LANGUAGE=$$language $(STP_ENV) ./cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ @WHICH_PPDS@ -l $$language -p ppd/$$language; \
+ LC_ALL=$$language LANG=$$language LANGUAGE=$$language LD_PRELOAD=../main/.libs/libgutenprint.so.2 $(STP_ENV) ./cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ @WHICH_PPDS@ -l $$language -p ppd/$$language; \
done
-$(RM) -r catalog
diff -Nru gutenprint-5.2.3.orig/src/cups/Makefile.in gutenprint-5.2.3/src/cups/Makefile.in
--- gutenprint-5.2.3.orig/src/cups/Makefile.in 2009-05-07 03:06:37.000000000 +0200
+++ gutenprint-5.2.3/src/cups/Makefile.in 2009-05-07 03:16:01.000000000 +0200
@@ -1106,18 +1106,18 @@
ppd-nonls: cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@
$(mkdir_p) ppd/C
- LC_ALL= LANG= LANGUAGE= $(STP_ENV) ./cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ @WHICH_PPDS@ -l C -p ppd/C
+ LC_ALL= LANG= LANGUAGE= LD_PRELOAD=../main/.libs/libgutenprint.so.2 $(STP_ENV) ./cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ @WHICH_PPDS@ -l C -p ppd/C
ppd-global: cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ ppd-catalog
$(mkdir_p) ppd/Global
@echo "Global PPDs:"
- LC_ALL= LANG= LANGUAGE= $(STP_ENV) ./cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ @WHICH_PPDS@ -p ppd/Global
+ LC_ALL= LANG= LANGUAGE= LD_PRELOAD=../main/.libs/libgutenprint.so.2 $(STP_ENV) ./cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ @WHICH_PPDS@ -p ppd/Global
-$(RM) -r catalog
ppd-global-ln: cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ ppd-catalog
$(mkdir_p) ppd/Global
@echo "Global PPDs (localized numbers for testing):"
- LC_ALL= LANG= LANGUAGE= $(STP_ENV) ./cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ @WHICH_PPDS@ -p ppd/Global -N
+ LC_ALL= LANG= LANGUAGE= LD_PRELOAD=../main/.libs/libgutenprint.so.2 $(STP_ENV) ./cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ @WHICH_PPDS@ -p ppd/Global -N
-$(RM) -r catalog
ppd-nls: cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ ppd-catalog ppd-nonls
@@ -1125,7 +1125,7 @@
for language in `$(STP_ENV) ./cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ -L` ; do \
mkdir ppd/$$language ; \
echo "$$language:" ; \
- LC_ALL=$$language LANG=$$language LANGUAGE=$$language $(STP_ENV) ./cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ @WHICH_PPDS@ -l $$language -p ppd/$$language; \
+ LC_ALL=$$language LANG=$$language LANGUAGE=$$language LD_PRELOAD=../main/.libs/libgutenprint.so.2 $(STP_ENV) ./cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ @WHICH_PPDS@ -l $$language -p ppd/$$language; \
done
-$(RM) -r catalog

View File

@ -0,0 +1,42 @@
To avoid parallel build issues, the ppd-stamp-pre target has to be executed
before other ppd targets.
2009-03-04 Martin von Gagern
References:
https://bugs.gentoo.org/254008
Index: gutenprint-5.2.3/src/cups/Makefile.am
===================================================================
--- gutenprint-5.2.3.orig/src/cups/Makefile.am
+++ gutenprint-5.2.3/src/cups/Makefile.am
@@ -182,10 +182,11 @@ all-local: $(INSTALL_DATA_LOCAL_DEPS)
ppd: ppd-stamp
ppd-stamp: cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ $(top_srcdir)/src/xml/xml-stamp
+ $(MAKE) ppd-stamp-pre
$(MAKE) ppd-stamp-phony
touch ppd-stamp
-ppd-stamp-phony: ppd-stamp-pre $(PPD)
+ppd-stamp-phony: $(PPD)
ppd-stamp-pre:
-$(RM) -r ppd
Index: gutenprint-5.2.3/src/cups/Makefile.in
===================================================================
--- gutenprint-5.2.3.orig/src/cups/Makefile.in
+++ gutenprint-5.2.3/src/cups/Makefile.in
@@ -1087,10 +1087,11 @@ all-local: $(INSTALL_DATA_LOCAL_DEPS)
ppd: ppd-stamp
ppd-stamp: cups-genppd.@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@ $(top_srcdir)/src/xml/xml-stamp
+ $(MAKE) ppd-stamp-pre
$(MAKE) ppd-stamp-phony
touch ppd-stamp
-ppd-stamp-phony: ppd-stamp-pre $(PPD)
+ppd-stamp-phony: $(PPD)
ppd-stamp-pre:
-$(RM) -r ppd

View File

@ -0,0 +1,25 @@
I file binari gutenprint-5.2.7.orig/src/cups/commandtocanon e gutenprint-5.2.7/src/cups/commandtocanon sono diversi
diff -Nru gutenprint-5.2.7.orig/src/cups/commandtocanon.c gutenprint-5.2.7/src/cups/commandtocanon.c
--- gutenprint-5.2.7.orig/src/cups/commandtocanon.c 2004-07-19 01:26:46.000000000 +0200
+++ gutenprint-5.2.7/src/cups/commandtocanon.c 2011-09-15 01:10:12.698976579 +0200
@@ -14,6 +14,7 @@
#include <cups/cups.h>
#include <ctype.h>
#include <stdlib.h>
+#include <stdio.h>
/*
I file binari gutenprint-5.2.7.orig/src/cups/commandtocanon.o e gutenprint-5.2.7/src/cups/commandtocanon.o sono diversi
I file binari gutenprint-5.2.7.orig/src/cups/commandtoepson e gutenprint-5.2.7/src/cups/commandtoepson sono diversi
diff -Nru gutenprint-5.2.7.orig/src/cups/commandtoepson.c gutenprint-5.2.7/src/cups/commandtoepson.c
--- gutenprint-5.2.7.orig/src/cups/commandtoepson.c 2007-12-24 18:19:20.000000000 +0100
+++ gutenprint-5.2.7/src/cups/commandtoepson.c 2011-09-15 01:10:03.234075422 +0200
@@ -32,6 +32,7 @@
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
+#include <stdio.h>
/*
* Macros...

224
gutenprint.spec Normal file
View File

@ -0,0 +1,224 @@
%define majver %(echo %version | cut -d. -f 1-2)
Name: gutenprint
Version: 5.2.9
Release: 1mamba
Summary: A suite of printer drivers that may be used with cups
Group: System/Spooling
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://gutenprint.sourceforge.net
Source: http://download.sourceforge.net/sourceforge/gimp-print/gutenprint-%{version}.tar.bz2
Patch0: %{name}-5.2.3-parallel-build.patch
Patch1: %{name}-5.2.3-LD_PRELOAD_fix.patch
Patch2: %{name}-5.2.6-fix_includes.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: ghostscript-devel
BuildRequires: glibc-devel
BuildRequires: libatk-devel
BuildRequires: libcairo-devel
BuildRequires: libcups-devel
BuildRequires: libexpat-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcrypt-devel
BuildRequires: libgimp-devel
BuildRequires: libglib-devel
BuildRequires: libglitz-devel
BuildRequires: libgnutls-devel
BuildRequires: libgpg-error-devel
BuildRequires: libgtk2-devel
BuildRequires: libgtk-devel
BuildRequires: libjpeg-devel
BuildRequires: libpango-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
BuildRequires: libX11-devel
BuildRequires: libXau-devel
BuildRequires: libxcb-devel
BuildRequires: libxcb-util-devel
BuildRequires: libXdmcp-devel
BuildRequires: libXext-devel
BuildRequires: libXrender-devel
BuildRequires: libz-devel
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: libltdl-devel >= 1.5.22
BuildRequires: libpthread-stubs-devel >= 0.1
BuildRequires: libkrb5-devel
BuildRequires: libopenssl-devel
Requires: cups-bjnp
Requires: libcups >= 1.1.19
Provides: gimp-print
Obsoletes: gimp-print
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Gutenprint is the new name for the former gimp-print tool.
Gutenprint is a package of high quality printer drivers for Linux, BSD, Solaris, IRIX, and other UNIX-alike operating systems.
In many cases, these drivers rival or exceed the OEM drivers in quality and functionality.
Our goal is to produce the highest possible output quality from all supported printers.
To that end, we have done extensive work on screening algorithms, color generation, and printer feature utilization.
We are continuing our work in all of these areas to produce ever higher quality results, particularly on the ubiquitous, inexpensive inkjet printers that are nonetheless capable of nearly photographic output quality.
Despite the name, printing support for The GIMP is only one small part of what Gutenprin does, and indeed, the Print plugin may eventually be removed from the core gutenprint distribution.
Gutenprint printer drivers can be used with all common UNIX print spooling systems, by means of either CUPS or Ghostscript.
%package devel
Summary: Devel package for gutenprint
Group: Development/Libraries
Requires: %{name} == %{version}-%{release}
Provides: gimp-print-devel
Obsoletes: gimp-print-devel
%description devel
Gutenprint is the new name for the former gimp-print tool.
Gutenprint is a package of high quality printer drivers for Linux, BSD, Solaris, IRIX, and other UNIX-alike operating systems.
In many cases, these drivers rival or exceed the OEM drivers in quality and functionality.
Our goal is to produce the highest possible output quality from all supported printers.
To that end, we have done extensive work on screening algorithms, color generation, and printer feature utilization.
We are continuing our work in all of these areas to produce ever higher quality results, particularly on the ubiquitous, inexpensive inkjet printers that are nonetheless capable of nearly photographic output quality.
Despite the name, printing support for The GIMP is only one small part of what Gutenprin does, and indeed, the Print plugin may eventually be removed from the core gutenprint distribution.
Gutenprint printer drivers can be used with all common UNIX print spooling systems, by means of either CUPS or Ghostscript.
This is the devel package.
%prep
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%setup -q
#%patch0 -p1
#%patch1 -p1
#%patch2 -p1
%build
./autogen.sh
#aclocal -I m4
#automake
%configure \
--with-foomatic3 \
--with-cups \
--enable-cups-level3-ppds \
--enable-cups-ppds \
--disable-translated-cups-ppds
# --disable-static-genppd
%make -j1
%install
%makeinstall
#mv %{buildroot}%{_libdir}/gimp/2.0/plug-ins/print %{buildroot}%{_libdir}/gimp/2.0/plug-ins/gutenprint
%find_lang %{name}
rm -f %{buildroot}%{_datadir}/locale/*/gutenprint*.po
# not packaged files
rm -f %{buildroot}%{_bindir}/cups-calibrate
rm -f %{buildroot}%{_bindir}/escputil
rm -f %{buildroot}%{_datadir}/foomatic/kitload.log
rm -f %{buildroot}%{_sysconfdir}/cups/command.types
rm -f %{buildroot}%{_mandir}/man1/escputil.*
rm -f %{buildroot}%{_mandir}/man8/cups-calibrate.*
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
/sbin/ldconfig
/usr/sbin/cups-genppdupdate 2>&1 >/dev/null
exit 0
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/ijsgutenprint.%{majver}
%{_bindir}/testpattern
%{_sbindir}/cups-genppd.%{majver}
#%{_sbindir}/cups-genppdconfig.%{majver}
%{_sbindir}/cups-genppdupdate
%{_libdir}/*.so.*
%{_prefix}/lib/cups/driver/gutenprint.%{majver}
%{_prefix}/lib/cups/filter/commandtocanon
%{_prefix}/lib/cups/filter/commandtoepson
%{_prefix}/lib/cups/filter/rastertogutenprint.%{majver}
%{_libdir}/gimp/2.0/plug-ins/gutenprint
%{_datadir}/cups/calibrate.ppm
%dir %{_datadir}/gutenprint
%{_datadir}/gutenprint/*
%if "%{stage1}" != "1"
%{_datadir}/foomatic/db/source/driver/gutenprint-ijs-simplified.%{majver}.xml
%{_datadir}/foomatic/db/source/driver/gutenprint-ijs.%{majver}.xml
%{_datadir}/foomatic/db/source/opt/gutenprint-ijs-simplified.*
%{_datadir}/foomatic/db/source/opt/gutenprint-ijs.*
%endif
%{_datadir}/cups/model/gutenprint/%{majver}/C/*.ppd.gz
%{_mandir}/man1/*
%{_mandir}/man8/*
%files devel
%defattr(-,root,root)
%dir %{_includedir}/gutenprint
%{_includedir}/gutenprint/*.h
%dir %{_includedir}/gutenprintui2
%{_includedir}/gutenprintui2/*.h
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so
%{_libdir}/pkgconfig/gutenprint.pc
%{_libdir}/pkgconfig/gutenprintui2.pc
%changelog
* Sat Sep 29 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.9-1mamba
- update to 5.2.9
* Thu Oct 27 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.7-2mamba
- added requirement for cups-bjnp
* Thu Sep 15 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.7-1mamba
- update to 5.2.7
* Thu Sep 15 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.6-3mamba
- gutenprint-devel: replice provide/obsolete for gimp-print with gimp-print-devel
* Thu Dec 23 2010 Davide Madrisan <davide.madrisan@gmail.com> 5.2.6-2mamba
- provide %{_libdir}/cups/filter/commandtocanon and commandtoepson
- run /sbin/ldconfig
- own %{_includedir}/gutenprint and %{_includedir}/gutenprintui2
* Fri Nov 12 2010 Automatic Build System <autodist@mambasoft.it> 5.2.6-1mamba
- automatic update by autodist
* Thu Apr 02 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.3-1mamba
- update to 5.2.3
* Wed Mar 26 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 5.1.7-1mamba
- update to 5.1.7
- generate single language ppds for drivers missing in foomatic (but not only, FIXME)
* Thu Feb 28 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.2-1mamba
- update to 5.0.2
* Fri Apr 06 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.0.99.1-1mamba
- update to version 5.0.0.99.1 by autospec
- resolved conflict with gimp
* Wed Feb 21 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.0-3qilnx
- don't obsolete gimp-print
* Tue Feb 20 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.0-2qilnx
- added libgutenprintui build
* Tue Feb 20 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.0-1qilnx
- update to version 5.0.0 by autospec
- renamed to gutenprint and obsoleting gimp-print
* Mon Nov 21 2005 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 4.2.7-2qilnx
- specfile fixes: use %%find_lang, install/uninstall info pages
* Mon Sep 20 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.7-1qilnx
- update to version 4.2.7 by autospec
* Mon Jul 28 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.2.5-1qilnx
- first build for gimp-print