[packages/python-six] - updated to 1.5.2 - pl - fixed python2 package dependencies and python3 __pycache__ dir ownership
qboosh
qboosh at pld-linux.org
Fri Feb 28 16:06:51 CET 2014
commit 2a218e9080a0ae6357fa4c8bbfe6ce2445fe9e4b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Feb 28 16:09:24 2014 +0100
- updated to 1.5.2
- pl
- fixed python2 package dependencies and python3 __pycache__ dir ownership
python-six.spec | 56 +++++++++++++++++++++++++++++++++++++++-----------------
1 file changed, 39 insertions(+), 17 deletions(-)
---
diff --git a/python-six.spec b/python-six.spec
index 67a9e63..4d47d58 100644
--- a/python-six.spec
+++ b/python-six.spec
@@ -1,30 +1,30 @@
+#
# Conditional build:
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
%define module six
-Summary: Six – Python 2 and 3 Compatibility Library
-Summary(pl.UTF-8): Biblioteka kompatybilności między Pythonem 2 i 3
+Summary: Six - Python 2 and 3 Compatibility Library (Python 2 module)
+Summary(pl.UTF-8): Biblioteka kompatybilności między Pythonem 2 i 3 (moduł Pythona 2)
Name: python-%{module}
-Version: 1.3.0
+Version: 1.5.2
Release: 1
License: MIT
Group: Libraries/Python
Source0: https://pypi.python.org/packages/source/s/six/six-%{version}.tar.gz
-# Source0-md5: ec47fe6070a8a64c802363d2c2b1e2ee
+# Source0-md5: 322b86d0c50a7d165c05600154cecc0a
URL: http://pythonhosted.org/six/
%if %{with python2}
BuildRequires: python >= 1:2.4
BuildRequires: python-modules
BuildRequires: rpmbuild(macros) >= 1.219
-Requires: python-modules
%endif
%if %{with python3}
BuildRequires: python3
BuildRequires: python3-modules
-Requires: python3-modules
%endif
BuildRequires: rpm-pythonprov
+Requires: python-modules
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -34,10 +34,21 @@ Python 2 and Python 3. It is intended to support codebases that work
on both Python 2 and 3 without modification. six consists of only one
Python file, so it is painless to copy into a project.
+This package contains Python 2 module.
+
+%description -l pl.UTF-8
+Six dostarcza proste narzędzia obudowujące różnice między Pythonem 2 a
+Pythonem 3. Celem jest wsparcie kodu działającego zarówno z Pythonem 2
+jak i 3 bez modyfikacji. six składa się z tylko jednego pliku
+pythonowego, więc można go bezproblemowo skopiować do projektu.
+
+Ten pakiet zawiera moduł Pythona 2.
+
%package -n python3-%{module}
-Summary: Six – Python 2 and 3 Compatibility Library
-Summary(pl.UTF-8): Biblioteka kompatybilności między Pythonem 2 i 3
+Summary: Six - Python 2 and 3 Compatibility Library (Python 3 module)
+Summary(pl.UTF-8): Biblioteka kompatybilności między Pythonem 2 i 3 (moduł Pythona 3)
Group: Libraries/Python
+Requires: python3-modules
%description -n python3-%{module}
Six provides simple utilities for wrapping over differences between
@@ -45,6 +56,16 @@ Python 2 and Python 3. It is intended to support codebases that work
on both Python 2 and 3 without modification. six consists of only one
Python file, so it is painless to copy into a project.
+This package contains Python 3 module.
+
+%description -n python3-%{module} -l pl.UTF-8
+Six dostarcza proste narzędzia obudowujące różnice między Pythonem 2 a
+Pythonem 3. Celem jest wsparcie kodu działającego zarówno z Pythonem 2
+jak i 3 bez modyfikacji. six składa się z tylko jednego pliku
+pythonowego, więc można go bezproblemowo skopiować do projektu.
+
+Ten pakiet zawiera moduł Pythona 3.
+
%prep
%setup -q -n %{module}-%{version}
@@ -58,12 +79,13 @@ Python file, so it is painless to copy into a project.
%install
rm -rf $RPM_BUILD_ROOT
+
%if %{with python2}
%{__python} setup.py \
build --build-base build-2 \
install \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+ --root=$RPM_BUILD_ROOT \
+ --optimize=2
%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
@@ -74,8 +96,8 @@ rm -rf $RPM_BUILD_ROOT
%{__python3} setup.py \
build --build-base build-3 \
install \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+ --root=$RPM_BUILD_ROOT \
+ --optimize=2
%endif
%clean
@@ -85,9 +107,9 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc CHANGES README documentation/*.rst
-%{py_sitescriptdir}/*.py[co]
+%{py_sitescriptdir}/six.py[co]
%if "%{py_ver}" > "2.4"
-%{py_sitescriptdir}/*.egg-info
+%{py_sitescriptdir}/six-%{version}-py*.egg-info
%endif
%endif
@@ -95,7 +117,7 @@ rm -rf $RPM_BUILD_ROOT
%files -n python3-%{module}
%defattr(644,root,root,755)
%doc CHANGES README documentation/*.rst
-%{py3_sitescriptdir}/*.py
-%{py3_sitescriptdir}/__pycache__
-%{py3_sitescriptdir}/*.egg-info
+%{py3_sitescriptdir}/six.py
+%{py3_sitescriptdir}/__pycache__/six.*.py[co]
+%{py3_sitescriptdir}/six-%{version}-py*.egg-info
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-six.git/commitdiff/2a218e9080a0ae6357fa4c8bbfe6ce2445fe9e4b
More information about the pld-cvs-commit
mailing list