Add flag for iwlib (currently fails to compile)

This commit is contained in:
Ben Boeckel 2010-09-05 14:02:03 -04:00
parent 43f95312f1
commit e3706c8bba

View File

@ -2,6 +2,7 @@
%bcond_without dynamic
%bcond_without hinotify
%bcond_without libmpd
%bcond_with iwlib
# ghc does not emit debug information
%global debug_package %{nil}
@ -34,6 +35,9 @@ BuildRequires: ghc-hinotify-devel
%if %{with libmpd}
BuildRequires: ghc-libmpd-devel
%endif
%if %{with iwlib}
BuildRequires: wireless-tools-devel
%endif
%description
Inspired by the Ion3 status bar, it supports similar features, like dynamic
@ -47,7 +51,8 @@ color management, output templates, and extensibility through plugins.
%build
%cabal_configure --ghc --flags="with_utf8 with_xft" \
%{?with_hinotify:--flags="with_inotify"} \
%{?with_libmpd: --flags="with_mpd"}
%{?with_libmpd: --flags="with_mpd"} \
%{?with_iwlib: --flags="with_iwlib"}
%cabal build
pushd scripts
%{_bindir}/ghc %{?with_dynamic:-dynamic} --make xmonadpropwrite.hs