diff --git a/xmobar.spec b/xmobar.spec index de2ff6b..0b81195 100644 --- a/xmobar.spec +++ b/xmobar.spec @@ -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