commit 9d58d01efd8b0d07e3df9ff03c77f290c2016049 Author: gnaygnil Date: Sat Nov 30 10:54:15 2019 +0800 python-fixtures: openEuler init diff --git a/fixtures-3.0.0.tar.gz b/fixtures-3.0.0.tar.gz new file mode 100644 index 0000000..989e269 Binary files /dev/null and b/fixtures-3.0.0.tar.gz differ diff --git a/python-fixtures.spec b/python-fixtures.spec new file mode 100644 index 0000000..192d2f5 --- /dev/null +++ b/python-fixtures.spec @@ -0,0 +1,62 @@ +Name: python-fixtures +Version: 3.0.0 +Release: 12 +Summary: A python contract for writing reusable state / support logic tests +License: ASL 2.0 or BSD +URL: https://launchpad.net/python-fixtures +Source0: http://pypi.python.org/packages/source/f/fixtures/fixtures-%{version}.tar.gz +BuildArch: noarch +BuildRequires: python2-devel python2-pbr >= 0.11 python2-mock python2-testtools >= 0.9.22 + +%description +Fixtures is a python contract that provides reusable state / support logic +for unit testing. It includes some helper and adaptation logic to write your +own fixtures using the fixtures contract. + +%package -n python2-fixtures +Summary: A python2 contract for reusable state / support logic +Requires: python2-testtools >= 0.9.22 python2-six +%{?python_provide:%python_provide python2-fixtures} + +%description -n python2-fixtures +Fixtures is a python2 contract that provides reusable state / support logic +for unit testing. It includes some helper and adaptation logic to write your +own fixtures using the fixtures contract. + +%package -n python3-fixtures +Summary: A python3 contract for reusable state / support logic +BuildArch: noarch +BuildRequires: python3-devel python3-pbr >= 0.11 python3-mock python3-testtools >= 0.9.22 +Requires: python3-testtools >= 0.9.22 python3-six +%{?python_provide:%python_provide python3-fixtures} + +%description -n python3-fixtures +Fixtures is a python3 contract that provides reusable state / support logic +for unit testing. It includes some helper and adaptation logic to write your +own fixtures using the fixtures contract. + +%prep +%autosetup -n fixtures-%{version} +%build +%py2_build +%py3_build +%install +%py2_install +%py3_install +%check +%{__python2} -m testtools.run fixtures.test_suite +%{__python3} -m testtools.run fixtures.test_suite + +%files -n python2-fixtures +%doc README GOALS NEWS Apache-2.0 BSD COPYING +%{python2_sitelib}/fixtures +%{python2_sitelib}/fixtures-%{version}-py?.?.egg-info + +%files -n python3-fixtures +%doc README GOALS NEWS Apache-2.0 BSD COPYING +%{python3_sitelib}/fixtures +%{python3_sitelib}/fixtures-%{version}-py?.?.egg-info + +%changelog +* Mon Nov 25 2019 Ling Yang - 3.0.0-12 +- Package init