[python-webob: 7/12] More tweaks to pyver to get python3 subpackage working correctly.
Luke Macken
lmacken at fedoraproject.org
Fri Apr 5 18:04:34 UTC 2013
commit db4f8d522509c941db3fc570767f7208bc45cbc3
Author: Ralph Bean <rbean at redhat.com>
Date: Thu Nov 29 14:28:54 2012 -0500
More tweaks to pyver to get python3 subpackage working correctly.
python-webob1.2.spec | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/python-webob1.2.spec b/python-webob1.2.spec
index 46d9ed3..f00968f 100644
--- a/python-webob1.2.spec
+++ b/python-webob1.2.spec
@@ -1,15 +1,16 @@
%if 0%{?fedora}
%global with_python3 1
+%{!?py3ver: %global py3ver %(%{__python3} -c "import sys ; print(sys.version[:3])")}
%endif
-%{!?pyver: %global pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
+%{!?py2ver: %global py2ver %(%{__python} -c "import sys ; print sys.version[:3]")}
%global modname webob
Name: python-webob1.2
Summary: WSGI request and response object
Version: 1.2.1
-Release: 8%{?dist}
+Release: 9%{?dist}
License: MIT
Group: System Environment/Libraries
URL: http://pythonpaste.org/webob/
@@ -74,13 +75,13 @@ popd
%install
%if 0%{?with_python3}
pushd %{py3dir}
-easy_install-3.3 -m --prefix %{buildroot}%{_usr} dist/*.egg
+easy_install-%{py3ver} -m --prefix %{buildroot}%{_usr} dist/*.egg
%{__chmod} 0644 %{buildroot}%{python3_sitelib}/WebOb-%{version}-*.egg/%{modname}/*.py
popd
%endif
%{__mkdir} -p %{buildroot}%{python_sitelib}
-easy_install -m --prefix %{buildroot}%{_usr} dist/*.egg
+easy_install-%{py2ver} -m --prefix %{buildroot}%{_usr} dist/*.egg
%{__chmod} 0644 %{buildroot}%{python_sitelib}/WebOb-%{version}-*.egg/%{modname}/*.py
%check
@@ -103,6 +104,9 @@ popd
%endif
%changelog
+* Thu Nov 29 2012 Ralph Bean <rbean at redhat.com> - 1.2.1-9
+- Trying pyver again with py2ver and py3ver. Getting ugly.
+
* Thu Nov 29 2012 Ralph Bean <rbean at redhat.com> - 1.2.1-8
- Hardcode python3 version
More information about the scm-commits
mailing list