Blame SPECS/python-nose.spec

16c83a
%{?scl:%scl_package python-nose}
16c83a
%{!?scl:%global pkg_name %{name}}
16c83a
16c83a
%global upstream_name nose
16c83a
16c83a
# Enable building without docs to avoid a circular dependency between this and python-sphinx
16c83a
%global with_docs 1
16c83a
16c83a
Name:           %{?scl_prefix}python-nose
16c83a
Version:        1.3.0
c7e993
Release:        3%{?dist}
16c83a
Summary:        Discovery-based unittest extension for Python
16c83a
16c83a
Group:          Development/Languages
16c83a
License:        LGPLv2+ and Public Domain
16c83a
URL:            http://somethingaboutorange.com/mrl/projects/nose/
16c83a
Source0:        http://pypi.python.org/packages/source/n/nose/nose-%{version}.tar.gz
16c83a
16c83a
BuildRoot:      %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
16c83a
16c83a
BuildArch:      noarch
16c83a
BuildRequires:  %{?scl_prefix}python2-devel
16c83a
BuildRequires:  %{?scl_prefix}python-setuptools
16c83a
BuildRequires:  dos2unix
16c83a
BuildRequires:  %{?scl_prefix}python-coverage >= 3.4-1
16c83a
Requires:       %{?scl_prefix}python-setuptools
16c83a
16c83a
%description
16c83a
nose extends the test loading and running features of unittest, making
16c83a
it easier to write, find and run tests.
16c83a
16c83a
By default, nose will run tests in files or directories under the
16c83a
current working directory whose names include "test" or "Test" at a
16c83a
word boundary (like "test_this" or "functional_test" or "TestClass"
16c83a
but not "libtest"). Test output is similar to that of unittest, but
16c83a
also includes captured stdout output from failing tests, for easy
16c83a
print-style debugging.
16c83a
16c83a
These features, and many more, are customizable through the use of
16c83a
plugins. Plugins included with nose provide support for doctest, code
16c83a
coverage and profiling, flexible attribute-based test selection,
16c83a
output capture and more.
16c83a
16c83a
%package docs
16c83a
Summary:        Nose Documentation
16c83a
Group:          Documentation
16c83a
%if 0%{?with_docs}
16c83a
BuildRequires:  %{?scl_prefix}python-sphinx
16c83a
%endif
16c83a
Requires:       %{?scl_prefix}python-nose
16c83a
16c83a
%description docs
16c83a
Documentation for Nose
16c83a
16c83a
%prep
16c83a
%setup -q -n %{upstream_name}-%{version}
16c83a
16c83a
dos2unix examples/attrib_plugin.py
16c83a
rm doc/*.pyc
16c83a
16c83a
%build
16c83a
%{?scl:scl enable %{scl} "}
16c83a
%{__python} setup.py build
16c83a
%{?scl:"}
16c83a
16c83a
%install
16c83a
rm -rf %{buildroot}
16c83a
%{?scl:scl enable %{scl} "}
16c83a
%{__python} setup.py install --skip-build --root %{buildroot} \
16c83a
           --install-data=%{_datadir}
16c83a
%{?scl:"}
16c83a
16c83a
%if 0%{?with_docs}
16c83a
pushd doc
16c83a
%{?scl:scl enable %{scl} "}
16c83a
make html
16c83a
%{?scl:"}
16c83a
rm -rf .build/html/.buildinfo .build/html/_sources
16c83a
mv .build/html ..
16c83a
rm -rf .build
16c83a
popd
16c83a
%endif # with_docs
16c83a
cp -a doc reST
16c83a
rm -rf reST/.static reST/.templates
16c83a
16c83a
16c83a
%check
16c83a
%{?scl:scl enable %{scl} "}
16c83a
%{__python} selftest.py
16c83a
%{?scl:"}
16c83a
16c83a
16c83a
%clean
16c83a
rm -rf %{buildroot}
16c83a
16c83a
16c83a
%files
16c83a
%defattr(-,root,root,-)
16c83a
%doc AUTHORS CHANGELOG lgpl.txt NEWS README.txt
16c83a
%{_bindir}/nosetests
16c83a
%{_bindir}/nosetests-%{python_version}
16c83a
%{_mandir}/man1/nosetests.1.gz
16c83a
%{python_sitelib}/nose*
16c83a
16c83a
%files docs
16c83a
%defattr(-,root,root,-)
16c83a
%doc reST examples
16c83a
%if 0%{?with_docs}
16c83a
%doc html
16c83a
%endif # with_docs
16c83a
16c83a
%changelog
c7e993
* Thu May 24 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.3.0-3
c7e993
- Rebuild for multi-arch bootstrap
c7e993
16c83a
* Fri Nov 08 2013 Robert Kuska <rkuska@redhat.com> - 1.3.0-2
16c83a
- Bump release number to avoid conflict with rhel-7.0
16c83a
16c83a
* Fri Nov 08 2013 Robert Kuska <rkuska@redhat.com> - 1.3.0-1
16c83a
- Update to 1.3.1
16c83a
16c83a
* Thu Oct 24 2013 Robert Kuska <rkuska@redhat.com> - 1.2.1-7
16c83a
- Rebuild with doc subpackage
16c83a
16c83a
* Fri Jun 07 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.1-6
16c83a
- Fix the race condition in some multiprocessing tests. Fixes rhbz#967222.
16c83a
16c83a
* Tue May 07 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.1-5
16c83a
- Rebuild to generate bytecode properly after fixing rhbz#956289
16c83a
- scl-utils now compile man-pages -> use proper name in %%files.
16c83a
16c83a
* Wed Oct 10 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.1-4
16c83a
- Enable building with documentation, now really.
16c83a
16c83a
* Wed Sep 19 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.1-3
16c83a
- Enable building with documentation.
16c83a
16c83a
* Wed Sep 19 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.1-2
16c83a
- Rebuilt for SCL.
16c83a
16c83a
* Wed Sep 12 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 1.2.1-1
16c83a
- New upsream 1.2.1 that just bumps the version properly
16c83a
16c83a
* Mon Sep 10 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 1.2.0-1
16c83a
- Update to nose-1.2.0.
16c83a
- Two less python3 test failures than 1.1.2
16c83a
16c83a
* Sat Aug  4 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.2-5
16c83a
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
16c83a
- disable selftests that fail under 3.3
16c83a
16c83a
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.2-4
16c83a
- remove rhel logic from with_python3 conditional
16c83a
16c83a
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-3
16c83a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
16c83a
16c83a
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-2
16c83a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
16c83a
16c83a
* Mon Aug 1 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1.2-1
16c83a
- Upstream bugfix release
16c83a
16c83a
* Wed Jul 27 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1.1-1
16c83a
- Upstream bugfix release
16c83a
16c83a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
16c83a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
16c83a
16c83a
* Sun Dec 26 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0.0-1
16c83a
- Update to 1.0.0
16c83a
- Create the docs subpackage for text docs even if we don't create the html docs.
16c83a
- Make python3 subpackage
16c83a
16c83a
* Tue Dec 7 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.11.4-2
16c83a
- Fix FTBFS with newer coverage
16c83a
16c83a
* Thu Oct 21 2010 Luke Macken <lmacken@redhat.com> - 0.11.4-1
16c83a
- Update to 0.11.4 (#3630722)
16c83a
16c83a
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.11.3-5
16c83a
- add support for building without docs, to avoid a circular build-time
16c83a
dependency between this and python-sphinx; disable docs subpackage for now
16c83a
- add (apparently) missing BR on python-coverage (appears to be needed
16c83a
for %%check)
16c83a
- cherrypick upstream compatibility fixes for 2.7
16c83a
16c83a
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.11.3-4
16c83a
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
16c83a
16c83a
* Thu May 20 2010 Luke Macken <lmacken@redhat.com> - 0.11.3-3
16c83a
- Update URL to http://code.google.com/p/python-nose/
16c83a
- Align description to reflect that in setup.py
16c83a
- Create a docs subpackage containing HTML & reST documentation
16c83a
- Thanks to Gareth Armstrong at HP for the patch
16c83a
16c83a
* Thu May 06 2010 Luke Macken <lmacken@redhat.com> - 0.11.3-2
16c83a
- Don't hardcode the python version
16c83a
16c83a
* Thu May 06 2010 Luke Macken <lmacken@redhat.com> - 0.11.3-1
16c83a
- Update to 0.11.3
16c83a
- Enable the self tests
16c83a
16c83a
* Mon Oct 05 2009 Luke Macken <lmacken@redhat.com> - 0.11.1-2
16c83a
- Include the new nosetests-2.6 script as well
16c83a
16c83a
* Mon Oct 05 2009 Luke Macken <lmacken@redhat.com> - 0.11.1-1
16c83a
- Update to 0.11.1
16c83a
16c83a
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.4-3
16c83a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
16c83a
16c83a
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.4-2
16c83a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
16c83a
16c83a
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10.4-1
16c83a
- Update to 0.10.4 to fix 2.6 issues
16c83a
16c83a
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10.3-2
16c83a
- Rebuild for Python 2.6
16c83a
16c83a
* Sat Aug 02 2008 Luke Macken <lmacken@redhat.com> 0.10.3-1
16c83a
- Update to 0.10.3
16c83a
16c83a
* Thu Feb 28 2008 Luke Macken <lmacken@redhat.com> 0.10.1-1
16c83a
- Update to 0.10.1
16c83a
16c83a
* Mon Dec  3 2007 Luke Macken <lmacken@redhat.com> 0.10.0-2
16c83a
- Add python-setuptools to Requires (Bug #408491)
16c83a
16c83a
* Tue Nov 27 2007 Luke Macken <lmacken@redhat.com> 0.10.0-1
16c83a
- 0.10.0
16c83a
16c83a
* Sun Sep  2 2007 Luke Macken <lmacken@redhat.com> 0.10.0-0.3.b1
16c83a
- Update for python-setuptools changes in rawhide
16c83a
16c83a
* Tue Aug 21 2007 Luke Macken <lmacken@redhat.com> 0.10.0-0.2.b1
16c83a
- 0.10.0b1
16c83a
- Update license tag to LGPLv2
16c83a
16c83a
* Fri Jun 20 2007 Luke Macken <lmacken@redhat.com> 0.10.0-0.1.a2
16c83a
- 0.10.0a2
16c83a
16c83a
* Sat Jun  2 2007 Luke Macken <lmacken@redhat.com> 0.9.3-1
16c83a
- Latest upstream release
16c83a
- Remove python-nose-0.9.2-mandir.patch
16c83a
16c83a
* Sat Mar  3 2007 Luke Macken <lmacken@redhat.com> 0.9.2-1
16c83a
- Add nosetests(1) manpage, and python-nose-0.9.2-mandir.patch to put it in
16c83a
  the correct location.
16c83a
- 0.9.2
16c83a
16c83a
* Sat Dec  9 2006 Luke Macken <lmacken@redhat.com> 0.9.1-2
16c83a
- Rebuild for python 2.5
16c83a
16c83a
* Fri Nov 24 2006 Luke Macken <lmacken@redhat.com> 0.9.1-1
16c83a
- 0.9.1
16c83a
16c83a
* Fri Sep  8 2006 Luke Macken <lmacken@redhat.com> 0.9.0-1
16c83a
- 0.9.0
16c83a
16c83a
* Wed Apr 19 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.8.7.2-1
16c83a
- Initial RPM release