%define _debugsource_template %{nil} %define debug_package %{nil} %global commit 84d53949ae636eb2f473e93f1513a59939dcfe76 %global shortcommit 84d5394 Name: gcmd Version: 2.1.0^git20261011.%{shortcommit} Release: 1%{?dist} Summary: A double-pane graphical file manager for the GNOME desktop License: GPL-3.0-or-later URL: https://gitlab.gnome.org/GNOME/gnome-commander Source0: https://gitlab.gnome.org/GNOME/gnome-commander/-/archive/%{commit}/gnome-commander-%{commit}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: meson BuildRequires: ninja-build BuildRequires: cargo BuildRequires: rust >= 1.80 BuildRequires: gcc BuildRequires: pkgconfig(gtk4) BuildRequires: pkgconfig(libadwaita-1) BuildRequires: pkgconfig(vte-2.91-gtk4) BuildRequires: gettext BuildRequires: itstool BuildRequires: desktop-file-utils BuildRequires: libappstream-glib %description GNOME Commander (renamed to gcmd) is a fast and powerful twin-panel file manager for the GNOME desktop, modeled after the classic Norton Commander. %prep %autosetup -n gnome-commander-%{commit} %build %meson %meson_build %install %meson_install # Rename binary to gcmd mv %{buildroot}%{_bindir}/gnome-commander %{buildroot}%{_bindir}/gcmd # Rename desktop file mv %{buildroot}%{_datadir}/applications/org.gnome.gnome-commander.desktop %{buildroot}%{_datadir}/applications/gcmd.desktop sed -i 's/Exec=gnome-commander/Exec=gcmd/g' %{buildroot}%{_datadir}/applications/gcmd.desktop sed -i 's/Name=GNOME Commander/Name=gcmd/g' %{buildroot}%{_datadir}/applications/gcmd.desktop sed -i '/SingleMainWindow/d' %{buildroot}%{_datadir}/applications/gcmd.desktop sed -i 's/Utility;//g' %{buildroot}%{_datadir}/applications/gcmd.desktop # Rename icon mv %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/gnome-commander.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/gcmd.svg sed -i 's/Icon=gnome-commander/Icon=gcmd/g' %{buildroot}%{_datadir}/applications/gcmd.desktop # Rename man page mv %{buildroot}%{_mandir}/man1/gnome-commander.1 %{buildroot}%{_mandir}/man1/gcmd.1 # Rename metainfo mv %{buildroot}%{_datadir}/metainfo/org.gnome.gnome-commander.metainfo.xml %{buildroot}%{_datadir}/metainfo/gcmd.metainfo.xml sed -i 's/org.gnome.gnome-commander/gcmd/g' %{buildroot}%{_datadir}/metainfo/gcmd.metainfo.xml %find_lang gnome-commander --with-gnome %check desktop-file-validate %{buildroot}%{_datadir}/applications/gcmd.desktop %files -f gnome-commander.lang %license COPYING %doc README.md NEWS BUGS AUTHORS %{_bindir}/gcmd %{_datadir}/applications/gcmd.desktop %{_datadir}/glib-2.0/schemas/org.gnome.gnome-commander.gschema.xml %{_datadir}/glib-2.0/schemas/org.gnome.gnome-commander.enums.xml %{_datadir}/icons/hicolor/scalable/apps/gcmd.svg %{_datadir}/gnome-commander/ %{_mandir}/man1/gcmd.1* %{_datadir}/metainfo/gcmd.metainfo.xml %changelog * Sun Oct 11 2026 sachesi - 2.1.0^git20261011.84d5394-1 - Update to the latest main snapshot. * Sat Oct 10 2026 sachesi - 2.1.0^git20261010.8b645e1-1 - Update to the latest main snapshot. * Thu Oct 08 2026 sachesi - 2.1.0^git20261008.aa7d5b9-1 - Update to the latest main snapshot. * Sat Oct 03 2026 sachesi - 2.1.0^git20261003.8247215-1 - Update to the latest main snapshot. * Mon Sep 07 2026 sachesi - 2.1.0^git20260822.5876a84-1 - Pin the main branch snapshot for reproducible builds. * Sun Jun 14 2026 sachesi - 2.1.0-1 - Initial package for gcmd (gnome-commander main branch)