remove python2
This commit is contained in:
parent
73b724f2ae
commit
933b79df54
@ -1,37 +1,23 @@
|
|||||||
%global without_python3 1
|
|
||||||
|
|
||||||
Name: python-schedutils
|
Name: python-schedutils
|
||||||
Version: 0.6
|
Version: 0.6
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: Linux scheduler python bindings
|
Summary: Linux scheduler python bindings
|
||||||
|
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://rt.wiki.kernel.org/index.php/Tuna
|
URL: https://rt.wiki.kernel.org/index.php/Tuna
|
||||||
Source0: https://git.kernel.org/pub/scm/libs/python/%{name}/%{name}.git/snapshot/%{name}-%{version}.tar.gz
|
Source0: https://git.kernel.org/pub/scm/libs/python/%{name}/%{name}.git/snapshot/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: python2-devel
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Python interface for the Linux scheduler.
|
Python interface for the Linux scheduler.
|
||||||
|
|
||||||
%package -n python2-schedutils
|
|
||||||
Summary: %{summary}
|
|
||||||
%{?python_provide:%python_provide python2-schedutils}
|
|
||||||
|
|
||||||
%description -n python2-schedutils
|
|
||||||
Python2 interface for the Linux scheduler.
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%package -n python3-schedutils
|
%package -n python3-schedutils
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python3-schedutils}
|
%{?python_provide:%python_provide python3-schedutils}
|
||||||
|
|
||||||
%description -n python3-schedutils
|
%description -n python3-schedutils
|
||||||
Python3 interface for the Linux scheduler.
|
Python3 interface for the Linux scheduler.
|
||||||
%endif
|
|
||||||
|
|
||||||
%package_help
|
%package_help
|
||||||
|
|
||||||
@ -39,29 +25,12 @@ Python3 interface for the Linux scheduler.
|
|||||||
%autosetup -n %{name}-%{version} -p1
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%py3_build
|
%py3_build
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
%py2_install
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%py3_install
|
%py3_install
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n python2-schedutils
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%license COPYING
|
|
||||||
%if 0%{?without_python3}
|
|
||||||
%{_bindir}/pchrt
|
|
||||||
%{_bindir}/ptaskset
|
|
||||||
%endif
|
|
||||||
%{python2_sitearch}/schedutils.so
|
|
||||||
%{python2_sitearch}/*.egg-info
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%files -n python3-schedutils
|
%files -n python3-schedutils
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%license COPYING
|
%license COPYING
|
||||||
@ -69,7 +38,6 @@ rm -rf %{buildroot}
|
|||||||
%{_bindir}/ptaskset
|
%{_bindir}/ptaskset
|
||||||
%{python3_sitearch}/schedutils*.so
|
%{python3_sitearch}/schedutils*.so
|
||||||
%{python3_sitearch}/*.egg-info
|
%{python3_sitearch}/*.egg-info
|
||||||
%endif
|
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -77,5 +45,8 @@ rm -rf %{buildroot}
|
|||||||
%{_mandir}/man1/ptaskset.1.gz
|
%{_mandir}/man1/ptaskset.1.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 30 2020 tianwei <tianwei12@huawei.com> - 0.6-6
|
||||||
|
- remove python2
|
||||||
|
|
||||||
* Mon Sep 17 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.6-5
|
* Mon Sep 17 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.6-5
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user