+++ /dev/null
-diff --git a/XMonad/Operations.hs b/XMonad/Operations.hs
-index 6bca311..bc69962 100644
---- a/XMonad/Operations.hs
-+++ b/XMonad/Operations.hs
-@@ -450,7 +450,7 @@ floatLocation :: Window -> X (ScreenId, W.RationalRect)
- floatLocation w = withDisplay $ \d -> do
- ws <- gets windowset
- wa <- io $ getWindowAttributes d w
-- bw <- fi <$> asks (borderWidth . config)
-+ let bw = (fromIntegral . wa_border_width) wa
- sc <- fromMaybe (W.current ws) <$> pointScreen (fi $ wa_x wa) (fi $ wa_y wa)
-
- let sr = screenRect . W.screenDetail $ sc
+#
+# Conditional build:
+%bcond_with doc # build with docs (broken)
+#
Summary: Tiling window manager
Name: xmonad
-Version: 0.11.1
+Version: 0.12
Release: 1
License: BSD
Group: X11/Window Managers
Source0: http://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 20792f4e428db24e6c0dbecbd77f69e0
+# Source0-md5: 6fd5f268d38e940e090af0726795f513
Source1: %{name}.desktop
-Patch0: %{name}-border.patch
URL: http://www.xmonad.org
BuildRequires: ghc >= 6.12.3
BuildRequires: ghc-X11 >= 1.6
BuildRequires: ghc-extensible-exceptions
BuildRequires: ghc-mtl
-BuildRequires: ghc-utf8-string
+BuildRequires: ghc-utf8-string >= 0.3
BuildRequires: rpmbuild(macros) >= 1.608
%requires_eq ghc
%requires_releq ghc-extensible-exceptions
%prep
%setup -q
-%patch0 -p1
%build
runhaskell Setup.lhs configure -v2 \
--docdir=%{_docdir}/%{name}-%{version}
runhaskell Setup.lhs build
+%if %{with doc}
runhaskell Setup.lhs haddock --executables
+%endif
%install
rm -rf $RPM_BUILD_ROOT
# work around automatic haddock docs installation
rm -rf %{name}-%{version}-doc
+%if %{with doc}
cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{name}-%{version}-doc
+%endif
%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/man
%{_mandir}/man1/xmonad.1*
%{_xdeskdir}/%{name}.desktop
+%if %{with doc}
%files doc
%defattr(644,root,root,755)
%doc %{name}-%{version}-doc/*
+%endif