8dae2e5
%global pypi_name fixtures
4b8359f
%if 0%{?fedora} > 12
a85f55f
%global with_python3 1
a85f55f
%else
a85f55f
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
a85f55f
%endif
8dae2e5
8dae2e5
Name:           python-%{pypi_name}
4764681
Version:        0.3.14
398bd08
Release:        5%{?dist}
8dae2e5
Summary:        Fixtures, reusable state for writing clean tests and more
8dae2e5
8dae2e5
License:        ASL 2.0 or BSD
8dae2e5
URL:            https://launchpad.net/python-fixtures
8dae2e5
Source0:        http://pypi.python.org/packages/source/f/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
8dae2e5
BuildArch:      noarch
8dae2e5
8dae2e5
BuildRequires:  python2-devel
8dae2e5
8dae2e5
Requires:       python-testtools
8dae2e5
8dae2e5
%description
8dae2e5
Fixtures defines a Python contract for reusable state / support logic,
8dae2e5
primarily for unit testing. Helper and adaption logic is included to
8dae2e5
make it easy to write your own fixtures using the fixtures contract.
8dae2e5
Glue code is provided that makes using fixtures that meet the Fixtures
8dae2e5
contract in unittest compatible test cases easy and straight forward.
8dae2e5
a85f55f
%if 0%{?with_python3}
a85f55f
%package -n python3-%{pypi_name}
a85f55f
Summary:        Fixtures, reusable state for writing clean tests and more
a85f55f
BuildArch:      noarch
a85f55f
BuildRequires:  python3-devel
a85f55f
BuildRequires:  python3-setuptools
a85f55f
Requires:       python3-testtools
a85f55f
a85f55f
%description -n python3-%{pypi_name}
a85f55f
Fixtures defines a Python contract for reusable state / support logic,
a85f55f
primarily for unit testing. Helper and adaption logic is included to
a85f55f
make it easy to write your own fixtures using the fixtures contract.
a85f55f
Glue code is provided that makes using fixtures that meet the Fixtures
a85f55f
contract in unittest compatible test cases easy and straight forward.
a85f55f
a85f55f
%endif
a85f55f
8dae2e5
8dae2e5
%prep
8dae2e5
%setup -q -n %{pypi_name}-%{version}
8dae2e5
a85f55f
%if 0%{?with_python3}
a85f55f
cp -a . %{py3dir}
a85f55f
%endif
a85f55f
8dae2e5
8dae2e5
%build
8dae2e5
%{__python} setup.py build
a85f55f
%if 0%{?with_python3}
a85f55f
pushd %{py3dir}
a85f55f
%{__python3} setup.py build
a85f55f
popd
a85f55f
%endif # with_python3
8dae2e5
8dae2e5
8dae2e5
%install
a85f55f
%if 0%{?with_python3}
a85f55f
pushd %{py3dir}
a85f55f
%{__python3} setup.py install --skip-build --root %{buildroot}
a85f55f
popd
a85f55f
%endif
8dae2e5
%{__python} setup.py install --skip-build --root %{buildroot}
8dae2e5
8dae2e5
8dae2e5
%files
8dae2e5
%doc README GOALS NEWS Apache-2.0 BSD COPYING
8dae2e5
%{python_sitelib}/%{pypi_name}
8dae2e5
%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
8dae2e5
a85f55f
%if 0%{?with_python3}
a85f55f
%files -n python3-%{pypi_name}
a85f55f
%doc README GOALS NEWS Apache-2.0 BSD COPYING
a85f55f
%{python3_sitelib}/%{pypi_name}
a85f55f
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
a85f55f
%endif
a85f55f
8dae2e5
%changelog
398bd08
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.14-5
398bd08
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
398bd08
9b6ec23
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.14-4
9b6ec23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9b6ec23
284df62
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.14-3
284df62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
284df62
1ed31c4
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.3.14-2
1ed31c4
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
1ed31c4
4764681
* Mon Mar 24 2014 Matthias Runge <mrunge@redhat.com> - 0.3.14-1
4764681
- update to 0.3.14
4764681
d511023
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.12-4
d511023
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d511023
a85f55f
* Fri May 31 2013 Matthias Runge <mrunge@redhat.com> - 0.3.12-3
a85f55f
- enable python3
a85f55f
bb06d25
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.12-2
bb06d25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
bb06d25
6235d00
* Wed Jan  1 2013 Pádraig Brady <P@draigBrady.com> - 0.3.12-1
6235d00
- Update to 0.3.12
6235d00
8dae2e5
* Fri Nov 16 2012 Pádraig Brady <P@draigBrady.com> - 0.3.9-4
8dae2e5
- Update changelog
8dae2e5
8dae2e5
* Fri Nov 16 2012 Pádraig Brady <P@draigBrady.com> - 0.3.9-3
8dae2e5
- Fix License:
8dae2e5
8dae2e5
* Thu Nov 15 2012 Pádraig Brady <P@draigBrady.com> - 0.3.9-2
8dae2e5
- Remove version dependency on python-testtools (assume always >= 0.9.12)
8dae2e5
- BuildRequire python2-devel rather than python-devel
8dae2e5
- Adjust License:
8dae2e5
8dae2e5
* Wed Nov 14 2012 Pádraig Brady <P@draigBrady.com> - 0.3.9-1
8dae2e5
- Initial package