[python-asciitable] Runing nosetests for python3 version also
Sergio Pascual
sergiopr at fedoraproject.org
Fri Jan 4 00:36:15 UTC 2013
commit 7d0936056b25a5dab0143f83f5b83aa7b5739fcd
Author: Pasrario <harenawer at zoho.com>
Date: Fri Jan 4 01:36:03 2013 +0100
Runing nosetests for python3 version also
- python3 requires are inside python3 packages (bz #891376)
python-asciitable.spec | 23 +++++++++++++----------
1 files changed, 13 insertions(+), 10 deletions(-)
---
diff --git a/python-asciitable.spec b/python-asciitable.spec
index 6ac0a43..53ac643 100644
--- a/python-asciitable.spec
+++ b/python-asciitable.spec
@@ -8,7 +8,7 @@
Name: python-%{upname}
Version: 0.8.0
-Release: 4%{dist}
+Release: 5%{dist}
Summary: Extensible ASCII table reader and writer
License: BSD
@@ -17,15 +17,9 @@ URL: http://cxc.harvard.edu/contrib/asciitable/
Source0: http://pypi.python.org/packages/source/a/%{upname}/%{upname}-%{version}.tar.gz
BuildRequires: python2-devel python-nose
BuildArch: noarch
-BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Requires: numpy
-%if 0%{?with_python3}
-BuildRequires: python3-devel
-Requires: python3-numpy
-%endif # with_python3
-
%description
An extensible ASCII table reader. Asciitable can read a wide range of ASCII
table formats via built-in Extension Reader Classes:
@@ -44,6 +38,8 @@ table formats via built-in Extension Reader Classes:
%if 0%{?with_python3}
%package -n python3-asciitable
Summary: Extensible ASCII table reader and writer
+BuildRequires: python3-devel python3-nose
+Requires: python3-numpy
%description -n python3-asciitable
An extensible ASCII table reader. Asciitable can read a wide range of ASCII
@@ -82,7 +78,12 @@ popd
%endif # with_python3
%check
-nosetests
+nosetests-%{python2_version}
+%if 0%{?with_python3}
+pushd %{py3dir}
+nosetests-%{python3_version}
+popd
+%endif # with_python3
%install
rm -rf %{buildroot}
@@ -95,19 +96,21 @@ popd
%{__python} setup.py install --skip-build --root %{buildroot}
%files
-%defattr(-,root,root,-)
%doc CHANGES doc/index.rst
%{python_sitelib}/*
%if 0%{?with_python3}
%files -n python3-asciitable
-%defattr(-,root,root,-)
%doc CHANGES doc/index.rst
%{python3_sitelib}/*
%endif # with_python3
%changelog
+* Fri Jan 04 2013 Sergio Pascual <sergiopr at fedoraproject.org> - 0.8.0-5
+- Runing nosetests for python3 version also
+- python3 requires are inside python3 packages (bz #891376)
+
* Fri Aug 03 2012 David Malcolm <dmalcolm at redhat.com> - 0.8.0-4
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
More information about the scm-commits
mailing list