%define name python-nose %define srcname nose %define version 1.3.7 %define release 1 %define is_python %(test -e /usr/bin/python && echo 1 || echo 0) %if %{is_python} %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)") %endif %define _libdir64 %{_prefix}/lib64 %define is_python_64 %(test -e /usr/bin/python_64 && echo 1 || echo 0) %if %{is_python_64} %define python_sitelib64 %(python_64 -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)") %endif Summary: nose extends unittest to make testing easier Name: %{name} Version: %{version} Release: %{release} Source0: %{srcname}-%{version}.tar.gz #Patch0: %{srcname}-1.3.0.issue131.patch License: GNU LGPL Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Prefix: %{_prefix} BuildArch: noarch Vendor: Jason Pellerin Url: http://readthedocs.org/docs/nose/ BuildRequires: python, python-devel Requires: python %description nose extends the test loading and running features of unittest, making it easier to write, find and run tests. By default, nose will run tests in files or directories under the current working directory whose names include "test" or "Test" at a word boundary (like "test_this" or "functional_test" or "TestClass" but not "libtest"). Test output is similar to that of unittest, but also includes captured stdout output from failing tests, for easy print-style debugging. These features, and many more, are customizable through the use of plugins. Plugins included with nose provide support for doctest, code coverage and profiling, flexible attribute-based test selection, output capture and more. More information about writing plugins may be found on in the nose API documentation, here: http://readthedocs.org/docs/nose/ If you have recently reported a bug marked as fixed, or have a craving for the very latest, you may want the development version instead: https://github.com/nose-devs/nose/tarball/master#egg=nose-dev %prep %setup -q -n %{srcname}-%{version} #%patch0 -p1 -b .issue131 mkdir ../32bit mv * ../32bit mv ../32bit . mkdir 64bit cp -r 32bit/* 64bit/ %build cd 64bit python_64 setup.py build cd ../32bit python setup.py build %install [ -d "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT cd 64bit python_64 setup.py install --skip-build --root ${RPM_BUILD_ROOT} cd ../32bit python setup.py install --skip-build --root ${RPM_BUILD_ROOT} cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc 32bit/AUTHORS 32bit/CHANGELOG 32bit/PKG-INFO 32bit/NEWS 32bit/README.txt 32bit/lgpl.txt %doc 32bit/doc/*.rst %{_bindir}/* /usr/bin/* %{_mandir}/man?/* %{python_sitelib}/* %changelog * Thu Apr 06 2017 Ravi Hirekurabar 1.3.7-1 - Updated to 1.3.7 * Thu Jun 10 2013 Tristan Delhalle - 1.3.0-1 - first version for AIX V6.1 and higher