|
|
|
@ -1,27 +1,19 @@
|
|
|
|
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
|
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
|
|
|
|
|
|
|
|
|
|
%define _betatag b1
|
|
|
|
|
|
|
|
|
|
Name: python-nose
|
|
|
|
|
Version: 0.10.0
|
|
|
|
|
Release: 0.3.%{_betatag}%{?dist}
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: A discovery-based unittest extension for Python
|
|
|
|
|
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
License: LGPLv2
|
|
|
|
|
URL: http://somethingaboutorange.com/mrl/projects/nose/
|
|
|
|
|
Source0: http://somethingaboutorange.com/mrl/projects/nose/nose-%{version}%{_betatag}.tar.gz
|
|
|
|
|
Source0: http://somethingaboutorange.com/mrl/projects/nose/nose-%{version}.tar.gz
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: python-devel
|
|
|
|
|
%if 0%{?fedora} >= 8
|
|
|
|
|
BuildRequires: python-setuptools-devel
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: python-devel python-setuptools-devel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -32,7 +24,7 @@ one that is intended to mimic the behavior of py.test as much as is
|
|
|
|
|
reasonably possible without resorting to too much magic.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n nose-%{version}%{_betatag}
|
|
|
|
|
%setup -q -n nose-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
|
|
|
@ -50,10 +42,13 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%doc AUTHORS CHANGELOG lgpl.txt NEWS README.txt
|
|
|
|
|
%{_bindir}/nosetests
|
|
|
|
|
%{_mandir}/man1/nosetests.1.gz
|
|
|
|
|
%{python_sitelib}/nose-%{version}%{_betatag}-py%{pyver}.egg-info
|
|
|
|
|
%{python_sitelib}/nose-%{version}-py%{pyver}.egg-info
|
|
|
|
|
%{python_sitelib}/nose
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Nov 27 2007 Luke Macken <lmacken@redhat.com> 0.10.0-1
|
|
|
|
|
- 0.10.0
|
|
|
|
|
|
|
|
|
|
* Sun Sep 2 2007 Luke Macken <lmacken@redhat.com> 0.10.0-0.3.b1
|
|
|
|
|
- Update for python-setuptools changes in rawhide
|
|
|
|
|
|
|
|
|
|