public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tomas Tomecek <ttomecek@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-docker] epel10.2: use git to apply patches
Date: Tue, 13 Oct 2026 18:29:38 GMT	[thread overview]
Message-ID: <179191617809.1.8168304930141844270.rpms-python-docker-30ad264709de@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-docker
            Branch : epel10.2
            Commit : 30ad264709de78659b0da34e6b70e9c7f99e9ef6
            Author : Tomas Tomecek <ttomecek@redhat.com>
            Date   : 2019-01-04T12:48:20+01:00
            Stats  : +25/-2 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-docker/c/30ad264709de78659b0da34e6b70e9c7f99e9ef6?branch=epel10.2

            Log:
            use git to apply patches

this is a preparation for our automation work

Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>

---
diff --git a/python-docker.spec b/python-docker.spec
index c21c50b..df4401d 100644
--- a/python-docker.spec
+++ b/python-docker.spec
@@ -30,6 +30,8 @@ Source0:        https://files.pythonhosted.org/packages/source/d/%{srcname}/%{sr
 # statements.
 Patch1: remove-environment-markers.patch
 
+%global num_patches %{lua: c=0; for i,p in ipairs(patches) do c=c+1; end; print(c);}
+
 BuildArch:      noarch
 
 %description
@@ -97,8 +99,17 @@ run containers, manage containers, manage Swarms, etc.
 %endif # with_python3
 
 %prep
-%autosetup -n %{srcname}-%{version} -p 1
+%setup -n %{srcname}-%{version}
 rm -fr docker.egg-info
+%if %{num_patches}
+git init
+git config user.email "noreply@example.com"
+git config user.name "John Foo"
+git add .
+git commit -a -q -m "%{version} baseline."
+# Apply all the patches.
+git am %{patches}
+%endif
 
 %build
 %if %{with python2}

diff --git a/remove-environment-markers.patch b/remove-environment-markers.patch
index 42de9dd..fca91a6 100644
--- a/remove-environment-markers.patch
+++ b/remove-environment-markers.patch
@@ -1,3 +1,15 @@
+From a3d5850d63fe57037de47aa68b57fdba5a059e0c Mon Sep 17 00:00:00 2001
+From: Tomas Tomecek <ttomecek@redhat.com>
+Date: Fri, 4 Jan 2019 12:45:56 +0100
+Subject: [PATCH] remove environment markers
+
+since they are not present in setuptools in CentOS
+
+Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
+---
+ setup.py | 36 ++++++++----------------------------
+ 1 file changed, 8 insertions(+), 28 deletions(-)
+
 diff --git a/setup.py b/setup.py
 index 1b208e5..67f1582 100644
 --- a/setup.py
@@ -60,5 +72,5 @@ index 1b208e5..67f1582 100644
      test_suite='tests',
      classifiers=[
 -- 
-2.18.0
+2.20.1
 

                 reply	other threads:[~2026-10-13 18:29 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=179191617809.1.8168304930141844270.rpms-python-docker-30ad264709de@fedoraproject.org \
    --to=ttomecek@redhat.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