[packages/python3-daemon] Up to 3.1.2 (deps not needed for building)

arekm arekm at pld-linux.org
Sat Feb 8 17:12:20 CET 2025


commit 82d6c3b8936ca7e247640b614006c392f108e328
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Feb 8 16:40:20 2025 +0100

    Up to 3.1.2 (deps not needed for building)

 python-daemon.spec => python3-daemon.spec | 41 +++++++++++++------------------
 1 file changed, 17 insertions(+), 24 deletions(-)
---
diff --git a/python-daemon.spec b/python3-daemon.spec
similarity index 54%
rename from python-daemon.spec
rename to python3-daemon.spec
index 12b530e..afac4bc 100644
--- a/python-daemon.spec
+++ b/python3-daemon.spec
@@ -5,24 +5,24 @@
 
 %define 	module	daemon
 Summary:	Library to implement a well-behaved Unix daemon process
-Name:		python-%{module}
-Version:	1.6
-Release:	4
+Name:		python3-%{module}
+Version:	3.1.2
+Release:	1
 License:	Python
 Group:		Development/Languages
-Source0:	http://pypi.python.org/packages/source/p/python-daemon/%{name}-%{version}.tar.gz
-# Source0-md5:	c774eda27d6c5d80b42037826d29e523
+Source0:	https://pypi.debian.net/python-daemon/python_%{module}-%{version}.tar.gz
+# Source0-md5:	d42ee28735506ea1cb51c348530d6d94
 URL:		http://pypi.python.org/pypi/python-daemon/
-BuildRequires:	python-devel
-BuildRequires:	python-setuptools
+BuildRequires:	python3-devel
+BuildRequires:	python3-setuptools
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.710
 BuildRequires:	sed >= 4.0
 %if %{with tests}
-BuildRequires:	python-lockfile
-BuildRequires:	python-minimock
+BuildRequires:	python3-lockfile
+#BuildRequires:	python3-minimock
 %endif
-Requires:	python-lockfile
+Requires:	python3-lockfile
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -31,12 +31,11 @@ This library implements the well-behaved daemon specification of PEP
 3143, "Standard daemon process library".
 
 %prep
-%setup -q
-
-%{__sed} -i -e '/^#!\//, 1d' daemon/version/version_info.py
+%setup -q -n python_daemon-%{version}
 
 %build
-%py_build
+%py3_build_pyproject \
+	--skip-dependency-check
 
 # Test suite requires minimock and lockfile
 %if %{with tests}
@@ -45,20 +44,14 @@ PYTHONPATH=$(pwd) nosetests-%{py_ver}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%py_install
-
-%py_postclean
 
-%{__rm} -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/tests
+%py3_install_pyproject
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc LICENSE.PSF-2
-%dir %{py_sitescriptdir}/daemon
-%dir %{py_sitescriptdir}/daemon/version
-%{py_sitescriptdir}/daemon/*.py[co]
-%{py_sitescriptdir}/daemon/version/*.py[co]
-%{py_sitescriptdir}/python_daemon-%{version}-py%{py_ver}.egg-info
+%doc LICENSE.* README ChangeLog
+%{py3_sitescriptdir}/daemon
+%{py3_sitescriptdir}/python_daemon-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-daemon.git/commitdiff/82d6c3b8936ca7e247640b614006c392f108e328



More information about the pld-cvs-commit mailing list