]> git.pld-linux.org Git - packages/gutenprint.git/commitdiff
added ijs-pkgconfig.patch; rel. 3 auto/th/gutenprint-5.2.11-3
authorSzymon Siwek <sls@pld-linux.org>
Sun, 26 Feb 2017 15:46:58 +0000 (16:46 +0100)
committerSzymon Siwek <sls@pld-linux.org>
Sun, 26 Feb 2017 15:48:07 +0000 (16:48 +0100)
ghostscript-ijs migrated to pkgconfig

gutenprint.spec
ijs-pkgconfig.patch [new file with mode: 0644]

index 0411fecc3aa42f4c399755c479d1bf35549a24da..b3c536ee6421b130694592815b27caea17476116 100644 (file)
@@ -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 (file)
index 0000000..48c0f93
--- /dev/null
@@ -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}
This page took 0.175091 seconds and 4 git commands to generate.