!2 Remove python2-fixtures subpackage

Merge pull request !2 from ultra_planet/master
This commit is contained in:
openeuler-ci-bot 2020-08-10 14:24:47 +08:00 committed by Gitee
commit 22db10581a

View File

@ -1,28 +1,17 @@
Name: python-fixtures Name: python-fixtures
Version: 3.0.0 Version: 3.0.0
Release: 12 Release: 13
Summary: A python contract for writing reusable state / support logic tests Summary: A python contract for writing reusable state / support logic tests
License: ASL 2.0 or BSD License: ASL 2.0 or BSD
URL: https://launchpad.net/python-fixtures URL: https://launchpad.net/python-fixtures
Source0: http://pypi.python.org/packages/source/f/fixtures/fixtures-%{version}.tar.gz Source0: http://pypi.python.org/packages/source/f/fixtures/fixtures-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: python2-devel python2-pbr >= 0.11 python2-mock python2-testtools >= 0.9.22
%description %description
Fixtures is a python contract that provides reusable state / support logic Fixtures is a python contract that provides reusable state / support logic
for unit testing. It includes some helper and adaptation logic to write your for unit testing. It includes some helper and adaptation logic to write your
own fixtures using the fixtures contract. 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 %package -n python3-fixtures
Summary: A python3 contract for reusable state / support logic Summary: A python3 contract for reusable state / support logic
BuildArch: noarch BuildArch: noarch
@ -37,20 +26,15 @@ own fixtures using the fixtures contract.
%prep %prep
%autosetup -n fixtures-%{version} %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 %build
%doc README GOALS NEWS Apache-2.0 BSD COPYING %py3_build
%{python2_sitelib}/fixtures
%{python2_sitelib}/fixtures-%{version}-py?.?.egg-info %install
%py3_install
%check
%{__python3} -m testtools.run fixtures.test_suite
%files -n python3-fixtures %files -n python3-fixtures
%doc README GOALS NEWS Apache-2.0 BSD COPYING %doc README GOALS NEWS Apache-2.0 BSD COPYING
@ -58,5 +42,8 @@ own fixtures using the fixtures contract.
%{python3_sitelib}/fixtures-%{version}-py?.?.egg-info %{python3_sitelib}/fixtures-%{version}-py?.?.egg-info
%changelog %changelog
* Mon Aug 10 2020 lingsheng <lingsheng@huawei.com> - 3.0.0-13
- Remove python2-fixtures subpackage
* Mon Nov 25 2019 Ling Yang <lingyang2@huawei.com> - 3.0.0-12 * Mon Nov 25 2019 Ling Yang <lingyang2@huawei.com> - 3.0.0-12
- Package init - Package init