|
|
8eb72e0 |
%if 0%{?fedora}
|
|
|
8eb72e0 |
%global with_python3 1
|
|
|
8eb72e0 |
%endif
|
|
|
8eb72e0 |
|
|
|
1e7b27e |
%global pypi_name testscenarios
|
|
|
1e7b27e |
|
|
|
1e7b27e |
Name: python-%{pypi_name}
|
|
|
bc7d43c |
Version: 0.5.0
|
|
|
31c462f |
Release: 5%{?dist}
|
|
|
1e7b27e |
Summary: Testscenarios, a pyunit extension for dependency injection
|
|
|
1e7b27e |
|
|
|
1e7b27e |
License: ASL 2.0 and BSD
|
|
|
1e7b27e |
URL: https://launchpad.net/testscenarios
|
|
|
bc7d43c |
Source0: https://pypi.python.org/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
1e7b27e |
BuildArch: noarch
|
|
|
bc7d43c |
|
|
|
1e7b27e |
BuildRequires: python2-devel
|
|
|
bc7d43c |
BuildRequires: python-setuptools
|
|
|
bc7d43c |
BuildRequires: python-pbr
|
|
|
bc7d43c |
|
|
|
1e7b27e |
Requires: python-testtools
|
|
|
8eb72e0 |
%if 0%{?with_python3}
|
|
|
8eb72e0 |
BuildRequires: python3-devel
|
|
|
8eb72e0 |
BuildRequires: python3-setuptools
|
|
|
8eb72e0 |
BuildRequires: python3-testtools
|
|
|
bc7d43c |
BuildRequires: python3-pbr
|
|
|
8eb72e0 |
%endif # with_python3
|
|
|
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 |
|
|
|
8eb72e0 |
%if 0%{?with_python3}
|
|
|
8eb72e0 |
%package -n python3-%{pypi_name}
|
|
|
8eb72e0 |
Summary: Testscenarios, a pyunit extension for dependency injection
|
|
|
8eb72e0 |
Group: Development/Languages
|
|
|
8eb72e0 |
Requires: python3
|
|
|
8eb72e0 |
|
|
|
8eb72e0 |
%description -n python3-%{pypi_name}
|
|
|
8eb72e0 |
testscenarios provides clean dependency injection for python unittest style
|
|
|
8eb72e0 |
tests. This can be used for interface testing (testing many implementations via
|
|
|
8eb72e0 |
a single test suite) or for classic dependency injection (provide tests with
|
|
|
8eb72e0 |
dependencies externally to the test code itself, allowing easy testing in
|
|
|
8eb72e0 |
different situations).
|
|
|
8eb72e0 |
%endif # with_python3
|
|
|
8eb72e0 |
|
|
|
1e7b27e |
%prep
|
|
|
1e7b27e |
%setup -q -n %{pypi_name}-%{version}
|
|
|
1e7b27e |
# Remove bundled egg-info
|
|
|
1e7b27e |
rm -rf %{pypi_name}.egg-info
|
|
|
1e7b27e |
|
|
|
8eb72e0 |
%if 0%{?with_python3}
|
|
|
8eb72e0 |
cp -a . %{py3dir}
|
|
|
8eb72e0 |
%endif # with_python3
|
|
|
8eb72e0 |
|
|
|
1e7b27e |
|
|
|
1e7b27e |
%build
|
|
|
1e7b27e |
%{__python} setup.py build
|
|
|
1e7b27e |
|
|
|
8eb72e0 |
%if 0%{?with_python3}
|
|
|
8eb72e0 |
pushd %{py3dir}
|
|
|
8eb72e0 |
%{__python3} setup.py build
|
|
|
8eb72e0 |
popd
|
|
|
8eb72e0 |
%endif # with_python3
|
|
|
8eb72e0 |
|
|
|
1e7b27e |
|
|
|
1e7b27e |
%install
|
|
|
1e7b27e |
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
|
1e7b27e |
|
|
|
8eb72e0 |
%if 0%{?with_python3}
|
|
|
8eb72e0 |
pushd %{py3dir}
|
|
|
8eb72e0 |
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
8eb72e0 |
popd
|
|
|
8eb72e0 |
%endif # with_python3
|
|
|
8eb72e0 |
|
|
|
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 |
|
|
|
8eb72e0 |
%if 0%{?with_python3}
|
|
|
8eb72e0 |
%files -n python3-%{pypi_name}
|
|
|
8eb72e0 |
%doc Apache-2.0 BSD GOALS HACKING NEWS README doc/
|
|
|
8eb72e0 |
%{python3_sitelib}/*
|
|
|
8eb72e0 |
%endif # with_python3
|
|
|
8eb72e0 |
|
|
|
1e7b27e |
%changelog
|
|
|
31c462f |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-5
|
|
|
31c462f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
31c462f |
|
|
|
a487471 |
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.5.0-4
|
|
|
a487471 |
- Rebuild for Python 3.6
|
|
|
a487471 |
|
|
|
2d31037 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-3
|
|
|
2d31037 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
2d31037 |
|
|
|
8fb6620 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2
|
|
|
8fb6620 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
8fb6620 |
|
|
|
bc7d43c |
* Fri Nov 20 2015 Matthias Runge <mrunge@redhat.com> - 0.5.0-1
|
|
|
bc7d43c |
- update to 0.5.0
|
|
|
bc7d43c |
|
|
|
076e3c6 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-7
|
|
|
076e3c6 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
076e3c6 |
|
|
|
63f1003 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-6
|
|
|
63f1003 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
63f1003 |
|
|
|
8eb72e0 |
* Fri Apr 03 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.4-5
|
|
|
8eb72e0 |
- Add python3 support (RHBZ #1208889)
|
|
|
8eb72e0 |
|
|
|
792d03a |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-4
|
|
|
792d03a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
792d03a |
|
|
|
1573c35 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-3
|
|
|
1573c35 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
1573c35 |
|
|
|
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.
|