commit bbcd00dc5dd0fd35d2497b60cc227c8667e2fcc4 Author: Szymon Siwek <s...@pld-linux.org> Date: Sun Feb 26 16:46:58 2017 +0100
added ijs-pkgconfig.patch; rel. 3 ghostscript-ijs migrated to pkgconfig gutenprint.spec | 8 +++++--- ijs-pkgconfig.patch | 27 +++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 3 deletions(-) --- diff --git a/gutenprint.spec b/gutenprint.spec index 0411fec..b3c536e 100644 --- a/gutenprint.spec +++ b/gutenprint.spec @@ -4,7 +4,7 @@ # Conditional build: %bcond_without cups # don't build CUPS plugin %bcond_without gimp # build GIMP plugin subpackage -%bcond_with ijs # don't build IJS server for Ghostscript +%bcond_without ijs # don't build IJS server for Ghostscript %bcond_without foomatic # don't generate foomatic data %bcond_without static_libs # don't build static library # @@ -18,7 +18,7 @@ Summary(pl.UTF-8): Zestaw wysokiej jakości sterowników do drukarek %define majorver 5.2 Name: gutenprint Version: %{majorver}.11 -Release: 2 +Release: 3 License: GPL Group: Applications/Printing Source0: http://downloads.sourceforge.net/gimp-print/%{name}-%{version}.tar.bz2 @@ -26,6 +26,7 @@ Source0: http://downloads.sourceforge.net/gimp-print/%{name}-%{version}.tar.bz2 Patch0: %{name}-opt.patch Patch1: %{name}-static.patch Patch2: %{name}-am.patch +Patch3: ijs-pkgconfig.patch URL: http://sourceforge.net/projects/gimp-print/ BuildRequires: autoconf >= 2.53 BuildRequires: automake >= 1:1.9 @@ -34,7 +35,7 @@ BuildRequires: docbook-style-dsssl BuildRequires: docbook-utils %{?with_foomatic:BuildRequires: foomatic-db-engine >= 3} BuildRequires: gettext-tools >= 0.16 -%{?with_ijs:BuildRequires: ghostscript-ijs-devel} +%{?with_ijs:BuildRequires: ghostscript-ijs-devel >= 9.20-2} %{?with_gimp:BuildRequires: gimp-devel >= 1:2.2.0} BuildRequires: gtk+2-devel >= 1:2.0.0 BuildRequires: libpng-devel @@ -298,6 +299,7 @@ Wtyczka print dla Gimpa. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build %{__gettextize} diff --git a/ijs-pkgconfig.patch b/ijs-pkgconfig.patch new file mode 100644 index 0000000..48c0f93 --- /dev/null +++ b/ijs-pkgconfig.patch @@ -0,0 +1,27 @@ +--- gutenprint-5.2.11/configure.ac.orig ++++ gutenprint-5.2.11/configure.ac +@@ -371,9 +371,9 @@ if test "$BUILD_FOOMATIC_3" = "yes" ; then + BUILD_FOOMATIC=yes + fi + +-AC_PATH_PROG(IJS_CONFIG, ijs-config) ++PKG_CHECK_MODULES([IJS], [ijs], [AC_DEFINE([HAVE_IJS], [1], [Use IJS]) IJS_OK=yes], [IJS_OK=no]) + +-if test -z "${IJS_CONFIG}" ; then ++if test "x${IJS_OK}" = "xyes"; then + BUILD_GHOSTSCRIPT="no" + else + BUILD_GHOSTSCRIPT="yes" +@@ -602,11 +602,9 @@ fi + + dnl ijs checks + if test x${BUILD_GHOSTSCRIPT} = xyes ; then +- if test -z "$IJS_CONFIG" ; then ++ if test "$IJS_OK" != yes; then + AC_MSG_ERROR(Cannot find ijs-config; please ensure Ghostscript 6.53 or above is installed); + fi +- IJS_CFLAGS=`$IJS_CONFIG --cflags` +- IJS_LIBS=`$IJS_CONFIG --libs` + fi + + GUTENPRINT_RELEASE_VERSION=${GUTENPRINT_MAJOR_VERSION}.${GUTENPRINT_MINOR_VERSION} ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/gutenprint.git/commitdiff/bbcd00dc5dd0fd35d2497b60cc227c8667e2fcc4 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit