!2 remove the python2 subpackage
From: @yaokai13 Reviewed-by: @jeff200902,@small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
39eaea5d30
@ -1,37 +1,18 @@
|
||||
Name: python-zmq
|
||||
Version: 17.0.0
|
||||
Release: 4
|
||||
Release: 5
|
||||
Summary: Python bindings for zeromq
|
||||
License: LGPLv3+ and ASL 2.0 and BSD
|
||||
URL: http://www.zeromq.org/bindings:python
|
||||
Source0: https://github.com/zeromq/pyzmq/archive/v%{version}.tar.gz#/pyzmq-%{version}.tar.gz
|
||||
BuildRequires: python2-devel python2-setuptools zeromq-devel python2-Cython
|
||||
BuildRequires: zeromq-devel python3-Cython
|
||||
BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-setuptools
|
||||
BuildRequires: python2-tools chrpath python3-devel
|
||||
BuildRequires: chrpath python3-devel
|
||||
|
||||
%description
|
||||
This package contains the Python bindings for 0MQ.0MQ is a
|
||||
lightweight and fast messaging implementation.
|
||||
|
||||
%package -n python2-zmq
|
||||
Summary: Python bindings for zeromq
|
||||
%{?python_provide:%python_provide python2-zmq}
|
||||
|
||||
%description -n python2-zmq
|
||||
This package contains the Python bindings for 0MQ.0MQ is a
|
||||
lightweight and fast messaging implementation.
|
||||
|
||||
%package -n python2-zmq-devel
|
||||
Summary: Python bindings for zeromq
|
||||
License: LGPLv3+
|
||||
Requires: python2-zmq = %{version}-%{release}
|
||||
Provides: python2-zmq-tests = %{version}-%{release}
|
||||
Obsoletes: python2-zmq-tests < %{version}-%{release}
|
||||
|
||||
%description -n python2-zmq-devel
|
||||
This package contains the testsuite for the 0MQ.0MQ is a
|
||||
lightweight and fast messaging implementation.
|
||||
|
||||
%package -n python%{python3_pkgversion}-zmq
|
||||
Summary: Python bindings for zeromq
|
||||
License: LGPLv3+
|
||||
@ -59,8 +40,6 @@ for lib in zmq/eventloop/*.py; do sed -i '/\/usr\/bin\/env/d' $lib; done
|
||||
chmod -x examples/pubsub/topics_{pub.py,sub.py}
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" %{__python2} setup.py build_ext --inplace
|
||||
%py2_build
|
||||
CFLAGS="%{optflags}" %{__python3} setup.py build_ext --inplace
|
||||
%py3_build
|
||||
|
||||
@ -68,16 +47,6 @@ CFLAGS="%{optflags}" %{__python3} setup.py build_ext --inplace
|
||||
%global RPATH /zmq/{backend/cython,devices}
|
||||
%py3_install
|
||||
pathfix.py -pn -i %{__python3} %{buildroot}%{python3_sitearch}
|
||||
%py2_install
|
||||
pathfix.py -pn -i %{__python2} %{buildroot}%{python2_sitearch}
|
||||
|
||||
%files -n python2-zmq
|
||||
%doc README.md examples/ COPYING.*
|
||||
%{python2_sitearch}/*
|
||||
%exclude %{python2_sitearch}/zmq/tests
|
||||
|
||||
%files -n python2-zmq-devel
|
||||
%{python2_sitearch}/zmq/tests
|
||||
|
||||
%files -n python%{python3_pkgversion}-zmq
|
||||
%doc README.md COPYING.*
|
||||
@ -88,5 +57,8 @@ pathfix.py -pn -i %{__python2} %{buildroot}%{python2_sitearch}
|
||||
%{python3_sitearch}/zmq/tests
|
||||
|
||||
%changelog
|
||||
* Mon Nov 9 2020 caodongxia <caodongxia@huawei.com> - 17.0.0-5
|
||||
- Remove python2 subpackage
|
||||
|
||||
* Fri Mar 6 2020 likexin <likexin4@huawei.com> - 17.0.0-4
|
||||
- package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user