diff --git a/.gitignore b/.gitignore index 77fdb21..aea81f4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /fixtures-0.3.9.tar.gz /fixtures-0.3.12.tar.gz /fixtures-0.3.14.tar.gz +/fixtures-1.4.0.tar.gz diff --git a/python-fixtures.spec b/python-fixtures.spec index 19b70d0..144f23c 100644 --- a/python-fixtures.spec +++ b/python-fixtures.spec @@ -6,8 +6,8 @@ %endif Name: python-%{pypi_name} -Version: 0.3.14 -Release: 5%{?dist} +Version: 1.4.0 +Release: 1%{?dist} Summary: Fixtures, reusable state for writing clean tests and more License: ASL 2.0 or BSD @@ -16,59 +16,66 @@ Source0: http://pypi.python.org/packages/source/f/%{pypi_name}/%{pypi_nam BuildArch: noarch BuildRequires: python2-devel +BuildRequires: python-pbr >= 0.11 -Requires: python-testtools +# Requirements +BuildRequires: python-mock +BuildRequires: python-testtools >= 0.9.22 + +Requires: python-testtools >= 0.9.22 +Requires: python-six %description Fixtures defines a Python contract for reusable state / support logic, primarily for unit testing. Helper and adaption logic is included to make it easy to write your own fixtures using the fixtures contract. Glue code is provided that makes using fixtures that meet the Fixtures -contract in unittest compatible test cases easy and straight forward. +contract in unit test compatible test cases easy and straight forward. %if 0%{?with_python3} %package -n python3-%{pypi_name} Summary: Fixtures, reusable state for writing clean tests and more BuildArch: noarch + BuildRequires: python3-devel -BuildRequires: python3-setuptools -Requires: python3-testtools +BuildRequires: python3-pbr >= 0.11 + +# Requirements +BuildRequires: python3-mock +BuildRequires: python3-testtools >= 0.9.22 + +Requires: python3-testtools >= 0.9.22 +Requires: python3-six %description -n python3-%{pypi_name} Fixtures defines a Python contract for reusable state / support logic, primarily for unit testing. Helper and adaption logic is included to make it easy to write your own fixtures using the fixtures contract. Glue code is provided that makes using fixtures that meet the Fixtures -contract in unittest compatible test cases easy and straight forward. +contract in unit test compatible test cases easy and straight forward. %endif - %prep -%setup -q -n %{pypi_name}-%{version} - -%if 0%{?with_python3} -cp -a . %{py3dir} -%endif - +%autosetup -n %{pypi_name}-%{version} %build -%{__python} setup.py build -%if 0%{?with_python3} -pushd %{py3dir} -%{__python3} setup.py build -popd -%endif # with_python3 - +%py2_build +%if 0%{with_python3} +%py3_build +%endif %install +%py2_install %if 0%{?with_python3} -pushd %{py3dir} -%{__python3} setup.py install --skip-build --root %{buildroot} -popd +%py3_install %endif -%{__python} setup.py install --skip-build --root %{buildroot} +%check +%{__python2} -m testtools.run fixtures.test_suite +%if 0%{?with_python3} +%{__python3} -m testtools.run fixtures.test_suite +%endif %files %doc README GOALS NEWS Apache-2.0 BSD COPYING @@ -83,6 +90,12 @@ popd %endif %changelog +* Fri Jan 22 2016 Paul Belanger 1.4.0-1 +- New upstream 1.4.0 release +- Update spec file latest python support +- Fix bogus date warning +- rpmlint warnings + * Tue Nov 10 2015 Fedora Release Engineering - 0.3.14-5 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 @@ -107,7 +120,7 @@ popd * Thu Feb 14 2013 Fedora Release Engineering - 0.3.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild -* Wed Jan 1 2013 Pádraig Brady - 0.3.12-1 +* Tue Jan 1 2013 Pádraig Brady - 0.3.12-1 - Update to 0.3.12 * Fri Nov 16 2012 Pádraig Brady - 0.3.9-4 diff --git a/sources b/sources index 29ba870..69a64fe 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c63c79c87405dbdc8e0f877c3ff583fd fixtures-0.3.14.tar.gz +b706476cb754c9587e7308f9eb18e201 fixtures-1.4.0.tar.gz