forked from pool/python-python-daemon
- Update to 2.3.2 Bugs Fixed: * Declare Twine as a development dependency (not a build dependency). Closes: Pagure #55. Thanks to Jason Andryuk for the report. Thanks to James Hilliard for the implementation. * Specify to build a wheel distribution for only Python 3 or later. * Specify the built package requires Python 3 or later. Closes: Pagure #66. Thanks to Nick M. for the report and implementation. Removed: * The earlier version 2.3.1 is now “yanked” from PyPI (unlisted and not an installation candidate), because that version incorrectly permitted installation on Python 2. Thanks to Nick M. for the report. OBS-URL: https://build.opensuse.org/request/show/1032055 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-daemon?expand=0&rev=38
71 lines
2.4 KiB
RPMSpec
71 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package python-python-daemon
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%global skip_python2 1
|
|
Name: python-python-daemon
|
|
Version: 2.3.2
|
|
Release: 0
|
|
Summary: Library to implement a well-behaved Unix daemon process
|
|
License: Apache-2.0 AND GPL-3.0-only
|
|
Group: Development/Languages/Python
|
|
URL: https://pagure.io/python-daemon/
|
|
Source: https://files.pythonhosted.org/packages/source/p/python-daemon/python-daemon-%{version}.tar.gz
|
|
BuildRequires: %{python_module docutils}
|
|
BuildRequires: %{python_module importlib_resources}
|
|
BuildRequires: %{python_module lockfile >= 0.10}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module testscenarios >= 0.4}
|
|
BuildRequires: %{python_module testtools}
|
|
BuildRequires: %{python_module twine}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-lockfile >= 0.10
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
This library implements the well-behaved daemon specification of PEP 3143, "Standard daemon
|
|
process library".
|
|
|
|
A well-behaved Unix daemon process is tricky to get right, but the required steps are much the
|
|
same for every daemon program. A DaemonContext instance holds the behaviour and configured
|
|
process environment for the program; use the instance as a context manager to enter a daemon state.
|
|
|
|
%prep
|
|
%autosetup -p1 -n python-daemon-%{version}
|
|
|
|
sed -i '/docutils/d' setup.py
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pyunittest discover -v
|
|
|
|
%files %{python_files}
|
|
%license LICENSE.ASF-2 LICENSE.GPL-3
|
|
%doc README ChangeLog doc/*
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|