File clifm.spec of Package CliFM

#
# spec file for package clifm
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

Name:           clifm
Version:        1.26
Release:        1
Summary:        The command line file manager
License:        GPL-2.0-or-later
Group:          Productivity/File utilities
URL:            https://github.com/leo-arch/clifm#clifm
Source0:        https://github.com/leo-arch/clifm/archive/v%{version}.tar.gz#/v%{version}.tar.gz
BuildRequires:  make
BuildRequires:  gcc

%if 0%{?fedora_version}
BuildRequires:  libacl-devel
BuildRequires:  libcap-devel
BuildRequires:  readline-devel
BuildRequires:  file-devel
%endif

%if 0%{?rhel_version}
BuildRequires:  libacl-devel
BuildRequires:  libcap-devel
BuildRequires:  readline-devel
BuildRequires:  file-devel
%endif

%if 0%{?centos_version}
BuildRequires:  libacl-devel
BuildRequires:  libcap-devel
BuildRequires:  readline-devel
BuildRequires:  file-devel
%endif

%if 0%{?suse_version}
BuildRequires:  acl-devel
BuildRequires:  libcap-devel
BuildRequires:  readline-devel
BuildRequires:  file-devel
%endif

%if 0%{?sle_version}
BuildRequires:  acl-devel
BuildRequires:  libcap-devel
BuildRequires:  readline-devel
BuildRequires:  file-devel
%endif

%description
Unlike most terminal file managers out there, based on the TUI,
Clifm is CLI file manager, and as such relies entirely on the
command line: it never hides the shell. It includes bookmarks,
files selection, file tags, workspaces, file previews, built-in
resource opener and directory jumper, a system of plugins, TAB
completion, auto-suggestions, deep FZF integration, and more.

%prep
%setup -q

%build
export CFLAGS="%{optflags}"
make %{?_smp_mflags} PREFIX=%{_prefix} MANDIR=%{_mandir}

%install
%make_install PREFIX=%{_prefix} MANDIR=%{_mandir}

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.gz
%dir %{_datadir}/applications
%{_datadir}/applications/%{name}.desktop
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/%{name}
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_%{name}
%dir %{_datadir}/fish
%dir %{_datadir}/fish/vendor_completions.d
%{_datadir}/fish/vendor_completions.d/%{name}.fish

%changelog
openSUSE Build Service is sponsored by