51 lines
1004 B
RPMSpec
51 lines
1004 B
RPMSpec
|
|
Name: python-pid
|
||
|
|
Version: 2.1.1
|
||
|
|
Release: 10
|
||
|
|
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
|
||
|
|
|
||
|
|
%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 python3-nose
|
||
|
|
%{?python_provide:%python_provide python3-pid}
|
||
|
|
|
||
|
|
%description -n python3-pid
|
||
|
|
Python-pid for python3.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%autosetup -n pid-%{version}
|
||
|
|
|
||
|
|
%build
|
||
|
|
%py3_build
|
||
|
|
|
||
|
|
%install
|
||
|
|
%py3_install
|
||
|
|
|
||
|
|
%check
|
||
|
|
%{__python3} setup.py test
|
||
|
|
|
||
|
|
%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 Oct 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.1.1-10
|
||
|
|
- Package init
|