python-pid/python-pid.spec
shixuantong ba04df96c4 remove useless buildrequire
(cherry picked from commit 701d949ebb627b1015b56bbae18b421fa7a7df31)
2022-06-13 16:03:12 +08:00

83 lines
1.7 KiB
RPMSpec

Name: python-pid
Version: 3.0.4
Release: 4
Summary: Python pid management
License: ASL 2.0
URL: https://pypi.python.org/pypi/pid
Source0: https://pypi.python.org/packages/source/p/pid/pid-%{version}.tar.gz
BuildArch: noarch
Patch1: pytest-related_updates.patch
%description
A module about python pid management, with fcntl to add state to the lock file.
%package -n python3-pid
Summary: PID file management library
BuildRequires: python3-devel python3-setuptools
BuildRequires: python3-pytest python3-mock
%{?python_provide:%python_provide python3-pid}
%description -n python3-pid
Python-pid for python3.
%prep
%autosetup -n pid-%{version} -p1
%build
%py3_build
%install
%py3_install
%check
%if %{with python3_tests}
%{__python3} -m pytest
%endif
%pre
%preun
%post
%postun
%files -n python3-pid
%license LICENSE
%doc AUTHORS CHANGELOG README.rst
%{python3_sitelib}/pid
%{python3_sitelib}/pid-*.egg-info
%changelog
* Fri Jan 07 2022 shixuantong<shixuantong@huawei.com> - 3.0.4-4
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:remove useless buildrequire
* Sat Dec 05 2020 jitao<jitao3@huawei.com> - 3.0.4-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix test suite fail
* 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
- Add macro of bcond_with
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.1.1-11
- Enabale python2
* Fri Oct 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.1.1-10
- Package init