hide desktop file from desktop menu; use cabal_configure_options, cabal_bin_build, ghc_without_dynamic
This commit is contained in:
parent
652d1762eb
commit
fb2a936cf1
@ -7,3 +7,4 @@ Terminal=false
|
||||
Name=XMobar status bar
|
||||
GenericName=Status bar
|
||||
Comment=Text-based status bar inspired by Ion3
|
||||
NoDisplay=true
|
||||
|
16
xmobar.spec
16
xmobar.spec
@ -1,5 +1,4 @@
|
||||
# link with shared libs
|
||||
%bcond_without dynamic
|
||||
%bcond_without hinotify
|
||||
%bcond_without libmpd
|
||||
%bcond_with iwlib
|
||||
@ -9,7 +8,7 @@
|
||||
|
||||
Name: xmobar
|
||||
Version: 0.12
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: A minimalistic text-based status bar
|
||||
|
||||
Group: User Interface/X
|
||||
@ -52,13 +51,10 @@ cp %{SOURCE2} scripts/xmonadpropwrite.hs
|
||||
|
||||
|
||||
%build
|
||||
%cabal_configure --ghc --flags="with_utf8 with_xft" \
|
||||
%{?with_hinotify:--flags="with_inotify"} \
|
||||
%{?with_libmpd: --flags="with_mpd"} \
|
||||
%{?with_iwlib: --flags="with_iwlib"}
|
||||
%cabal build
|
||||
%define cabal_configure_options --flags="with_utf8 with_xft %{?with_hinotify:with_inotify} %{?with_libmpd:with_mpd} %{?with_iwlib:with_iwlib}"
|
||||
%cabal_bin_build
|
||||
pushd scripts
|
||||
%{_bindir}/ghc %{?with_dynamic:-dynamic} --make xmonadpropwrite.hs
|
||||
%{_bindir}/ghc %{!?ghc_without_dynamic:-dynamic} --make xmonadpropwrite.hs
|
||||
popd
|
||||
|
||||
|
||||
@ -83,6 +79,10 @@ popd
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Mar 12 2011 Jens Petersen <petersen@redhat.com> - 0.12-5
|
||||
- hide desktop file from desktop menu (#674731)
|
||||
- use cabal_configure_options, cabal_bin_build, ghc_without_dynamic
|
||||
|
||||
* Thu Mar 10 2011 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.12-4
|
||||
- Enable build on sparcv9
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user