From 9a3e1f99609c0ce4ace7bfb0fa5012065311b77f Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Wed, 3 Feb 2016 15:13:17 -0700 Subject: [PATCH] Modernize spec - Fix python3 package file ownership --- python-six.spec | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/python-six.spec b/python-six.spec index a1ee455..4068284 100644 --- a/python-six.spec +++ b/python-six.spec @@ -11,7 +11,7 @@ Name: python-six Version: 1.10.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Python 2 and 3 compatibility utilities Group: Development/Languages @@ -52,35 +52,25 @@ This is the Python 3 build of the module. %prep %setup -q -n six-%{version} -%if 0%{?with_python3} -rm -rf %{py3dir} -cp -a . %{py3dir} -%endif %build -%{__python2} setup.py build +%{py2_build} %if 0%{?with_python3} -pushd %{py3dir} -%{__python3} setup.py build -popd +%{py3_build} %endif %install %if 0%{?with_python3} -pushd %{py3dir} -%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT -popd +%{py3_install} %endif -%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +%{py2_install} %check -py.test -rfsxX test_six.py +py.test-%{python2_version} -rfsxX test_six.py %if 0%{?with_python3} -pushd %{py3dir} py.test-%{python3_version} -rfsxX test_six.py -popd %endif @@ -95,11 +85,17 @@ popd %{!?_licensedir:%global license %%doc} %license LICENSE %doc README documentation/index.rst -%{python3_sitelib}/* +%{python3_sitelib}/six.py +%{python3_sitelib}/six-*.egg-info/ +%{python3_sitelib}/__pycache__/* %endif %changelog +* Wed Feb 3 2016 Orion Poplawski - 1.10.0-2 +- Modernize spec +- Fix python3 package file ownership + * Fri Nov 13 2015 Slavek Kabrda - 1.10.0-1 - Update to 1.10.0