Remove subpackage python2-antlr
This commit is contained in:
parent
47146bd84d
commit
bb6eb1530f
@ -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 <chengzihan2@huawei.com> - 19.3.0.-2
|
||||
- Remove subpackage python2-attrs
|
||||
|
||||
* Sat Aug 8 2020 tianwei <tianwei12@huawei.com> - 19.3.0.-1
|
||||
- Package update to 19.3.0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user