2010-09-05 17:42:51 +00:00
|
|
|
# link with shared libs
|
|
|
|
%bcond_without hinotify
|
2010-12-02 02:45:04 +00:00
|
|
|
%bcond_without libmpd
|
2010-09-05 18:02:03 +00:00
|
|
|
%bcond_with iwlib
|
2010-09-05 17:42:51 +00:00
|
|
|
|
|
|
|
# ghc does not emit debug information
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
Name: xmobar
|
2011-03-29 01:08:56 +00:00
|
|
|
Version: 0.13
|
|
|
|
Release: 1%{?dist}
|
2010-09-05 17:42:51 +00:00
|
|
|
Summary: A minimalistic text-based status bar
|
|
|
|
|
|
|
|
Group: User Interface/X
|
|
|
|
License: BSD
|
|
|
|
URL: http://hackage.haskell.org/package/%{name}
|
|
|
|
Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source1: xmobar.desktop
|
2011-01-25 15:32:43 +00:00
|
|
|
# Not in the package from Hackage.
|
|
|
|
# https://github.com/jaor/xmobar/issues/#issue/6
|
|
|
|
Source2: xmonadpropwrite.hs
|
2010-09-05 17:42:51 +00:00
|
|
|
# fedora ghc archs:
|
2011-03-10 08:15:38 +00:00
|
|
|
ExclusiveArch: %{ix86} x86_64 ppc alpha sparcv9
|
2010-09-05 17:42:51 +00:00
|
|
|
BuildRequires: desktop-file-utils
|
2011-01-25 14:23:48 +00:00
|
|
|
BuildRequires: ghc
|
|
|
|
BuildRequires: ghc-devel
|
|
|
|
BuildRequires: ghc-rpm-macros >= 0.7.3
|
2010-09-05 17:42:51 +00:00
|
|
|
BuildRequires: ghc-X11-devel >= 1.3.0
|
|
|
|
BuildRequires: ghc-X11-xft-devel
|
|
|
|
BuildRequires: ghc-mtl-devel
|
|
|
|
BuildRequires: ghc-parsec-devel
|
|
|
|
BuildRequires: ghc-stm-devel
|
|
|
|
BuildRequires: ghc-utf8-string-devel
|
|
|
|
BuildRequires: ghc-hinotify-devel
|
|
|
|
%if %{with libmpd}
|
|
|
|
BuildRequires: ghc-libmpd-devel
|
|
|
|
%endif
|
2010-09-05 18:02:03 +00:00
|
|
|
%if %{with iwlib}
|
|
|
|
BuildRequires: wireless-tools-devel
|
|
|
|
%endif
|
2010-09-05 17:42:51 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Inspired by the Ion3 status bar, it supports similar features, like dynamic
|
|
|
|
color management, output templates, and extensibility through plugins.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-01-25 15:32:43 +00:00
|
|
|
mkdir scripts
|
|
|
|
cp %{SOURCE2} scripts/xmonadpropwrite.hs
|
2010-09-05 17:42:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2011-03-12 12:56:23 +00:00
|
|
|
%define cabal_configure_options --flags="with_utf8 with_xft %{?with_hinotify:with_inotify} %{?with_libmpd:with_mpd} %{?with_iwlib:with_iwlib}"
|
2011-03-12 13:07:45 +00:00
|
|
|
%ghc_bin_build
|
2010-09-05 17:42:51 +00:00
|
|
|
pushd scripts
|
2011-03-12 12:56:23 +00:00
|
|
|
%{_bindir}/ghc %{!?ghc_without_dynamic:-dynamic} --make xmonadpropwrite.hs
|
2010-09-05 17:42:51 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
desktop-file-install \
|
|
|
|
--dir=%{buildroot}%{_datadir}/applications \
|
|
|
|
%{SOURCE1}
|
|
|
|
pushd scripts
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
install --mode=0755 -p xmonadpropwrite %{buildroot}%{_bindir}/xmonadpropwrite
|
|
|
|
popd
|
|
|
|
%ghc_bin_install
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE README
|
|
|
|
%attr(755,root,root) %{_bindir}/%{name}
|
|
|
|
%attr(755,root,root) %{_bindir}/xmonadpropwrite
|
|
|
|
%{_datadir}/applications/xmobar.desktop
|
2011-01-25 15:54:56 +00:00
|
|
|
%{_datadir}/%{name}-%{version}/
|
2010-09-05 17:42:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2011-03-29 01:08:56 +00:00
|
|
|
* Mon Mar 28 2011 Ben Boeckel <mathstuf@gmail.com> - 0.13-1
|
|
|
|
- Update to 0.13
|
|
|
|
|
2011-03-12 12:56:23 +00:00
|
|
|
* 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
|
|
|
|
|
2011-03-10 08:15:38 +00:00
|
|
|
* Thu Mar 10 2011 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.12-4
|
|
|
|
- Enable build on sparcv9
|
|
|
|
|
2011-02-17 05:44:53 +00:00
|
|
|
* Thu Feb 17 2011 Ben Boeckel <mathstuf@gmail.com> - 0.12-3
|
|
|
|
- Rebuild for broken dependencies
|
|
|
|
|
2011-02-08 05:47:21 +00:00
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-25 14:23:48 +00:00
|
|
|
* Tue Jan 25 2011 Ben Boeckel <mathstuf@gmail.com> - 0.12-1
|
|
|
|
- Update to cabal2spec-0.22.4
|
|
|
|
- Update to 0.12
|
|
|
|
|
2011-01-22 16:57:25 +00:00
|
|
|
* Wed Jan 19 2011 Jens Petersen <petersen@redhat.com> - 0.11.1-9
|
|
|
|
- update to cabal2spec-0.22.4
|
|
|
|
- BR ghc-devel
|
|
|
|
|
2010-12-05 10:42:49 +00:00
|
|
|
* Sun Dec 5 2010 Jens Petersen <petersen@redhat.com> - 0.11.1-8
|
|
|
|
- rebuild with newer stm, syb, and network
|
|
|
|
|
2010-12-02 02:45:04 +00:00
|
|
|
* Wed Dec 01 2010 Ben Boeckel <mathstuf@gmail.com> - 0.11.1-7
|
|
|
|
- Re-enable libmpd
|
|
|
|
|
2010-11-30 00:27:52 +00:00
|
|
|
* Mon Nov 29 2010 Ben Boeckel <mathstuf@gmail.com> - 0.11.1-6
|
2010-12-05 10:42:49 +00:00
|
|
|
- Disable libmpd support since 0.5 broke things
|
2010-11-30 00:27:52 +00:00
|
|
|
|
2010-11-28 23:59:54 +00:00
|
|
|
* Mon Nov 29 2010 Jens Petersen <petersen@redhat.com> - 0.11.1-5
|
|
|
|
- rebuild
|
|
|
|
|
2010-09-05 17:42:51 +00:00
|
|
|
* Fri Sep 03 2010 Ben Boeckel <mathstuf@gmail.com> - 0.11.1-4
|
|
|
|
- Ship a desktop file as well
|
|
|
|
|
|
|
|
* Wed Sep 01 2010 Ben Boeckel <mathstuf@gmail.com> - 0.11.1-3
|
|
|
|
- Enable libmpd and hinotify by default
|
|
|
|
- Ship the README
|
|
|
|
|
|
|
|
* Tue Aug 31 2010 Ben Boeckel <mathstuf@gmail.com> - 0.11.1-2
|
|
|
|
- Build xmonadpropwrite as well
|
|
|
|
|
|
|
|
* Tue Aug 31 2010 Ben Boeckel <mathstuf@gmail.com> - 0.11.1-1
|
|
|
|
- Initial package
|
|
|
|
|
|
|
|
* Tue Aug 31 2010 Fedora Haskell SIG <haskell-devel@lists.fedoraproject.org> - 0.11.1-0
|
|
|
|
- initial packaging for Fedora automatically generated by cabal2spec-0.22.2
|