[packages/stfl] - fix python install path - rel 7
baggins
baggins at pld-linux.org
Thu Dec 31 09:52:58 CET 2015
commit 4aaf159a1469042277eb3504642808c3b36a9351
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu Dec 31 09:52:38 2015 +0100
- fix python install path
- rel 7
python-install.patch | 11 +++++++++++
stfl.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/stfl.spec b/stfl.spec
index 4b71469..b991a20 100644
--- a/stfl.spec
+++ b/stfl.spec
@@ -4,7 +4,7 @@ Summary(hu.UTF-8): Az STFL egy curses-alapú widget-készletet biztosít szöveg
Summary(pl.UTF-8): Implementacja opartego na ncurses zestawu widgetów dla terminali tekstowych
Name: stfl
Version: 0.22
-Release: 6
+Release: 7
License: LGPL v3
Group: Libraries
Source0: http://www.clifford.at/stfl/%{name}-%{version}.tar.gz
@@ -12,6 +12,7 @@ Source0: http://www.clifford.at/stfl/%{name}-%{version}.tar.gz
URL: http://www.clifford.at/stfl/
Patch0: %{name}-example-dir.patch
Patch1: %{name}-link.patch
+Patch2: python-install.patch
BuildRequires: ncurses-devel
BuildRequires: perl-devel
BuildRequires: python-devel
@@ -123,6 +124,7 @@ Wiązania Ruby'ego dla STFLa.
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
echo 'LDLIBS=-ltinfow' >> Makefile.cfg
%build
diff --git a/python-install.patch b/python-install.patch
new file mode 100644
index 0000000..2bac216
--- /dev/null
+++ b/python-install.patch
@@ -0,0 +1,11 @@
+--- stfl-0.22/python/Makefile.snippet~ 2009-06-18 10:27:16.000000000 +0200
++++ stfl-0.22/python/Makefile.snippet 2015-12-30 00:36:56.436516831 +0100
+@@ -19,7 +19,7 @@
+ #
+
+ PYTHON_VERSION = $(shell python -V 2>&1 | cut -f2 -d' ' | cut -f1-2 -d'.')
+-PYTHON_SITEARCH = $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
++PYTHON_SITEARCH = $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(plat_specific=True, prefix='/usr')")
+
+ all: python/_stfl.so python/stfl.py python/stfl.pyc
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/stfl.git/commitdiff/4aaf159a1469042277eb3504642808c3b36a9351
More information about the pld-cvs-commit
mailing list