public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/rpkg] 1.70-1: Remove deps on obsoleted packages
Date: Mon, 10 Aug 2026 21:43:32 GMT	[thread overview]
Message-ID: <178639821276.1.9964951609135907117.rpms-rpkg-f5aa1689f881@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rpkg
            Branch : 1.70-1
            Commit : f5aa1689f8815ec5f1104e945d97dbd6b29251ec
            Author : Lubomír Sedlář <lsedlar@redhat.com>
            Date   : 2016-09-05T09:07:51+02:00
            Stats  : +11/-5 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/rpkg/c/f5aa1689f8815ec5f1104e945d97dbd6b29251ec?branch=1.70-1

            Log:
            Remove deps on obsoleted packages

python-argparse and python-hashlib are moved into python stdlib in
supported Fedoras and EPEL 7. We only need to depend on them on EPEL 6.

---
diff --git a/rpkg.spec b/rpkg.spec
index 17975e3..e954a2d 100644
--- a/rpkg.spec
+++ b/rpkg.spec
@@ -12,7 +12,6 @@ URL:            https://pagure.io/rpkg
 Source0:        https://pagure.io/releases/rpkg/rpkg-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-Requires:       python-argparse
 Requires:       pyrpkg >= %{version}-%{release}
 Requires:       python-osbs
 
@@ -23,28 +22,35 @@ BuildArch:      noarch
 BuildRequires:  python-devel, python-setuptools
 # We br these things for man page generation due to imports
 BuildRequires:  GitPython, koji, python-pycurl
-BuildRequires:  python-hashlib
-BuildRequires:  python-argparse
 BuildRequires:  python-kitchen
 BuildRequires:  python-nose
 BuildRequires:  python-mock
 BuildRequires:  python-osbs
 
+%if 0%{?rhel} && 0%{?rhel} < 7
+BuildRequires:  python-argparse
+BuildRequires:  python-hashlib
+%endif
+
 %description
 A tool for managing RPM package sources in a git repository.
 
 %package -n pyrpkg
 Summary:        Python library for interacting with rpm+git
 Group:          Applications/Databases
-Requires:       GitPython >= 0.2.0, python-argparse
+Requires:       GitPython >= 0.2.0
 Requires:       python-pycurl, koji
 Requires:       rpm-build, rpm-python
 Requires:       rpmlint, mock, curl, openssh-clients, redhat-rpm-config
 Requires:       python-kitchen
-Requires:       python-hashlib
 Requires:       python-osbs
 Requires:       python-six >= 1.9.0
 
+%if 0%{?rhel} && 0%{?rhel} < 7
+Requires:       python-argparse
+Requires:       python-hashlib
+%endif
+
 BuildRequires:  python-six >= 1.9.0
 
 %description -n pyrpkg

                 reply	other threads:[~2026-08-10 21:43 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=178639821276.1.9964951609135907117.rpms-rpkg-f5aa1689f881@fedoraproject.org \
    --to=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