%define _debugsource_template %{nil} %define debug_package %{nil} Name: gcmd Version: 2.1.0 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/main/gnome-commander-main.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-main %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 Jun 14 2026 sachesi - 2.1.0-1 - Initial package for gcmd (gnome-commander main branch)