diff --git a/vifm.spec b/vifm.spec index 4ccbe3e..aa36617 100644 --- a/vifm.spec +++ b/vifm.spec @@ -1,3 +1,7 @@ +%bcond_with gtk +%bcond_without libmagic +%bcond_with x11 + Name: vifm Version: 0.7.4a Release: 1%{?dist} @@ -8,7 +12,16 @@ License: GPLv2+ URL: http://%{name}.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 +%if %{with gtk} +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(gtk+-2.0) +%endif +%if %{with libmagic} BuildRequires: file-devel +%endif +%if %{with x11} +BuildRequires: libX11-devel +%endif BuildRequires: ncurses-devel %description @@ -20,7 +33,22 @@ A ncurses based CLI file manager with vi like key-bindings %build -%configure +%configure \ +%if %{with gtk} + --with-gtk=yes \ +%else + --with-gtk=no \ +%endif +%if %{with libmagic} + --with-libmagic=yes \ +%else + --with-libmagic=no \ +%endif +%if %{with x11} + --with-X11=yes +%else + --with-X11=no +%endif make %{?_smp_mflags}