diff --git a/obs-timeout.patch b/obs-timeout.patch
deleted file mode 100644
index 27f99e7..0000000
--- a/obs-timeout.patch
+++ /dev/null
@@ -1,82 +0,0 @@
-Index: zdaemon-4.3/src/zdaemon/tests/tests.py
-===================================================================
---- zdaemon-4.3.orig/src/zdaemon/tests/tests.py
-+++ zdaemon-4.3/src/zdaemon/tests/tests.py
-@@ -264,77 +264,6 @@ def test_log_rotation():
- """
-
-
--def test_start_test_program():
-- """
-- >>> write('t.py',
-- ... '''
-- ... import time
-- ... time.sleep(1)
-- ... open('x', 'w').close()
-- ... time.sleep(99)
-- ... ''')
--
-- >>> write('conf',
-- ... '''
-- ...
-- ... program %s t.py
-- ... start-test-program cat x
-- ...
-- ... ''' % sys.executable)
--
-- >>> import os
--
-- >>> system("./zdaemon -Cconf start")
-- . .
-- daemon process started, pid=21446
--
-- >>> os.path.exists('x')
-- True
-- >>> os.remove('x')
--
-- >>> system("./zdaemon -Cconf restart")
-- . . .
-- daemon process restarted, pid=19622
-- >>> os.path.exists('x')
-- True
--
-- >>> system("./zdaemon -Cconf stop")
--
-- daemon process stopped
-- """
--
--
--def test_start_timeout():
-- """
-- >>> write('t.py',
-- ... '''
-- ... import time
-- ... time.sleep(9)
-- ... ''')
--
-- >>> write('conf',
-- ... '''
-- ...
-- ... program %s t.py
-- ... start-test-program cat x
-- ... start-timeout 1
-- ...
-- ... ''' % sys.executable)
--
-- >>> import time
-- >>> start = time.time()
--
-- >>> system("./zdaemon -Cconf start")
--
-- Program took too long to start
-- Failed: 1
--
-- >>> system("./zdaemon -Cconf stop")
--
-- daemon process stopped
-- """
--
--
- def DAEMON_MANAGER_MODE_leak():
- """
- Zdaemon used an environment variable to flag that it's running in
diff --git a/python-zdaemon.changes b/python-zdaemon.changes
index 9f56e35..7c90608 100644
--- a/python-zdaemon.changes
+++ b/python-zdaemon.changes
@@ -1,3 +1,12 @@
+-------------------------------------------------------------------
+Sun Sep 8 16:41:50 UTC 2024 - Dirk Müller
+
+- update to 5.1:
+ * Add support for Python 3.12.
+ * Fix SIGCHLD/wait raise condition associated with the start-
+ test-program option. For details see #33.
+- drop obs-timeout.patch (obsolete)
+
-------------------------------------------------------------------
Wed Apr 10 07:27:55 UTC 2024 - Dirk Müller
diff --git a/python-zdaemon.spec b/python-zdaemon.spec
index d320321..f271910 100644
--- a/python-zdaemon.spec
+++ b/python-zdaemon.spec
@@ -19,13 +19,12 @@
%{?sle15_python_module_pythons}
%define modname zdaemon
Name: python-%{modname}
-Version: 5.0
+Version: 5.1
Release: 0
Summary: Daemon process control library and tools
License: ZPL-2.1
URL: https://github.com/zopefoundation/zdaemon
Source: https://files.pythonhosted.org/packages/source/z/zdaemon/%{modname}-%{version}.tar.gz
-Patch0: obs-timeout.patch
BuildRequires: %{python_module ZConfig}
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module manuel}
diff --git a/zdaemon-5.0.tar.gz b/zdaemon-5.0.tar.gz
deleted file mode 100644
index 7ee8239..0000000
--- a/zdaemon-5.0.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:9a5ec6c519a280bbcfa8f7e73f4e10d808e7b82710ab608e0f449bf3c06d43d5
-size 59149
diff --git a/zdaemon-5.1.tar.gz b/zdaemon-5.1.tar.gz
new file mode 100644
index 0000000..9512ca6
--- /dev/null
+++ b/zdaemon-5.1.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:22e9fe5050eaebb9e03d9ad64e4f63ccd85e04c38fdb351cf113bef6f68db7a4
+size 60726