Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37043055
en ru br
ALT Linux repos
S:1.16.1-alt1
5.0: 1.2.7-alt3.M50.1
4.1: 1.2.7-alt3.M41.1
3.0: 1.1.6-alt2

Group :: File tools
RPM: gnome-commander

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_disable snapshot

%define ver_major 1.16
%def_with exiv2
%def_with taglib
%def_with poppler
%def_with libgsf
%def_with samba
%def_with unique

%def_enable check

Name: gnome-commander
Version: %ver_major.0
Release: alt1

%define xdg_name org.gnome.%name

Summary: A Gnome file manager similar to the Norton Commander (TM)
License: GPL-2.0
Group: File tools
Url: https://gcmd.github.io

%if_disabled snapshot
Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.xz
%else
Vcs: https://gitlab.gnome.org/GNOME/gnome-commander.git
Source: %name-%version.tar
%endif

%define gtk_ver 2.24

Requires: dconf xdg-utils
Requires: %_bindir/gio gvfs-backends
Requires: file-roller

BuildRequires(pre): rpm-macros-meson
BuildRequires: meson flex gcc-c++
BuildRequires: yelp-tools desktop-file-utils /usr/bin/appstream-util
BuildRequires: libgtk+2-devel >= %gtk_ver libgnome-keyring-devel
%{?_with_exiv2:BuildRequires: libexiv2-devel}
%{?_with_taglib:BuildRequires: libtag-devel}
%{?_with_poppler:BuildRequires: libpoppler-glib-devel}
%{?_with_libgsf:BuildRequires: libgsf-devel}
%{?_with_samba:BuildRequires: libsmbclient-devel}
%{?_with_unique:BuildRequires: libunique-devel}
%{?_enable_check:BuildRequires: libgtest-devel}

%description
Gnome Commander is a file manager that just like the classical Norton
Commander (TM) lets you do everything with the keyboard. It can perform
all standard file operations and some extra features like FTP support.

%prep
%setup
%ifarch %e2k
# workaround for EDG frontend
sed -i.e2k "/g_autofree gchar/{s|g_autofree gchar|g_autofree_edg(gchar)|;s|\*||g}" src/gnome-cmd-data.cc
%endif

%build
%meson
%meson_build

%install
%meson_install
rm -f %buildroot%_libdir/libgcmd.a

%find_lang --with-gnome %name

%check
%__meson_test

%files -f %name.lang
%_bindir/*
%_libdir/%name/
%_datadir/applications/%xdg_name.desktop
%_datadir/glib-2.0/schemas/%xdg_name.enums.xml
%_datadir/glib-2.0/schemas/%xdg_name.gschema.xml
%_iconsdir/hicolor/*/apps/*.svg
%_datadir/pixmaps/%name/
%_datadir/metainfo/%xdg_name.appdata.xml
%_man1dir/*
%doc AUTHORS NEWS README* TODO doc/*.txt

%exclude %_includedir/%name/
%exclude %_datadir/%name/internal_viewer_hacking.txt
%exclude %_datadir/%name/keys.txt


%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin