public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/duplicity] epel10: Patch for 3.10
@ 2026-10-09 15:24 Gwyn Ciesla
  0 siblings, 0 replies; only message in thread
From: Gwyn Ciesla @ 2026-10-09 15:24 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/duplicity
Branch : epel10
Commit : e782c9ca17ab91e7cbf0a34575aab953d13dadc8
Author : Gwyn Ciesla <gwync@protonmail.com>
Date   : 2020-11-11T12:28:27-06:00
Stats  : +21/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/duplicity/c/e782c9ca17ab91e7cbf0a34575aab953d13dadc8?branch=epel10

Log:
Patch for 3.10

---
diff --git a/duplicity-py310.patch b/duplicity-py310.patch
new file mode 100644
index 0000000..1d6ebee
--- /dev/null
+++ b/duplicity-py310.patch
@@ -0,0 +1,13 @@
+--- duplicity/_librsyncmodule.c~	2020-10-09 11:52:25.000000000 -0500
++++ duplicity/_librsyncmodule.c	2020-11-11 12:11:57.314465329 -0600
+@@ -464,8 +464,8 @@
+ {
+   PyObject *m, *d;
+ 
+-  Py_TYPE(&_librsync_SigMakerType) = &PyType_Type;
+-  Py_TYPE(&_librsync_DeltaMakerType) = &PyType_Type;
++  Py_SET_TYPE(&_librsync_SigMakerType, &PyType_Type);
++  Py_SET_TYPE(&_librsync_DeltaMakerType, &PyType_Type);
+ 
+   MOD_DEF(m, "_librsync", "", _librsyncMethods)
+   if (m == NULL)

diff --git a/duplicity.spec b/duplicity.spec
index 8abb122..b9495a7 100644
--- a/duplicity.spec
+++ b/duplicity.spec
@@ -3,11 +3,12 @@
 Summary:        Encrypted bandwidth-efficient backup using rsync algorithm
 Name:           duplicity
 Version:        0.8.17
-Release:        1%{?dist}
+Release:        2%{?dist}
 License:        GPLv2+
 URL:            http://www.nongnu.org/duplicity/
 Source:         https://launchpad.net/duplicity/0.8-series/%{version}/+download/duplicity-%{version}.tar.gz
 Patch0:         278270b730302a4e8f04976aa8013d2babc00530.diff
+Patch1:         duplicity-py310.patch
 Requires:	python3-lockfile
 Requires:	gnupg >= 1.0.6
 Requires:       rsync
@@ -42,6 +43,9 @@ but not hard links.
 %prep
 %setup -q
 %patch0 -p1
+%if 0%{?fedora} >= 34
+%patch1 -p0
+%endif
 
 %build
 %{__python3} setup.py build
@@ -80,6 +84,9 @@ rm -rf    %{buildroot}%{_prefix}/share/doc/duplicity-%{version}/tarfile-LICENSE
 %{_sysconfdir}/%{name}/cacert.pem
 
 %changelog
+* Wed Nov 11 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.8.17-2
+- Patch for Python 3.10
+
 * Wed Nov 11 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.8.17-1
 - 0.8.17
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-09 15:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-09 15:24 [rpms/duplicity] epel10: Patch for 3.10 Gwyn Ciesla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox