1 %define pkgname xmonad-contrib
2 Summary: Third party extensions for xmonad
7 Group: Development/Languages
8 Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
9 # Source0-md5: a41c886280a5414105c1cf241f0fd2f4
10 Patch0: applicative.patch
11 URL: http://www.xmonad.org
12 BuildRequires: ghc >= 6.12.3
13 BuildRequires: ghc-X11 >= 1.6
14 BuildRequires: ghc-extensible-exceptions
15 BuildRequires: ghc-mtl
16 BuildRequires: ghc-random
17 BuildRequires: ghc-utf8-string
18 BuildRequires: rpmbuild(macros) >= 1.608
19 BuildRequires: xmonad >= 0.11
21 Requires: ghc-X11 >= 1.6
22 Requires: ghc-extensible-exceptions
25 Requires: ghc-utf8-string
26 Requires: xmonad >= 0.11
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 # debuginfo is not useful for ghc
30 %define _enable_debug_packages 0
33 Third party extensions for xmonad.
36 Summary: HTML documentation for %{pkgname}
37 Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
41 HTML documentation for %{pkgname}.
43 %description doc -l pl.UTF-8
44 Dokumentacja w formacie HTML dla %{pkgname}.
47 %setup -q -n %{pkgname}-%{version}
51 runhaskell Setup.lhs configure -v2 \
54 --libexecdir=%{_libexecdir} \
55 --docdir=%{_docdir}/%{name}-%{version}
57 runhaskell Setup.lhs build
58 runhaskell Setup.lhs haddock --executables
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
64 runhaskell Setup.lhs copy --destdir=$RPM_BUILD_ROOT
66 # work around automatic haddock docs installation
67 rm -rf %{name}-%{version}-doc
68 cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{name}-%{version}-doc
69 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
71 runhaskell Setup.lhs register \
72 --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
75 rm -rf $RPM_BUILD_ROOT
84 %defattr(644,root,root,755)
85 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
86 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
89 %defattr(644,root,root,755)
90 %doc %{name}-%{version}-doc/*