# Created by pyp2rpm-0.5.1 %global pypi_name sure Name: python-%{pypi_name} Version: 1.0.6 Release: 1%{?dist} Summary: Assertion toolbox for python License: MIT URL: https://github.com/gabrielfalcao/sure Source0: http://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz # Already asked upstream to include COPYING in the source tar: # https://github.com/gabrielfalcao/sure/issues/17 Source1: https://raw.github.com/gabrielfalcao/sure/master/COPYING # To get tests: # git clone https://github.com/gabrielfalcao/sure.git && cd sure # git checkout 1.0.6 && tar czf sure-1.0.6-tests.tgz tests/ Source2: %{pypi_name}-%{version}-tests.tgz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-nose BuildRequires: python-setuptools # the library claims to be using these, but it actually isn't # Requires: python-nose # Requires: python-ipdb %description A Python assertion toolbox that works fine with nose. %prep %setup -q -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info cp %{SOURCE1} . %build %{__python} setup.py build %install %{__python} setup.py install --skip-build --root %{buildroot} %check tar xzf %{SOURCE2} nosetests %files %doc COPYING %{python_sitelib}/%{pypi_name} %{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Mon Nov 05 2012 Bohuslav Kabrda - 1.0.6-1 - Update to 1.0.6. * Sat Jul 21 2012 Fedora Release Engineering - 0.10.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jun 26 2012 Bohuslav Kabrda - 0.10.3-2 - python-devel should be python2-devel - URL now points to the real homepage of the project * Fri Jun 22 2012 Bohuslav Kabrda - 0.10.3-1 - Initial package.