0f14b14
%bcond_with     gtk
0f14b14
%bcond_without  libmagic
0f14b14
%bcond_with     x11
a41ee3f
0e89bb2
%global tarball_version %%(echo %{version} | tr '~' '-')
0e89bb2
Pierre Dorbais b7d4e12
Name:           vifm
47e0b41
Version:        0.13
ebaba6c
Release:        %autorelease
bf72977
Summary:        Vifm is a file manager with curses interface
Pierre Dorbais b7d4e12
Pierre Dorbais b7d4e12
License:        GPLv2+
7dcde82
URL:            http://vifm.info/
0e89bb2
Source0:        https://github.com/%{name}/%{name}/releases/download/v%{tarball_version}/%{name}-%{tarball_version}.tar.bz2
Pierre Dorbais b7d4e12
c1655f2
BuildRequires:  autoconf
046271c
BuildRequires:  automake
0f14b14
BuildRequires:  desktop-file-utils
0f14b14
BuildRequires:  gcc
bf72977
BuildRequires:  make
0f14b14
BuildRequires:  ncurses-devel
fa07e4a
BuildRequires:  perl-generators
a41ee3f
%if %{with gtk}
a41ee3f
BuildRequires:  pkgconfig(glib-2.0)
a41ee3f
BuildRequires:  pkgconfig(gtk+-2.0)
a41ee3f
%endif
a41ee3f
%if %{with libmagic}
ffe1060
BuildRequires:  file-devel
a41ee3f
%endif
a41ee3f
%if %{with x11}
a41ee3f
BuildRequires:  libX11-devel
a41ee3f
%endif
Pierre Dorbais b7d4e12
0e89bb2
Requires:       hicolor-icon-theme
0e89bb2
Pierre Dorbais b7d4e12
%description
bf72977
Vifm is a curses based Vim-like file manager extended with some useful ideas
bf72977
from mutt. If you use Vim, Vifm gives you complete keyboard control over your
bf72977
files without having to learn a new set of commands. It goes not just about
bf72977
Vim-like keybindings, but also about modes, options, registers, commands and
bf72977
other things you might already like in Vim.
0f14b14
bf72977
Just like Vim, Vifm tries to adhere to the Unix philosophy. So instead of
0f14b14
working solutions which are set in stone user is provided with a set of means
bf72977
for customization of Vifm to one's likings. Though builtin functionality
0a0f4dd
should be enough for most of use cases.
Pierre Dorbais b7d4e12
Ben Boeckel c445172
Pierre Dorbais b7d4e12
%prep
0e89bb2
%autosetup -n %{name}-%{tarball_version}
Pierre Dorbais b7d4e12
Pierre Dorbais b7d4e12
Pierre Dorbais b7d4e12
%build
a41ee3f
%configure \
a41ee3f
%if %{with gtk}
a41ee3f
    --with-gtk=yes \
a41ee3f
%else
a41ee3f
    --with-gtk=no \
a41ee3f
%endif
a41ee3f
%if %{with libmagic}
a41ee3f
    --with-libmagic=yes \
a41ee3f
%else
a41ee3f
    --with-libmagic=no \
a41ee3f
%endif
a41ee3f
%if %{with x11}
a41ee3f
    --with-X11=yes
a41ee3f
%else
a41ee3f
    --with-X11=no
a41ee3f
%endif
0f14b14
%make_build
Pierre Dorbais b7d4e12
Pierre Dorbais b7d4e12
Pierre Dorbais b7d4e12
%install
0f14b14
%make_install
0f14b14
0e89bb2
# Handle license file via regular RPM macros
0a0f4dd
rm %{buildroot}%{_pkgdocdir}/COPYING
Pierre Dorbais b7d4e12
b191138
0f14b14
%check
0f14b14
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
1a6ce5c
Pierre Dorbais b7d4e12
Pierre Dorbais b7d4e12
%files
b191138
%license COPYING
Pierre Dorbais b7d4e12
%{_bindir}/%{name}
0f14b14
%{_bindir}/%{name}-convert-dircolors
0f14b14
%{_bindir}/%{name}-pause
0f14b14
%{_bindir}/%{name}-screen-split
eaffb57
%{_datadir}/%{name}/
0f14b14
%{_datadir}/applications/*.desktop
0f14b14
%{_datadir}/bash-completion/completions/%{name}
bf72977
%{_datadir}/fish/vendor_completions.d/%{name}.fish
0e89bb2
%{_datadir}/icons/hicolor/*/*/*.png
0e89bb2
%{_datadir}/icons/hicolor/scalable/*/*.svg
0f14b14
%{_datadir}/pixmaps/%{name}.png
0f14b14
%{_datadir}/zsh/site-functions/_%{name}
0f14b14
%{_mandir}/man1/*
0f14b14
%{_pkgdocdir}/
0a0f4dd
%{_sysconfdir}/%{name}/
Pierre Dorbais b7d4e12
Pierre Dorbais b7d4e12
Pierre Dorbais b7d4e12
%changelog
ebaba6c
%autochangelog