diff --git a/.cvsignore b/.cvsignore index e69de29..6b13fae 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +nose-0.8.7.2.tar.gz diff --git a/python-nose.spec b/python-nose.spec new file mode 100644 index 0000000..155e03d --- /dev/null +++ b/python-nose.spec @@ -0,0 +1,49 @@ +%{!?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]")} + +Name: python-nose +Version: 0.8.7.2 +Release: 1%{?dist} +Summary: A discovery-based unittest extension for Python + +Group: Development/Languages +License: LGPL +URL: http://somethingaboutorange.com/mrl/projects/nose/ +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 python-setuptools >= 0.6a9 +Requires: python-abi = %{pyver} + +%description +nose: a discovery-based unittest extension. + +nose provides an alternate test discovery and running process for unittest, +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} + +%build +CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --single-version-externally-managed + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc AUTHORS CHANGELOG lgpl.txt NEWS README.txt +%{_bindir}/nosetests +%{python_sitelib}/nose-%{version}-py%{pyver}.egg-info +%{python_sitelib}/nose + +%changelog +* Wed Apr 19 2006 Ignacio Vazquez-Abrams 0.8.7.2-1 +- Initial RPM release diff --git a/sources b/sources index e69de29..0374cdf 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +400cf55994cfec7772292319f7cd195d nose-0.8.7.2.tar.gz