# Created by pyp2rpm-1.1.2 %global pypi_name discover Name: python-%{pypi_name} Version: 0.4.0 Release: 1%{?dist} Summary: Test discovery for unittest. Backported from Python 2.7 for Python 2.4+ License: BSD URL: http://pypi.python.org/pypi/discover/ Source0: https://pypi.python.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools Requires: python-setuptools %description This is the test discovery mechanism and load_tests protocol for unittest backported from Python 2.7 to work with Python 2.4 or more recent (including Python 3). %prep %setup -q -n %{pypi_name}-%{version} %build %{__python2} setup.py build %install %{__python2} setup.py install --skip-build --root %{buildroot} %files %doc README.txt %{_bindir}/discover %{python2_sitelib}/discover.py %exclude %{python2_sitelib}/discover.py* %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Mon Aug 10 2015 chandankumar - 0.4.0-1 - Initial package.