diff --git a/pid-2.1.1.tar.gz b/pid-2.1.1.tar.gz deleted file mode 100644 index 0892856..0000000 Binary files a/pid-2.1.1.tar.gz and /dev/null differ diff --git a/pid-3.0.4.tar.gz b/pid-3.0.4.tar.gz new file mode 100644 index 0000000..8e0a89e Binary files /dev/null and b/pid-3.0.4.tar.gz differ diff --git a/python-pid.spec b/python-pid.spec index 2c041bc..8e2886d 100644 --- a/python-pid.spec +++ b/python-pid.spec @@ -1,8 +1,6 @@ -%bcond_without python2 - Name: python-pid -Version: 2.1.1 -Release: 12 +Version: 3.0.4 +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,16 +23,15 @@ Python-pid for python3. %autosetup -n pid-%{version} %build -%py2_build %py3_build %install -%py2_install %py3_install %check -PYTHONPATH=%{buildroot}%{python2_sitelib} nosetests-%{python2_version} -%{__python3} setup.py test +%if %{with python3_tests} +PYTHONPATH=%{buildroot}%{python3_sitelib} nosetests-%{python3_version} --verbose +%endif %pre @@ -55,14 +41,6 @@ PYTHONPATH=%{buildroot}%{python2_sitelib} nosetests-%{python2_version} %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 @@ -70,6 +48,15 @@ PYTHONPATH=%{buildroot}%{python2_sitelib} nosetests-%{python2_version} %{python3_sitelib}/pid-*.egg-info %changelog +* Wed Nov 4 2020 wangjie -3.0.4-2 +- Type:NA +- ID:NA +- SUG:NA +- DESC:remove python2 + +* Tue Jul 28 2020 jinzhimin - 3.0.4-1 +- update to 3.0.4 + * Sat Mar 23 2019 openEuler Buildteam - 2.1.1-12 - Add macro of bcond_with