# Created by pyp2rpm-3.3.7 %global pypi_name python-pidfile %global pypi_version 3.0.0 %global srcname pidfile Name: python-%{srcname} Version: %{pypi_version} Release: 1%{?dist} Summary: PIDFile context processor. Supported py2 and py3 License: MIT URL: https://github.com/mosquito/python-pidfile Source0: https://files.pythonhosted.org/packages/54/3f/f3eea6a324ea434d70f4f51d60061c88d1ec1bf2a7486ec7a794e84496cc/%{pypi_name}-%{pypi_version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description The context manager will take care of verifying the existence of a pid file,\ check its pid to see if it’s alive, check the command line (which should be\ /), and if all the conditions are met,\ rise a pidfile.AlreadyRunningError exception. Python context manager for managing PID files %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} Requires: (python3dist(coverage) < 4.3 or python3dist(coverage) > 4.3) Requires: python3dist(coveralls) Requires: python3dist(mock) Requires: python3dist(psutil) Requires: python3dist(pylava) Requires: python3dist(pytest) Requires: python3dist(pytest-cov) %description -n python3-%{srcname} The context manager will take care of verifying the existence of a pid file,\ check its pid to see if it’s alive, check the command line (which should be\ /), and if all the conditions are met,\ rise a pidfile.AlreadyRunningError exception. %prep %autosetup -n %{pypi_name}-%{pypi_version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %files -n python3-%{srcname} %doc README.rst %{python3_sitelib}/pidfile %{python3_sitelib}/python_pidfile-%{pypi_version}-py%{python3_version}.egg-info %changelog * Tue Nov 02 2021 Pravin Satpute - 3.0.0-1 - Initial package.