[xmobar/f13/master] Add flag for iwlib (currently fails to compile)

Ben Boeckel mathstuf at fedoraproject.org
Sun Sep 5 18:03:29 UTC 2010


commit e3706c8bbad5114f263e5b7cf5ada461da8933b0
Author: Ben Boeckel <MathStuf at gmail.com>
Date:   Sun Sep 5 14:02:03 2010 -0400

    Add flag for iwlib (currently fails to compile)

 xmobar.spec |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
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


More information about the scm-commits mailing list