diff --git a/libteam.spec b/libteam.spec index 0d71f1ac77e6c3e4093dc4d88ace4afc989ce36f..f6b6e65a57ed8a24b87272ae15f00366c8434da8 100644 --- a/libteam.spec +++ b/libteam.spec @@ -1,13 +1,13 @@ Name: libteam Version: 1.30 -Release: 1 +Release: 2 Summary: User-space counterpart library for team network License: LGPLv2+ URL: http://www.libteam.org Source: http://www.libteam.org/files/libteam-%{version}.tar.gz BuildRequires: gcc jansson-devel libdaemon-devel libnl3-devel -BuildRequires: swig python2-devel dbus-devel systemd doxygen +BuildRequires: swig dbus-devel systemd doxygen Provides: teamd = %{version}-%{release} teamd%{?_isa} = %{version}-%{release} Obsoletes: teamd < %{version}-%{release} @@ -34,16 +34,6 @@ Supplements: (%{name} and network-scripts) This package provides the ifup and ifdown scripts which is use with the legacy network service. -%package -n python2-libteam -%python_provide python2-libteam -Summary: Team network device library bindings -Requires: %{name} = %{version}-%{release} - -%description -n python2-libteam -Team network device library bindings. This package should -be installed if you want to develop Python programs that -will manipulate team network devices. - %package help Summary: Document of %{name} Requires: %{name} = %{version}-%{release} @@ -61,16 +51,10 @@ This package contains the document of %{name} make %{?_smp_mflags} make html -pushd binding/python -python2 ./setup.py build -popd - %install mkdir -p _tmpdoc1/examples +rm examples/python/*.py cp -p examples/*.c _tmpdoc1/examples -mkdir -p _tmpdoc2/examples -cp -p examples/python/*.py _tmpdoc2/examples -chmod -x _tmpdoc2/examples/*.py %make_install @@ -87,10 +71,6 @@ done install -p -m 755 utils/bond2team $RPM_BUILD_ROOT%{_bindir}/bond2team -pushd binding/python -python2 ./setup.py install --root $RPM_BUILD_ROOT -O1 -popd - %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -121,9 +101,6 @@ popd %{_sysconfdir}/sysconfig/network-scripts/ifup-TeamPort %{_sysconfdir}/sysconfig/network-scripts/ifdown-TeamPort -%files -n python2-libteam -%{python2_sitearch}/* - %files help %doc _tmpdoc1/examples %doc doc/api @@ -136,6 +113,9 @@ popd %{_mandir}/man8/teamnl.8* %changelog +* Thu Oct 29 2020 wangchen - 1.30-2 +- Remove python2 + *Thu Jul 16 2020 Hugel - 1.30-1 - Type:enhancement - ID:NA