public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: Drop python2 bindings for good (#1761211)
Date: Mon, 23 Nov 2026 09:33:02 GMT	[thread overview]
Message-ID: <179542638295.1.2000735658839664952.rpms-rpm-d09b7311d5d6@fedoraproject.org> (raw)

            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)
 

                 reply	other threads:[~2026-11-23  9:33 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=179542638295.1.2000735658839664952.rpms-rpm-d09b7311d5d6@fedoraproject.org \
    --to=pmatilai@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