public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/duplicity] epel10: Improved patch.
@ 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 : 0402b5fdebfcc58579751bcea5f345c54dff528b
Author : Gwyn Ciesla <gwync@protonmail.com>
Date   : 2020-11-11T13:22:57-06:00
Stats  : +15/-9 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/duplicity/c/0402b5fdebfcc58579751bcea5f345c54dff528b?branch=epel10

Log:
Improved patch.

---
diff --git a/duplicity-py310.patch b/duplicity-py310.patch
index 1d6ebee..2802429 100644
--- a/duplicity-py310.patch
+++ b/duplicity-py310.patch
@@ -1,13 +1,18 @@
---- 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 @@
+diff --git a/duplicity/_librsyncmodule.c b/duplicity/_librsyncmodule.c
+index e06b8819..4dedddcb 100644
+--- a/duplicity/_librsyncmodule.c
++++ b/duplicity/_librsyncmodule.c
+@@ -464,8 +464,13 @@ moduleinit(void)
  {
    PyObject *m, *d;
  
--  Py_TYPE(&_librsync_SigMakerType) = &PyType_Type;
--  Py_TYPE(&_librsync_DeltaMakerType) = &PyType_Type;
++  #if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 10
 +  Py_SET_TYPE(&_librsync_SigMakerType, &PyType_Type);
 +  Py_SET_TYPE(&_librsync_DeltaMakerType, &PyType_Type);
++  #else 
+   Py_TYPE(&_librsync_SigMakerType) = &PyType_Type;
+   Py_TYPE(&_librsync_DeltaMakerType) = &PyType_Type;
++  #endif 
  
    MOD_DEF(m, "_librsync", "", _librsyncMethods)
    if (m == NULL)

diff --git a/duplicity.spec b/duplicity.spec
index b9495a7..ac3fd71 100644
--- a/duplicity.spec
+++ b/duplicity.spec
@@ -3,7 +3,7 @@
 Summary:        Encrypted bandwidth-efficient backup using rsync algorithm
 Name:           duplicity
 Version:        0.8.17
-Release:        2%{?dist}
+Release:        3%{?dist}
 License:        GPLv2+
 URL:            http://www.nongnu.org/duplicity/
 Source:         https://launchpad.net/duplicity/0.8-series/%{version}/+download/duplicity-%{version}.tar.gz
@@ -43,9 +43,7 @@ but not hard links.
 %prep
 %setup -q
 %patch0 -p1
-%if 0%{?fedora} >= 34
-%patch1 -p0
-%endif
+%patch1 -p1
 
 %build
 %{__python3} setup.py build
@@ -84,6 +82,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-3
+- Improved patch
+
 * Wed Nov 11 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.8.17-2
 - Patch for Python 3.10
 

^ 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: Improved patch Gwyn Ciesla

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