public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: Drop python2 bindings for good (#1761211)
@ 2026-11-23 9:33 Panu Matilainen
0 siblings, 0 replies; only message in thread
From: Panu Matilainen @ 2026-11-23 9:33 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : d09b7311d5d6aa0fad8db9514b83634f209fdb30
Author : Panu Matilainen <pmatilai@redhat.com>
Date : 2019-10-17T14:25:24+03:00
Stats : +4/-23 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/d09b7311d5d6aa0fad8db9514b83634f209fdb30?branch=pmatilai-v6
Log:
Drop python2 bindings for good (#1761211)
This means a breakup with F31 branch, but I dont want to add tonne of
conditional build foobar for a dying breed. Bye bye Python 2, and RIP.
---
diff --git a/rpm.spec b/rpm.spec
index f9c5c76..4305ae9 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -21,7 +21,7 @@
%global rpmver 4.15.0
#global snapver rc1
-%global rel 2
+%global rel 3
%global srcver %{version}%{?snapver:-%{snapver}}
%global srcdir %{?snapver:testing}%{!?snapver:%{name}-%(echo %{version} | cut -d'.' -f1-2).x}
@@ -205,22 +205,6 @@ Requires: rpm-sign-libs%{_isa} = %{version}-%{release}
%description sign
This package contains support for digitally signing RPM packages.
-%package -n python2-%{name}
-Summary: Python 2 bindings for apps which will manipulate RPM packages
-BuildRequires: python2-devel
-%{?python_provide:%python_provide python2-%{name}}
-Requires: %{name}-libs%{?_isa} = %{version}-%{release}
-Provides: %{name}-python = %{version}-%{release}
-Obsoletes: %{name}-python < %{version}-%{release}
-
-%description -n python2-%{name}
-The python2-rpm package contains a module that permits applications
-written in the Python programming language to use the interface
-supplied by RPM Package Manager libraries.
-
-This package should be installed if you want to develop Python 2
-programs that will manipulate RPM packages and databases.
-
%package -n python3-%{name}
Summary: Python 3 bindings for apps which will manipulate RPM packages
BuildRequires: python3-devel
@@ -350,7 +334,6 @@ done;
%make_build
pushd python
-%py2_build
%py3_build
popd
@@ -360,7 +343,6 @@ popd
# We need to build with --enable-python for the self-test suite, but we
# actually package the bindings built with setup.py (#531543#c26)
pushd python
-%py2_install
%py3_install
popd
@@ -516,10 +498,6 @@ make check || (cat tests/rpmtests.log; exit 0)
%{_bindir}/rpmsign
%{_mandir}/man8/rpmsign.8*
-%files -n python2-%{name}
-%{python2_sitearch}/%{name}/
-%{python2_sitearch}/%{name}-%{version}*.egg-info
-
%files -n python3-%{name}
%{python3_sitearch}/%{name}/
%{python3_sitearch}/%{name}-%{version}*.egg-info
@@ -540,6 +518,9 @@ make check || (cat tests/rpmtests.log; exit 0)
%doc doc/librpm/html/*
%changelog
+* Thu Oct 17 2019 Panu Matilainen <pmatilai@redhat.com> - 4.15.0-3
+- Drop python2 bindings for good (#1761211)
+
* Tue Oct 15 2019 Adam Williamson <awilliam@redhat.com> - 4.15.0-2
- Revert systemd inhibit plugin's calling of dbus_shutdown (#1750575)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-23 9:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 9:33 [rpms/rpm] pmatilai-v6: Drop python2 bindings for good (#1761211) Panu Matilainen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox