From 711a6c1a095a7ccc26aee83204a25cd96480559d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Thu, 5 May 2016 20:35:46 +0200 Subject: [PATCH] - really fix python install - rel 6 --- lcms-python.patch | 9 ++++++--- lcms.spec | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lcms-python.patch b/lcms-python.patch index b42e7fd..24a0a49 100644 --- a/lcms-python.patch +++ b/lcms-python.patch @@ -1,11 +1,14 @@ --- lcms-1.18/configure.ac.orig 2009-03-20 15:54:17.000000000 +0100 +++ lcms-1.18/configure.ac 2009-03-26 18:12:35.969151477 +0100 -@@ -96,7 +96,7 @@ +@@ -96,9 +96,9 @@ + if test -n "$PYTHON" + then LCMS_PYTHON_PREFIX=`$PYTHON -c "import sys; print sys.prefix"` - LCMS_PYEXECDIR=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1)"` +- LCMS_PYEXECDIR=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1)"` ++ LCMS_PYEXECDIR=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='${prefix}')"` LCMS_PYINCLUDE=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_inc()"` - LCMS_PYLIB=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,1)"` -+ LCMS_PYLIB=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,1)"` ++ LCMS_PYLIB=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='${prefix}')"` AC_CHECK_FILE([$LCMS_PYINCLUDE/Python.h],PYTHON_OK='yes',PYTHON_OK='no') AC_SUBST(LCMS_PYEXECDIR) AC_SUBST(LCMS_PYINCLUDE) diff --git a/lcms.spec b/lcms.spec index c14f00f..688a7b2 100644 --- a/lcms.spec +++ b/lcms.spec @@ -6,7 +6,7 @@ Summary: Little CMS - a library to transform between colour profiles Summary(pl.UTF-8): Little CMS - biblioteka do konwersji między profilami kolorów Name: lcms Version: 1.19 -Release: 5 +Release: 6 License: MIT Group: Libraries Source0: http://downloads.sourceforge.net/lcms/%{name}-%{version}.tar.gz -- 2.44.0