3d2660d
%global upstream_name nose-progressive
3d2660d
3d2660d
%if 0%{?fedora} || 0%{?rhel} > 6
3d2660d
%bcond_without python3
3d2660d
%else
3d2660d
%bcond_with python3
3d2660d
%endif
3d2660d
3d2660d
Name:           python-%{upstream_name}
31159b8
Version:        1.5
43afdc6
Release:        1%{?dist}
3d2660d
Summary:        Nose plugin to show a progress bar and tracebacks during tests
3d2660d
License:        GPLv2+
3d2660d
URL:            https://github.com/erikrose/nose-progressive
3d2660d
Source0:        http://pypi.python.org/packages/source/n/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
31159b8
# https://github.com/erikrose/nose-progressive/pull/58
31159b8
Patch0:         0001-read-README.rst-as-UTF-8.patch
3d2660d
BuildArch:      noarch
3d2660d
BuildRequires:  python2-devel
3d2660d
BuildRequires:  python-setuptools
dcbda51
BuildRequires:  python-nose >= 1.2.1
3d2660d
%if %{with python3}
3d2660d
BuildRequires:  python3-devel
3d2660d
BuildRequires:  python3-setuptools
dcbda51
BuildRequires:  python3-nose >= 1.2.1
3d2660d
%endif
dcbda51
Requires:       python-nose >= 1.2.1
3d2660d
Requires:       python-blessings
3d2660d
3d2660d
%description
3d2660d
nose-progressive is a nose plugin which displays progress in a stationary 
3d2660d
progress bar, freeing the rest of the screen (as well as the scrollback buffer) 
3d2660d
for the compact display of test failures, which it formats beautifully and 
3d2660d
usefully. It displays failures and errors as soon as they occur and avoids 
3d2660d
scrolling them off the screen in favor of less useful output. It also offers 
3d2660d
a number of other human-centric features to speed the debugging process.
3d2660d
3d2660d
%if %{with python3}
3d2660d
%package -n python3-%{upstream_name}
3d2660d
Summary:        Nose plugin to show a progress bar and tracebacks during tests
dcbda51
Requires:       python3-nose >= 1.2.1
3d2660d
Requires:       python3-blessings
3d2660d
3d2660d
%description -n python3-%{upstream_name}
3d2660d
nose-progressive is a nose plugin which displays progress in a stationary 
3d2660d
progress bar, freeing the rest of the screen (as well as the scrollback buffer) 
3d2660d
for the compact display of test failures, which it formats beautifully and 
3d2660d
usefully. It displays failures and errors as soon as they occur and avoids 
3d2660d
scrolling them off the screen in favor of less useful output. It also offers 
3d2660d
a number of other human-centric features to speed the debugging process.
3d2660d
%endif
3d2660d
3d2660d
%prep
3d2660d
%setup -q -n %{upstream_name}-%{version}
31159b8
%patch0 -p1
ae05a4d
rm -r nose_progressive.egg-info
3d2660d
3d2660d
%if %{with python3}
3d2660d
rm -rf %{py3dir}
3d2660d
cp -a . %{py3dir}
3d2660d
%endif
3d2660d
3d2660d
%build
3d2660d
%{__python} setup.py build
3d2660d
3d2660d
%if %{with python3}
3d2660d
pushd %{py3dir}
3d2660d
%{__python3} setup.py build
3d2660d
popd
3d2660d
%endif
3d2660d
3d2660d
%install
3d2660d
%if %{with python3}
3d2660d
pushd %{py3dir}
3d2660d
%{__python3} setup.py install --skip-build --root %{buildroot}
3d2660d
popd
3d2660d
%endif
3d2660d
3d2660d
%{__python} setup.py install --skip-build --root %{buildroot}
3d2660d
3d2660d
%check
31159b8
%if %{with python3}
31159b8
pushd %{py3dir}
31159b8
%{__python3} setup.py nosetests
31159b8
popd
31159b8
%endif
31159b8
31159b8
%{__python} setup.py nosetests
3d2660d
3d2660d
%files
3d2660d
%doc README.rst
3d2660d
%{python_sitelib}/noseprogressive
3d2660d
%{python_sitelib}/nose_progressive*.egg-info
3d2660d
3d2660d
%if %{with python3}
3d2660d
%files -n python3-%{upstream_name}
3d2660d
%doc README.rst
3d2660d
%{python3_sitelib}/noseprogressive
3d2660d
%{python3_sitelib}/nose_progressive*.egg-info
3d2660d
%endif
3d2660d
3d2660d
%changelog
31159b8
* Mon Apr 29 2013 Dan Callaghan <dcallagh@redhat.com> - 1.5-1
31159b8
- new upstream bug fix release 1.5
31159b8
43afdc6
* Wed Mar 27 2013 Dan Callaghan <dcallagh@redhat.com> - 1.4.1-1
43afdc6
- new upstream bug fix release 1.4.1
43afdc6
4c42300
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-2
4c42300
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4c42300
dcbda51
* Mon Jan 21 2013 Dan Callaghan <dcallagh@redhat.com> - 1.4-1
dcbda51
- new upstream release 1.4
dcbda51
e691d7e
* Tue Dec 04 2012 Dan Callaghan <dcallagh@redhat.com> - 1.3-3
e691d7e
- fix RPM macro in comment
e691d7e
ae05a4d
* Mon Dec 03 2012 Dan Callaghan <dcallagh@redhat.com> - 1.3-2
ae05a4d
- remove bundled egg-info from upstream tarball
ae05a4d
3d2660d
* Fri Nov 30 2012 Dan Callaghan <dcallagh@redhat.com> - 1.3-1
3d2660d
- initial version