!7 remove python2
From: @jlwwlsqc Reviewed-by: @hanxinke Signed-off-by: @hanxinke
This commit is contained in:
commit
79f632de50
@ -1,8 +1,6 @@
|
||||
%bcond_without python2
|
||||
|
||||
Name: python-pid
|
||||
Version: 3.0.4
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Python pid management
|
||||
License: ASL 2.0
|
||||
URL: https://pypi.python.org/pypi/pid
|
||||
@ -13,17 +11,6 @@ BuildArch: noarch
|
||||
%description
|
||||
A module about python pid management, with fcntl to add state to the lock file.
|
||||
|
||||
%if %{with python2}
|
||||
%package -n python2-pid
|
||||
Summary: PID file management library
|
||||
BuildRequires: python2-devel python2-setuptools python2-nose
|
||||
%{?python_provide:%python_provide python2-pid}
|
||||
|
||||
%description -n python2-pid
|
||||
Python-pid for python2.
|
||||
%endif
|
||||
|
||||
|
||||
%package -n python3-pid
|
||||
Summary: PID file management library
|
||||
BuildRequires: python3-devel python3-setuptools python3-nose
|
||||
@ -36,17 +23,12 @@ Python-pid for python3.
|
||||
%autosetup -n pid-%{version}
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
%if %{with python2_tests}
|
||||
PYTHONPATH=%{buildroot}%{python2_sitelib} nosetests-%{python2_version} --verbose
|
||||
%endif
|
||||
%if %{with python3_tests}
|
||||
PYTHONPATH=%{buildroot}%{python3_sitelib} nosetests-%{python3_version} --verbose
|
||||
%endif
|
||||
@ -59,14 +41,6 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} nosetests-%{python3_version} --verbose
|
||||
|
||||
%postun
|
||||
|
||||
%if %{with python2}
|
||||
%files -n python2-pid
|
||||
%license LICENSE
|
||||
%doc AUTHORS CHANGELOG README.rst
|
||||
%{python2_sitelib}/pid
|
||||
%{python2_sitelib}/pid-*.egg-info
|
||||
%endif
|
||||
|
||||
%files -n python3-pid
|
||||
%license LICENSE
|
||||
%doc AUTHORS CHANGELOG README.rst
|
||||
@ -74,6 +48,12 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} nosetests-%{python3_version} --verbose
|
||||
%{python3_sitelib}/pid-*.egg-info
|
||||
|
||||
%changelog
|
||||
* Wed Nov 4 2020 wangjie<wangjie294@huawei.com> -3.0.4-2
|
||||
- Type:NA
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:remove python2
|
||||
|
||||
* Tue Jul 28 2020 jinzhimin<jinzhimin2@huawei.com> - 3.0.4-1
|
||||
- update to 3.0.4
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user