public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Gwyn Ciesla <gwync@protonmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/duplicity] epel10: Improved patch.
Date: Fri, 09 Oct 2026 15:24:35 GMT	[thread overview]
Message-ID: <179155947559.1.2351233677809049051.rpms-duplicity-0402b5fdebfc@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-10-09 15:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179155947559.1.2351233677809049051.rpms-duplicity-0402b5fdebfc@fedoraproject.org \
    --to=gwync@protonmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox