python-pid/python-pid.spec

83 lines
1.7 KiB
RPMSpec
Raw Normal View History

2019-11-06 19:49:47 +08:00
Name: python-pid
2020-07-28 17:34:16 +08:00
Version: 3.0.4
Release: 4
2019-11-06 19:49:47 +08:00
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
2020-12-05 10:25:08 +08:00
Patch1: pytest-related_updates.patch
2019-11-06 19:49:47 +08:00
%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
2020-12-05 10:25:08 +08:00
BuildRequires: python3-pytest python3-mock
2019-11-06 19:49:47 +08:00
%{?python_provide:%python_provide python3-pid}
%description -n python3-pid
Python-pid for python3.
%prep
2020-12-05 10:25:08 +08:00
%autosetup -n pid-%{version} -p1
2019-11-06 19:49:47 +08:00
%build
%py3_build
%install
%py3_install
%check
2020-07-28 17:34:16 +08:00
%if %{with python3_tests}
2020-12-05 10:25:08 +08:00
%{__python3} -m pytest
2020-07-28 17:34:16 +08:00
%endif
2019-11-06 19:49:47 +08:00
%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
2020-12-05 10:25:08 +08:00
* 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
2020-07-28 17:34:16 +08:00
* Tue Jul 28 2020 jinzhimin<jinzhimin2@huawei.com> - 3.0.4-1
- update to 3.0.4
2020-03-21 15:34:14 +08:00
* Sat Mar 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.1.1-12
- Add macro of bcond_with
2019-12-25 16:05:48 +08:00
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.1.1-11
- Enabale python2
2019-11-06 19:49:47 +08:00
* Fri Oct 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.1.1-10
- Package init