[python-stevedore] Latest upstream with python3 subpackage.
Ralph Bean
ralph at fedoraproject.org
Tue Apr 8 13:54:31 UTC 2014
commit 8bb7c647bab7cf306a183226f386f900647e970e
Author: Ralph Bean <rbean at redhat.com>
Date: Thu Apr 3 11:20:06 2014 -0400
Latest upstream with python3 subpackage.
.gitignore | 1 +
python-stevedore.spec | 66 ++++++++++++++++++++++++++++++++++++++++++++++++-
sources | 2 +-
3 files changed, 67 insertions(+), 2 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index fc46528..fcebd2a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
/stevedore-0.11.tar.gz
/stevedore-0.12.tar.gz
/stevedore-0.14.tar.gz
+/stevedore-0.15.tar.gz
diff --git a/python-stevedore.spec b/python-stevedore.spec
index f8104e8..ab9a346 100644
--- a/python-stevedore.spec
+++ b/python-stevedore.spec
@@ -1,5 +1,9 @@
+%if 0%{?fedora}
+%global with_python3 1
+%endif
+
Name: python-stevedore
-Version: 0.14
+Version: 0.15
Release: 1%{?dist}
Summary: Manage dynamic plugins for Python applications
@@ -12,25 +16,85 @@ BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: python-pbr
+BuildRequires: python-nose
+BuildRequires: python-mock
+
+Requires: python-setuptools
+
+%if 0%{?with_python3}
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pbr
+BuildRequires: python3-nose
+BuildRequires: python3-mock
+%endif
%description
Manage dynamic plugins for Python applications
+%if 0%{?with_python3}
+%package -n python3-stevedore
+Summary: Manage dynamic plugins for Python applications
+Group: Development/Libraries
+
+Requires: python3-setuptools
+
+%description -n python3-stevedore
+Manage dynamic plugins for Python applications
+%endif
+
%prep
%setup -q -n stevedore-%{version}
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif
+
%build
%{__python} setup.py build
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif
+
%install
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
+popd
+%endif
+
%{__python} setup.py install --skip-build --root %{buildroot}
+%check
+PYTHONPATH=. nosetests
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+PYTHONPATH=. nosetests-%{python3_version}
+popd
+%endif
+
%files
%doc README.rst LICENSE
%{python_sitelib}/stevedore
%{python_sitelib}/stevedore-%{version}-py?.?.egg-info
+%files -n python3-stevedore
+%doc README.rst LICENSE
+%{python3_sitelib}/stevedore
+%{python3_sitelib}/stevedore-%{version}-py?.?.egg-info
+
%changelog
+* Thu Apr 03 2014 Ralph Bean <rbean at redhat.com> - 0.15-1
+- Latest upstream
+- Package python3-stevedore subpackage
+- Add Requires on python-setuptools.
+- Added a %%check section.
+
* Mon Jan 27 2014 Pádraig Brady <pbrady at redhat.com> - 0.14-1
- Latest upstream
diff --git a/sources b/sources
index 59f4639..e9d1642 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-63530bd2eacc515ed31620d3b295c12c stevedore-0.14.tar.gz
+437ee0a0168c78433b2b8faec0ae482d stevedore-0.15.tar.gz
More information about the scm-commits
mailing list