xmobar/xmobar.spec

186 lines
5.6 KiB
RPMSpec
Raw Normal View History

2012-01-06 05:26:59 +00:00
# cabal2spec-0.25.2
# https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
2011-07-22 04:20:08 +00:00
%bcond_without hinotify
2010-12-02 02:45:04 +00:00
%bcond_without libmpd
%bcond_without iwlib
%bcond_with alsa
2010-09-05 17:42:51 +00:00
Name: xmobar
Version: 0.15
Release: 2%{?dist}
2010-09-05 17:42:51 +00:00
Summary: A minimalistic text-based status bar
Group: User Interface/X
License: BSD
2012-01-06 05:26:59 +00:00
# BEGIN cabal2spec
2010-09-05 17:42:51 +00:00
URL: http://hackage.haskell.org/package/%{name}
Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
2011-06-23 02:46:51 +00:00
ExclusiveArch: %{ghc_arches}
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
2012-01-06 05:26:59 +00:00
# END cabal2spec
Source1: xmobar.desktop
Patch1: xmobar-0.13-default-fonts.patch
2012-06-11 03:48:03 +00:00
Patch2: xmobar-0.15-mtl-2.1.patch
%if %{with alsa}
BuildRequires: ghc-alsa-mixer-devel
%endif
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-filepath-devel
%if %{with hinotify}
2010-09-05 17:42:51 +00:00
BuildRequires: ghc-hinotify-devel
%endif
2010-09-05 17:42:51 +00:00
%if %{with libmpd}
BuildRequires: ghc-libmpd-devel
%endif
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-old-locale-devel
BuildRequires: ghc-old-time-devel
BuildRequires: ghc-parsec-devel
BuildRequires: ghc-process-devel
BuildRequires: ghc-stm-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-unix-devel
BuildRequires: ghc-utf8-string-devel
BuildRequires: ghc-X11-devel >= 1.3.0
BuildRequires: ghc-X11-xft-devel
2011-06-23 02:46:51 +00:00
BuildRequires: desktop-file-utils
%if %{with iwlib}
BuildRequires: wireless-tools-devel
%endif
2012-01-06 09:24:02 +00:00
BuildRequires: libXrandr-devel
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
%patch1 -p1 -b .fonts
2012-06-11 03:48:03 +00:00
%patch2 -p1 -b .orig
2010-09-05 17:42:51 +00:00
%build
%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
2011-08-04 08:40:05 +00:00
cd samples
%{_bindir}/ghc %{!?ghc_without_dynamic:-dynamic} --make xmonadpropwrite.hs
cd -
2010-09-05 17:42:51 +00:00
%install
desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications \
%{SOURCE1}
%ghc_bin_install
2011-08-04 08:40:05 +00:00
install --mode=0755 -p samples/xmonadpropwrite %{buildroot}%{_bindir}/xmonadpropwrite
2010-09-05 17:42:51 +00:00
%files
%doc LICENSE readme.md news.md samples/xmobar.config
2010-09-05 17:42:51 +00:00
%attr(755,root,root) %{_bindir}/%{name}
%attr(755,root,root) %{_bindir}/xmonadpropwrite
%{_datadir}/applications/xmobar.desktop
%changelog
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Mon Jun 11 2012 Jens Petersen <petersen@redhat.com> - 0.15-1
- update to 0.15
2012-06-11 03:48:03 +00:00
- allow building with mtl-2.1
- xmobar-0.14-MPD-ghc74-Show.patch no longer needed
2012-03-21 04:25:11 +00:00
* Wed Mar 21 2012 Jens Petersen <petersen@redhat.com> - 0.14-4
- fix MPD build on ghc-7.4
2012-03-01 03:43:01 +00:00
* Wed Feb 29 2012 Ben Boeckel <mathstuf@gmail.com> - 0.14-3
- Rebuild for ghc-libmpd
2012-01-06 05:26:59 +00:00
* Fri Jan 6 2012 Jens Petersen <petersen@redhat.com> - 0.14-2
- update to cabal2spec-0.25.2
2012-01-06 09:24:02 +00:00
- new dependency on libXrandr
2012-01-06 05:26:59 +00:00
2011-12-15 00:36:10 +00:00
* Wed Dec 14 2011 Ben Boeckel <mathstuf@gmail.com> - 0.14-1
- Update to 0.14
* Wed Oct 26 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.13-5.2
- rebuild with new gmp without compat lib
2011-10-12 09:24:27 +00:00
* Wed Oct 12 2011 Peter Schiffer <pschiffe@redhat.com> - 0.13-5.1
- rebuild with new gmp
* Mon Jul 25 2011 Ben Boeckel <mathstuf@gmail.com> - 0.13-5
- Update to cabal2spec-0.24
- xmonadpropwrite.hs is in the tarball again
2011-07-22 04:20:08 +00:00
* Fri Jul 22 2011 Jens Petersen <petersen@redhat.com> - 0.13-4
- reenable hinotify
2011-06-23 02:46:51 +00:00
* Thu Jun 23 2011 Jens Petersen <petersen@redhat.com> - 0.13-3
- update to cabal2spec-0.23.2: BR ghc-Cabal-devel and use ghc_arches
- disable hinotify temporarily since it failed to build on x86_64
2011-06-23 02:46:51 +00:00
* Fri Jun 3 2011 Jens Petersen <petersen@redhat.com> - 0.13-2
- use xft:mono-12 font by default using patch from Pavel Zhukov (#708633)
- add ppc64
2011-03-29 01:08:56 +00:00
* Mon Mar 28 2011 Ben Boeckel <mathstuf@gmail.com> - 0.13-1
- Update to 0.13
* 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
2011-02-17 05:44:53 +00:00
* Thu Feb 17 2011 Ben Boeckel <mathstuf@gmail.com> - 0.12-3
- Rebuild for broken dependencies
* 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
* 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
* 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
* Mon Nov 29 2010 Ben Boeckel <mathstuf@gmail.com> - 0.11.1-6
- Disable libmpd support since 0.5 broke things
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