public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ranger] rawhide: spec cleanup and modernization
@ 2026-06-13 22:42 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-06-13 22:42 UTC (permalink / raw)
  To: git-commits

            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
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-13 22:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-13 22:42 [rpms/ranger] rawhide: spec cleanup and modernization Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox