Remove subpackage python2-antlr
This commit is contained in:
parent
47146bd84d
commit
bb6eb1530f
@ -7,16 +7,15 @@ object protocols. \
|
|||||||
Name: python-attrs
|
Name: python-attrs
|
||||||
Summary: Python attributes without boilerplate
|
Summary: Python attributes without boilerplate
|
||||||
Version: 19.3.0
|
Version: 19.3.0
|
||||||
Release: 1
|
Release: 2
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://www.attrs.org/
|
URL: http://www.attrs.org/
|
||||||
Source0: https://github.com/hynek/attrs/archive/%{version}/attrs-%{version}.tar.gz
|
Source0: https://github.com/hynek/attrs/archive/%{version}/attrs-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: python2-devel python%{python3_pkgversion}-setuptools
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||||
BuildRequires: python2-setuptools python%{python3_pkgversion}-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
|
|
||||||
%if %{with tests}
|
%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}-six python%{python3_pkgversion}-zope-interface
|
||||||
BuildRequires: python%{python3_pkgversion}-hypothesis python%{python3_pkgversion}-pytest
|
BuildRequires: python%{python3_pkgversion}-hypothesis python%{python3_pkgversion}-pytest
|
||||||
%endif
|
%endif
|
||||||
@ -26,12 +25,6 @@ BuildArch: noarch
|
|||||||
%description
|
%description
|
||||||
%{_description}
|
%{_description}
|
||||||
|
|
||||||
%package -n python2-attrs
|
|
||||||
Summary: %{summary}
|
|
||||||
%{?python_provide:%python_provide python2-%{modname}}
|
|
||||||
|
|
||||||
%description -n python2-attrs
|
|
||||||
|
|
||||||
%package -n python%{python3_pkgversion}-attrs
|
%package -n python%{python3_pkgversion}-attrs
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
|
||||||
@ -44,23 +37,16 @@ Summary: %{summary}
|
|||||||
%autosetup -p1 -n attrs-%{version}
|
%autosetup -p1 -n attrs-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
PYTHONPATH=$RPM_BUILD_ROOT/%{python2_sitelib} py.test-2.7 -v
|
|
||||||
PYTHONPATH=$RPM_BUILD_ROOT/%{python3_sitelib} py.test-3 -v
|
PYTHONPATH=$RPM_BUILD_ROOT/%{python3_sitelib} py.test-3 -v
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n python2-attrs
|
|
||||||
%license LICENSE
|
|
||||||
%{python2_sitelib}/*
|
|
||||||
|
|
||||||
%files -n python%{python3_pkgversion}-attrs
|
%files -n python%{python3_pkgversion}-attrs
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
@ -69,6 +55,9 @@ PYTHONPATH=$RPM_BUILD_ROOT/%{python3_sitelib} py.test-3 -v
|
|||||||
%doc AUTHORS.rst README.rst
|
%doc AUTHORS.rst README.rst
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Aug 8 2020 tianwei <tianwei12@huawei.com> - 19.3.0.-1
|
||||||
- Package update to 19.3.0
|
- Package update to 19.3.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user