# For Haskell Packaging Guidelines see: # - https://fedoraproject.org/wiki/Packaging:Haskell # - https://fedoraproject.org/wiki/PackagingDrafts/Haskell # gtk2hs in f13 is not dynamically linked %global ghc_without_dynamic 1 Name: bluetile Version: 0.5.3 Release: 7%{?dist} Summary: Tiling window manager for GNOME Group: User Interface/X License: BSD URL: http://www.bluetile.org/ Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz Source1: README.fedora Source2: gnome-bluetile-session Patch1: bluetile-0.5.3-WMName.patch # fedora ghc archs: ExclusiveArch: %{ix86} x86_64 ppc alpha sparcv9 BuildRequires: ghc-devel # macros for building haskell packages BuildRequires: ghc-rpm-macros >= 0.7.0 BuildRequires: ghc-xmonad-contrib-devel, ghc-gtk-devel, ghc-glade-devel, ghc-ConfigFile-devel, ghc-regex-compat-devel BuildRequires: desktop-file-utils %description Bluetile is a tiling window manager for Linux, designed to integrate with the GNOME desktop environment. It provides both a traditional, stacking layout mode as well as tiling layouts where windows are arranged to use the entire screen without overlapping. Bluetile tries to make the tiling paradigm easily accessible to users coming from traditional window managers by drawing on known conventions and providing both mouse and keyboard access for all features. %prep %setup -q %patch1 -p1 -b .orig cp -p %{SOURCE1} . %build %ghc_bin_build %install %ghc_bin_install install -p -m 0644 -D misc/%{name}-session.desktop %{buildroot}%{_datadir}/xsessions/%{name}.desktop desktop-file-install --dir=%{buildroot}%{_datadir}/applications misc/%{name}.desktop install -p -m 0644 -D misc/gnome-bluetile-session.desktop %{buildroot}%{_datadir}/xsessions/ # replace gnome-bluetile-session with script rm %{buildroot}%{_bindir}/gnome-%{name}-session install -p -m 0755 %{SOURCE2} %{buildroot}%{_bindir}/gnome-%{name}-session mkdir -p %{buildroot}%{_mandir}/man1 install -p -m 0644 man/bluetile.1 %{buildroot}%{_mandir}/man1 %files %defattr(-,root,root,-) %doc LICENSE README.fedora %attr(755,root,root) %{_bindir}/%{name} %attr(755,root,root) %{_bindir}/gnome-%{name}-session %{_libexecdir}/%{name}* %{_datadir}/applications/%{name}.desktop %{_datadir}/xsessions/*%{name}*.desktop %{_datadir}/%{name}-%{version} %{_mandir}/man1/%{name}.1* %changelog * Mon May 23 2011 Jens Petersen <petersen@redhat.com> - 0.5.3-7.fc14 - use bluetile for WMName - make gnome-bluetile-session script hack just run bluetile and gnome-session * Fri May 13 2011 Jens Petersen <petersen@redhat.com> - 0.5.3-6.fc14 - replace gnome-bluetile-session with a script that temporarily overrides the default gnome-session windowmanager - patch the WMName to be Bluetile * Wed Apr 20 2011 Jens Petersen <petersen@redhat.com> - 0.5.3-5 - gnome-session uses gconf to find window-manager: - remove gnome-bluetile-session, since WINDOW_MANAGER doesn't work by default - add a readme file explaining the gconf and other ways of setting up * Mon Apr 4 2011 Jens Petersen <petersen@redhat.com> - 0.5.3-4 - use upstream's desktop files * Fri Apr 1 2011 Jens Petersen <petersen@redhat.com> - 0.5.3-3 - use desktop-file-install to install bluetile.desktop (#426753) - fix the desktop files for desktop-install-validate - add manpages (#426753) * Wed Mar 16 2011 Jens Petersen <petersen@redhat.com> - 0.5.3-2 - update to cabal2spec-0.22.5 - add ConfigFile and regex-compat deps * Mon Sep 13 2010 Jens Petersen <petersen@redhat.com> - 0.5.3-1 - BSD license - homepage url - BR xmonad-contrib, gtk, glade haskell libs - add .desktop files like those in xmonad * Mon Sep 13 2010 Fedora Haskell SIG <haskell-devel@lists.fedoraproject.org> - 0.5.3-0 - initial packaging for Fedora automatically generated by cabal2spec-0.22.2