1e7b27e
%global pypi_name testscenarios
1e7b27e
1e7b27e
Name:           python-%{pypi_name}
1e7b27e
Version:        0.4
1e7b27e
Release:        2%{?dist}
1e7b27e
Summary:        Testscenarios, a pyunit extension for dependency injection
1e7b27e
1e7b27e
License:        ASL 2.0 and BSD
1e7b27e
URL:            https://launchpad.net/testscenarios
1e7b27e
Source0:        http://pypi.python.org/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
1e7b27e
BuildArch:      noarch
1e7b27e
 
1e7b27e
BuildRequires:  python2-devel
1e7b27e
BuildRequires:  python-setuptools 
1e7b27e
Requires:       python-testtools
1e7b27e
1e7b27e
%description
1e7b27e
testscenarios provides clean dependency injection for python unittest style
1e7b27e
tests. This can be used for interface testing (testing many implementations via
1e7b27e
a single test suite) or for classic dependency injection (provide tests with
1e7b27e
dependencies externally to the test code itself, allowing easy testing in
1e7b27e
different situations).
1e7b27e
1e7b27e
%prep
1e7b27e
%setup -q -n %{pypi_name}-%{version}
1e7b27e
# Remove bundled egg-info
1e7b27e
rm -rf %{pypi_name}.egg-info
1e7b27e
1e7b27e
1e7b27e
%build
1e7b27e
%{__python} setup.py build
1e7b27e
1e7b27e
1e7b27e
%install
1e7b27e
%{__python} setup.py install --skip-build --root %{buildroot}
1e7b27e
1e7b27e
1e7b27e
%files
1e7b27e
%doc Apache-2.0 BSD GOALS HACKING NEWS README doc/
1e7b27e
%{python_sitelib}/%{pypi_name}
1e7b27e
%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
1e7b27e
1e7b27e
%changelog
1e7b27e
* Tue May 21 2013 Matthias Runge <mrunge@redhat.com> - 0.4-2
1e7b27e
- correct License: ASL 2.0 and BSD
1e7b27e
- include doc files
1e7b27e
1e7b27e
* Fri May 17 2013 Matthias Runge <mrunge@redhat.com> - 0.4-1
1e7b27e
- Initial package.