diff --git a/python-daemon-2.2.4.tar.gz b/python-daemon-2.2.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..07eabf1d7c6768da5c7832ad9fa89e87e62550b8 Binary files /dev/null and b/python-daemon-2.2.4.tar.gz differ diff --git a/python-daemon.spec b/python-daemon.spec new file mode 100644 index 0000000000000000000000000000000000000000..e563acd3f14de4c31fd0c43bbfa5e2318df77bdc --- /dev/null +++ b/python-daemon.spec @@ -0,0 +1,55 @@ +Name: python-daemon +Version: 2.2.4 +Release: 1 +Summary: Library to implement a well-behaved Unix daemon process + +License: Apache 2.0 +URL: https://pagure.io/python-daemon +Source0: https://files.pythonhosted.org/packages/05/97/210f94322675c838319ffa8e505032373ff1f6a6219af8d16427e00b1051/%{name}-%{version}.tar.gz +# Downstream-only patch, twine is unnecessary to build +# https://pagure.io/python-daemon/c/cc9e6a0321a547aacd568aa1e8c7d94a000d5d11 +Patch0: remove-twine-dependency.patch + +BuildArch: noarch +BuildRequires: python3-devel, python3-setuptools +BuildRequires: python3-testscenarios +BuildRequires: python3-docutils +BuildRequires: python3-lockfile +BuildRequires: python3-mock +BuildRequires: python3-testtools + +%global _description\ +This library implements the well-behaved daemon specification of PEP 3143,\ +"Standard daemon process library".\ + +%description %_description + +%package -n python3-daemon +Summary: Library to implement a well-behaved Unix daemon process +Requires: python3-lockfile +Requires: python3-docutils +%{?python_provide:%python_provide python3-daemon} + +%description -n python3-daemon %_description + +%prep +%autosetup -p1 + +%build +%py3_build + +%install +%py3_install +rm -fr %{buildroot}%{python3_sitelib}/tests + +%check +PYTHONPATH=$(pwd) %{__python3} -m unittest discover + +%files -n python3-daemon +%license LICENSE.ASF-2 +%{python3_sitelib}/daemon/ +%{python3_sitelib}/python_daemon-%{version}-py%{python3_version}.egg-info/ + +%changelog +* Wed Aug 18 2021 Python_Bot - 2.2.4-1 +- Init Package diff --git a/remove-twine-dependency.patch b/remove-twine-dependency.patch new file mode 100644 index 0000000000000000000000000000000000000000..a430c79963d6260a05a247e8a0edc874f940feed --- /dev/null +++ b/remove-twine-dependency.patch @@ -0,0 +1,11 @@ +diff -Nurp python-daemon-2.2.4.orig/setup.py python-daemon-2.2.4/setup.py +--- python-daemon-2.2.4.orig/setup.py 2019-10-04 22:21:52.000000000 -0500 ++++ python-daemon-2.2.4/setup.py 2020-03-22 14:04:30.853124836 -0500 +@@ -68,7 +68,6 @@ setup_kwargs = dict( + zip_safe=False, + setup_requires=[ + "docutils", +- "twine", + ], + test_suite="setup.test_suite", + tests_require=test_requirements,