public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <filiperosset@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/ranger] rawhide: spec cleanup and modernization
Date: Sat, 13 Jun 2026 22:42:08 GMT	[thread overview]
Message-ID: <178139052834.1.12263843614087812292.rpms-ranger-73c9f73d5253@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/ranger
            Branch : rawhide
            Commit : 73c9f73d5253a0559dd21d10e939dffa3f837973
            Author : Filipe Rosset <filiperosset@fedoraproject.org>
            Date   : 2026-06-13T19:29:22-03:00
            Stats  : +11/-4 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/ranger/c/73c9f73d5253a0559dd21d10e939dffa3f837973?branch=rawhide

            Log:
            spec cleanup and modernization

Signed-off-by: Filipe Rosset <filiperosset@fedoraproject.org>

---
diff --git a/ranger.spec b/ranger.spec
index 98b79a4..5362dc5 100644
--- a/ranger.spec
+++ b/ranger.spec
@@ -1,15 +1,15 @@
 Name:           ranger
 Version:        1.9.4
-Release:        10%{?dist}
+Release:        11%{?dist}
 Summary:        A vim-like file manager
 License:        GPL-3.0-only
-URL:            https://ranger.github.io/
+URL:            https://ranger.fm/
 Source0:        https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
 
 BuildArch:      noarch
 BuildRequires:  desktop-file-utils
 BuildRequires:  python3-devel
-#Suggests:       w3m-img
+
 
 %description
 Ranger is a free console file manager that gives you greater flexibility and a
@@ -21,7 +21,8 @@ you'll be going.
 
 %prep
 %autosetup
-sed -i -e '1d;2i#!/usr/bin/python3' %{name}.py
+# Fix shebang in the main executable script
+%{__python3} /usr/lib/rpm/redhat/pathfix.py -pn -i %{__python3} %{name}.py
 
 
 %generate_buildrequires
@@ -39,6 +40,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
 mv %{buildroot}%{_pkgdocdir} _doc
 find _doc -type f -exec chmod -R -x '{}' \;
 
+# Remove shebang from the python module to satisfy rpmlint
+sed -i -e '1{\@^#!@d}' %{buildroot}%{python3_sitelib}/%{name}/ext/rifle.py
+
 
 %check
 %pyproject_check_import
@@ -54,6 +58,9 @@ find _doc -type f -exec chmod -R -x '{}' \;
 
 
 %changelog
+* Sat Jun 13 2026 Filipe Rosset <filiperosset@fedoraproject.org> - 1.9.4-11
+- Modernize spec file: use pathfix.py and remove shebang from non-executable script
+
 * Wed Jun 03 2026 Python Maint <python-maint@redhat.com> - 1.9.4-10
 - Rebuilt for Python 3.15
 

                 reply	other threads:[~2026-06-13 22:42 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=178139052834.1.12263843614087812292.rpms-ranger-73c9f73d5253@fedoraproject.org \
    --to=filiperosset@fedoraproject.org \
    --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