Remove subpackage python2-blinker

This commit is contained in:
lei_ju 2020-10-30 14:15:20 +08:00
parent bdc5457acb
commit 054d6cadf8

View File

@ -1,12 +1,12 @@
Name: python-blinker Name: python-blinker
Version: 1.4 Version: 1.4
Release: 5 Release: 6
Summary: A powerful signal lib based on Python Summary: A powerful signal lib based on Python
License: MIT License: MIT
URL: https://pythonhosted.org/blinker/ URL: https://pythonhosted.org/blinker/
Source0: https://pypi.python.org/packages/source/b/blinker/blinker-%{version}.tar.gz Source0: https://pypi.python.org/packages/source/b/blinker/blinker-%{version}.tar.gz
BuildRequires: python2-devel python2-setuptools python3-devel python3-setuptools BuildRequires: python3-devel python3-setuptools
BuildArch: noarch BuildArch: noarch
@ -15,15 +15,6 @@ Blinker is a signal lib based on Python.It supports both object-to-object
and multicasting for python object.The core of blinker is minimal but provides and multicasting for python object.The core of blinker is minimal but provides
quite powerful features. quite powerful features.
%package -n python2-blinker
Summary: A powerful signal lib based on Python2
%{?python_provide:%python_provide python2-blinker}
%description -n python2-blinker
Blinker is a signal lib based on Python2.It supports both object-to-object
and multicasting for python object.The core of blinker is minimal but provides
quite powerful features.
%package -n python3-blinker %package -n python3-blinker
Summary: A powerful signal lib based on Python3 Summary: A powerful signal lib based on Python3
%{?python_provide:%python_provide python3-blinker} %{?python_provide:%python_provide python3-blinker}
@ -40,30 +31,24 @@ rm -rf %{py3dir}
cp -a . %{py3dir} cp -a . %{py3dir}
%build %build
%{__python2} setup.py build
cd %{py3dir} cd %{py3dir}
%{__python3} setup.py build %{__python3} setup.py build
cd - cd -
%install %install
%{__python2} setup.py install -O1 --root $RPM_BUILD_ROOT --skip-build
cd %{py3dir} cd %{py3dir}
%{__python3} setup.py install -O1 --root $RPM_BUILD_ROOT --skip-build %{__python3} setup.py install -O1 --root $RPM_BUILD_ROOT --skip-build
cd - cd -
%files -n python2-blinker
%doc docs/ CHANGES LICENSE README.md PKG-INFO
%{python2_sitelib}/*.egg-info
%{python2_sitelib}/blinker
%files -n python3-blinker %files -n python3-blinker
%doc docs/ CHANGES LICENSE README.md PKG-INFO %doc docs/ CHANGES LICENSE README.md PKG-INFO
%{python3_sitelib}/*.egg-info %{python3_sitelib}/*.egg-info
%{python3_sitelib}/blinker %{python3_sitelib}/blinker
%changelog %changelog
* Wed Oct 21 2020 chengzihan <chengzihan2@huawei.com> - 1.4-6
- Remove subpackage python2-blinker
* Tue Sep 29 2020 liuweibo <liuweibo10@huawei.com> - 1.4-5 * Tue Sep 29 2020 liuweibo <liuweibo10@huawei.com> - 1.4-5
- Fix Source0 - Fix Source0