remove python2

Merge pull request !5 from 靳智敏/master
This commit is contained in:
openeuler-ci-bot 2020-07-30 09:08:25 +08:00 committed by wangjie
commit a58d975409
3 changed files with 14 additions and 27 deletions

Binary file not shown.

BIN
pid-3.0.4.tar.gz Normal file

Binary file not shown.

View File

@ -1,8 +1,6 @@
%bcond_without python2
Name: python-pid Name: python-pid
Version: 2.1.1 Version: 3.0.4
Release: 12 Release: 2
Summary: Python pid management Summary: Python pid management
License: ASL 2.0 License: ASL 2.0
URL: https://pypi.python.org/pypi/pid URL: https://pypi.python.org/pypi/pid
@ -13,17 +11,6 @@ BuildArch: noarch
%description %description
A module about python pid management, with fcntl to add state to the lock file. 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 %package -n python3-pid
Summary: PID file management library Summary: PID file management library
BuildRequires: python3-devel python3-setuptools python3-nose BuildRequires: python3-devel python3-setuptools python3-nose
@ -36,16 +23,15 @@ Python-pid for python3.
%autosetup -n pid-%{version} %autosetup -n pid-%{version}
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%check %check
PYTHONPATH=%{buildroot}%{python2_sitelib} nosetests-%{python2_version} %if %{with python3_tests}
%{__python3} setup.py test PYTHONPATH=%{buildroot}%{python3_sitelib} nosetests-%{python3_version} --verbose
%endif
%pre %pre
@ -55,14 +41,6 @@ PYTHONPATH=%{buildroot}%{python2_sitelib} nosetests-%{python2_version}
%postun %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 %files -n python3-pid
%license LICENSE %license LICENSE
%doc AUTHORS CHANGELOG README.rst %doc AUTHORS CHANGELOG README.rst
@ -70,6 +48,15 @@ PYTHONPATH=%{buildroot}%{python2_sitelib} nosetests-%{python2_version}
%{python3_sitelib}/pid-*.egg-info %{python3_sitelib}/pid-*.egg-info
%changelog %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
* Sat Mar 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.1.1-12 * Sat Mar 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.1.1-12
- Add macro of bcond_with - Add macro of bcond_with