[python-click/el6] Change spec for epel6
Robert Kuska
rkuska at fedoraproject.org
Thu Jun 12 13:12:00 UTC 2014
commit 97672258d55b89fe429f2cbb3d7827b17c733381
Author: Robert Kuska <rkuska at redhat.com>
Date: Thu Jun 12 15:11:42 2014 +0200
Change spec for epel6
python-click.spec | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)
---
diff --git a/python-click.spec b/python-click.spec
index f88377e..1c7cbdc 100644
--- a/python-click.spec
+++ b/python-click.spec
@@ -1,10 +1,10 @@
# Created by pyp2rpm-1.0.1
%global pypi_name click
-%global with_python3 1
+%global with_python3 0
Name: python-%{pypi_name}
Version: 2.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A simple wrapper around optparse for powerful command line utilities
License: BSD
@@ -55,7 +55,7 @@ cp -a . %{py3dir}
%build
-%{__python2} setup.py build
+%{__python} setup.py build
%if 0%{?with_python3}
pushd %{py3dir}
@@ -74,11 +74,11 @@ pushd %{py3dir}
popd
%endif # with_python3
-%{__python2} setup.py install --skip-build --root %{buildroot}
+%{__python} setup.py install --skip-build --root %{buildroot}
%check
tar xzf %{SOURCE1}
-PYTHONPATH=$(pwd) py.test-%{python2_version} tests --tb=long --verbose
+PYTHONPATH=$(pwd) py.test tests --tb=long --verbose
%if 0%{?with_python3}
pushd %{py3dir}
tar xzf %{SOURCE1}
@@ -86,10 +86,13 @@ LANG=en_GB.utf8 LC_ALL=en_GB.utf8 PYTHONPATH=$(pwd) py.test-%{python3_version} t
popd
%endif
+%clean
+rm -rf %{buildroot}
+
%files
%doc README
-%{python2_sitelib}/%{pypi_name}
-%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+%{python_sitelib}/%{pypi_name}
+%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
%if 0%{?with_python3}
%files -n python3-%{pypi_name}
%doc README
@@ -99,6 +102,9 @@ popd
%changelog
+* Thu Jun 12 2014 Robert Kuska <rkuska at redhat.com> - 2.0-2
+- Change spec to epel6
+
* Thu Jun 12 2014 Robert Kuska <rkuska at redhat.com> - 2.0-1
- Update to 2.0
More information about the scm-commits
mailing list