%global pypi_name assertEquals %global commit a2af39f67d4137adc58ce632073fb325fc62142a Name: python-%{pypi_name} Version: 0.4.4 Release: 1%{?dist} Summary: assertEquals is an epic testing interface for Python Group: Development/Languages License: BSD URL: http://whit537.github.io/%{pypi_name} # was at http://www.zetadev.com/software/testosterone/ Source0: https://github.com/whit537/assertEquals/archive/%{commit}/%{pypi_name}-%{commit}.tar.gz # adds test_suite to setup.py and deletes some entries from packages Patch0: assertEquals-setup.patch # fixes imports (because of moving tests outside line 35) and some tests Patch1: assertEquals-test.patch BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools Obsoletes: python-testosterone < 0.4.1-8 Provides: python-testosterone = %{version}-%{release} %description assertEquals is an interface for running tests written with the Python standard library's unittest module. It used to be named testosterone. It delivers summary and detail reports on TestCases discovered in module-space, via both a command-line and a curses(3) interface. The interactive mode is the default, but it depends on the non-interactive mode. For debugging, static tracebacks and interactive Python debugger (Pdb) sessions are available in both scripted and interactive modes. %prep %setup -q -n %{pypi_name}-%{commit} # move tests outside mv assertEquals/tests/ . # delete demo.py which stores demo tests for assertEquals to show off # displaying off errors and fails rm -f tests/demo.py %patch0 %patch1 %build %{__python} setup.py build %install %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{_bindir} install -m 755 bin/%{pypi_name} $RPM_BUILD_ROOT/%{_bindir}/%{pypi_name} gzip -c -9 doc/man1/%{pypi_name}.1 > %{pypi_name}.1.gz mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/ install -m 444 %{pypi_name}.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1/%{pypi_name}.1.gz %check python setup.py test %files %doc README.rst LICENSE %{python_sitelib}/* %{_bindir}/%{pypi_name} %{_mandir}/man1/%{pypi_name}.1.gz %changelog * Tue Jun 18 2013 Robert Kuska - 0.4.4-1 - Renamed to reflect package name chage * Thu Feb 14 2013 Fedora Release Engineering - 0.4.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 0.4.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 0.4.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Feb 09 2011 Fedora Release Engineering - 0.4.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Jul 22 2010 David Malcolm - 0.4.1-3 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Sun Jul 26 2009 Fedora Release Engineering - 0.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed May 20 2009 David Malcolm - 0.4.1-1 - initial package