From bb6eb1530f8f2db5ffc41520d77c54ff983cd9f9 Mon Sep 17 00:00:00 2001 From: caodongxia <315816521@qq.com> Date: Fri, 30 Oct 2020 15:07:09 +0800 Subject: [PATCH] Remove subpackage python2-antlr --- python-attrs.spec | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/python-attrs.spec b/python-attrs.spec index d8d98bb..c137a75 100644 --- a/python-attrs.spec +++ b/python-attrs.spec @@ -7,16 +7,15 @@ object protocols. \ Name: python-attrs Summary: Python attributes without boilerplate Version: 19.3.0 -Release: 1 +Release: 2 License: MIT URL: http://www.attrs.org/ Source0: https://github.com/hynek/attrs/archive/%{version}/attrs-%{version}.tar.gz -BuildRequires: python2-devel python%{python3_pkgversion}-setuptools -BuildRequires: python2-setuptools python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-devel %if %{with tests} -BuildRequires: python2-pytest python2-hypothesis python2-six python2-zope-interface BuildRequires: python%{python3_pkgversion}-six python%{python3_pkgversion}-zope-interface BuildRequires: python%{python3_pkgversion}-hypothesis python%{python3_pkgversion}-pytest %endif @@ -26,12 +25,6 @@ BuildArch: noarch %description %{_description} -%package -n python2-attrs -Summary: %{summary} -%{?python_provide:%python_provide python2-%{modname}} - -%description -n python2-attrs - %package -n python%{python3_pkgversion}-attrs Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}} @@ -44,23 +37,16 @@ Summary: %{summary} %autosetup -p1 -n attrs-%{version} %build -%py2_build %py3_build %install -%py2_install %py3_install %if %{with tests} %check -PYTHONPATH=$RPM_BUILD_ROOT/%{python2_sitelib} py.test-2.7 -v PYTHONPATH=$RPM_BUILD_ROOT/%{python3_sitelib} py.test-3 -v %endif -%files -n python2-attrs -%license LICENSE -%{python2_sitelib}/* - %files -n python%{python3_pkgversion}-attrs %license LICENSE %{python3_sitelib}/* @@ -69,6 +55,9 @@ PYTHONPATH=$RPM_BUILD_ROOT/%{python3_sitelib} py.test-3 -v %doc AUTHORS.rst README.rst %changelog +* Wed Oct 21 2020 chengzihan - 19.3.0.-2 +- Remove subpackage python2-attrs + * Sat Aug 8 2020 tianwei - 19.3.0.-1 - Package update to 19.3.0