public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-docker] epel10.2: use git to apply patches
@ 2026-10-13 18:29 Tomas Tomecek
0 siblings, 0 replies; only message in thread
From: Tomas Tomecek @ 2026-10-13 18:29 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-13 18:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-13 18:29 [rpms/python-docker] epel10.2: use git to apply patches Tomas Tomecek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox