[python-six] initial packaging

dmalcolm dmalcolm at fedoraproject.org
Thu Jul 21 18:01:14 UTC 2011


commit 81b2c2f304521ac85cb90eb25e72a96638a7afc8
Author: David Malcolm <dmalcolm at redhat.com>
Date:   Thu Jul 21 13:56:10 2011 -0400

    initial packaging

 .gitignore      |    1 +
 python-six.spec |   71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources         |    1 +
 3 files changed, 73 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ecaf474 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/six-1.0.0.tar.gz
diff --git a/python-six.spec b/python-six.spec
new file mode 100644
index 0000000..ed9cd43
--- /dev/null
+++ b/python-six.spec
@@ -0,0 +1,71 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+
+%global __python3 python3
+
+%{!?python3_sitelib: %global python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+
+Name:           python-six
+Version:        1.0.0
+Release:        1%{?dist}
+Summary:        Python 2 and 3 compatibility utilities
+
+Group:          Development/Languages
+License:        MIT
+URL:            http://pypi.python.org/pypi/six/
+Source0:        http://pypi.python.org/packages/source/s/six/six-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+BuildRequires:  python-devel
+BuildRequires:  python3-devel
+
+%description
+python-six provides simple utilities for wrapping over differences between
+Python 2 and Python 3.
+
+This is the Python 2 build of the module.
+
+%package -n python3-six
+Summary:        Python 2 and 3 compatibility utilities
+Group:          Development/Languages
+
+%description -n python3-six
+python-six provides simple utilities for wrapping over differences between
+Python 2 and Python 3.
+
+This is the Python 3 build of the module.
+
+%prep
+%setup -q -n six-%{version}
+
+
+%build
+%{__python} setup.py build
+%{__python3} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE README documentation/index.rst
+%{python_sitelib}/*
+
+%files -n python3-six
+%defattr(-,root,root,-)
+%doc LICENSE README documentation/index.rst
+%{python3_sitelib}/*
+
+
+%changelog
+* Thu Mar 24 2011 David Malcolm <dmalcolm at redhat.com> - 1.0.0-1
+- initial packaging
+
+
diff --git a/sources b/sources
index e69de29..b618544 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+37c7ff036fdff2b1bb8d55e49ccb3b44  six-1.0.0.tar.gz


More information about the scm-commits mailing list