public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ranger] epel10: - spec modernization thanks to Filip Szymański <fszymanski@fedoraproject.org>
@ 2026-06-10  3:14 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-06-10  3:14 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/ranger
            Branch : epel10
            Commit : 1af34e7b0d65daa12e3588e511c0d55043efff76
            Author : Filipe Rosset <rosset.filipe@gmail.com>
            Date   : 2018-10-23T20:18:42-03:00
            Stats  : +19/-12 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/ranger/c/1af34e7b0d65daa12e3588e511c0d55043efff76?branch=epel10

            Log:
            - spec modernization thanks to Filip Szymański <fszymanski@fedoraproject.org>
- fixes rhbz #1592733 #1408563 #1495481 and #1559823

---
diff --git a/ranger.spec b/ranger.spec
index f98a7e5..5707424 100644
--- a/ranger.spec
+++ b/ranger.spec
@@ -1,15 +1,15 @@
 Name:           ranger
 Version:        1.9.2
-Release:        1%{?dist}
-Summary:        A flexible console file manager
-
-Group:          Development/Languages
+Release:        2%{?dist}
+Summary:        A vim-like file manager
 License:        GPLv3+
 URL:            https://ranger.github.io/
-Source0:        http://git.savannah.gnu.org/cgit/%{name}.git/snapshot/%{name}-%{version}.tar.gz
+Source0:        https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
 
 BuildArch:      noarch
+BuildRequires:  desktop-file-utils
 BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
 #Suggests:       w3m-img
 
 %description
@@ -22,29 +22,36 @@ you'll be going.
 
 %prep
 %autosetup
+sed -i -e '1d;2i#!/usr/bin/python3' %{name}.py
 
 
 %build
-%{__python3} setup.py build
+%py3_build
 
 
 %install
-%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
-mv %{buildroot}%{_docdir}/%{name} rpmdocs
-find rpmdocs -type f -exec chmod -v -R -X '{}' \;
+%py3_install
+desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
+mv %{buildroot}%{_pkgdocdir} _doc
+find _doc -type f -exec chmod -R -x '{}' \;
 
 
 %files
-%doc rpmdocs/*
+%license LICENSE
+%doc _doc/*
 %{_bindir}/ranger
 %{_bindir}/rifle
 %{python3_sitelib}/*
-%{_mandir}/man1/ranger.1.gz
-%{_mandir}/man1/rifle.1.gz
 %{_datadir}/applications/ranger.desktop
+%{_mandir}/man1/ranger.1*
+%{_mandir}/man1/rifle.1*
 
 
 %changelog
+* Sun Oct 21 2018 Filipe Rosset <rosset.filipe@gmail.com> - 1.9.2-2
+- spec modernization thanks to Filip Szymański <fszymanski@fedoraproject.org>
+- fixes rhbz #1592733 #1408563 #1495481 and #1559823
+
 * Sun Oct 21 2018 Filipe Rosset <rosset.filipe@gmail.com> - 1.9.2-1
 - update to latest version + spec cleanup, fixes rhbz #1408563
 

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

only message in thread, other threads:[~2026-06-10  3:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-10  3:14 [rpms/ranger] epel10: - spec modernization thanks to Filip Szymański <fszymanski@fedoraproject.org> Filipe Rosset

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