remove the python2 subpackage
This commit is contained in:
parent
5e64317adf
commit
6f8c5fd5ff
@ -1,37 +1,18 @@
|
|||||||
Name: python-zmq
|
Name: python-zmq
|
||||||
Version: 17.0.0
|
Version: 17.0.0
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: Python bindings for zeromq
|
Summary: Python bindings for zeromq
|
||||||
License: LGPLv3+ and ASL 2.0 and BSD
|
License: LGPLv3+ and ASL 2.0 and BSD
|
||||||
URL: http://www.zeromq.org/bindings:python
|
URL: http://www.zeromq.org/bindings:python
|
||||||
Source0: https://github.com/zeromq/pyzmq/archive/v%{version}.tar.gz#/pyzmq-%{version}.tar.gz
|
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: python%{python3_pkgversion}-devel python%{python3_pkgversion}-setuptools
|
||||||
BuildRequires: python2-tools chrpath python3-devel
|
BuildRequires: chrpath python3-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains the Python bindings for 0MQ.0MQ is a
|
This package contains the Python bindings for 0MQ.0MQ is a
|
||||||
lightweight and fast messaging implementation.
|
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
|
%package -n python%{python3_pkgversion}-zmq
|
||||||
Summary: Python bindings for zeromq
|
Summary: Python bindings for zeromq
|
||||||
License: LGPLv3+
|
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}
|
chmod -x examples/pubsub/topics_{pub.py,sub.py}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%{optflags}" %{__python2} setup.py build_ext --inplace
|
|
||||||
%py2_build
|
|
||||||
CFLAGS="%{optflags}" %{__python3} setup.py build_ext --inplace
|
CFLAGS="%{optflags}" %{__python3} setup.py build_ext --inplace
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
@ -68,16 +47,6 @@ CFLAGS="%{optflags}" %{__python3} setup.py build_ext --inplace
|
|||||||
%global RPATH /zmq/{backend/cython,devices}
|
%global RPATH /zmq/{backend/cython,devices}
|
||||||
%py3_install
|
%py3_install
|
||||||
pathfix.py -pn -i %{__python3} %{buildroot}%{python3_sitearch}
|
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
|
%files -n python%{python3_pkgversion}-zmq
|
||||||
%doc README.md COPYING.*
|
%doc README.md COPYING.*
|
||||||
@ -88,5 +57,8 @@ pathfix.py -pn -i %{__python2} %{buildroot}%{python2_sitearch}
|
|||||||
%{python3_sitearch}/zmq/tests
|
%{python3_sitearch}/zmq/tests
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Mar 6 2020 likexin <likexin4@huawei.com> - 17.0.0-4
|
||||||
- package init
|
- package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user