public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/flow-tools] rawhide: Remove old Python 2 cruft
@ 2026-06-27 16:48 Karolina Surma
0 siblings, 0 replies; only message in thread
From: Karolina Surma @ 2026-06-27 16:48 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/flow-tools
Branch : rawhide
Commit : b951e8773d4dbddf91320bc87c1311dbc5885a9e
Author : Karolina Surma <ksurma@redhat.com>
Date : 2026-06-27T16:48:05+00:00
Stats : +0/-8 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/flow-tools/c/b951e8773d4dbddf91320bc87c1311dbc5885a9e?branch=rawhide
Log:
Remove old Python 2 cruft
---
diff --git a/flow-tools.spec b/flow-tools.spec
index a235a9b..4e2b507 100644
--- a/flow-tools.spec
+++ b/flow-tools.spec
@@ -70,11 +70,7 @@ libft.
%package rrdtool
Summary: Scripts for flow-tools to build rrd graphs
Requires: %{name} = %{version}-%{release}
-%if 0%{?fedora} >= 31
Requires: python3-rrdtool
-%else
-Requires: python2-rrdtool
-%endif
%description rrdtool
Flow-tools is library and a collection of programs used to collect,
@@ -106,12 +102,8 @@ This package contains additional documentation, such as man pages in html format
%prep
%autosetup -p1
# Remove /bin/env deps
-%if 0%{?fedora} >= 31
sed -i '1s|^#!.*python|#!/usr/bin/python3|' bin/flow*
python3.12 -m lib2to3 --write --nobackups bin/flow*
-%else
-sed -i '1s|^#!.*python|#!/usr/bin/python2|' bin/flow*
-%endif
sed -i '1s|^#!.*perl|#!/usr/bin/perl|' utils/*
# Fix mariadb-connector-c detection
sed -i s/my_init/mysql_init/g configure
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-27 16:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-27 16:48 [rpms/flow-tools] rawhide: Remove old Python 2 cruft Karolina Surma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox