]> git.pld-linux.org Git - packages/ghc-xmonad-contrib.git/blame - ghc-xmonad-contrib.spec
up to 0.12
[packages/ghc-xmonad-contrib.git] / ghc-xmonad-contrib.spec
CommitLineData
4f8c9050
JP
1%define pkgname xmonad-contrib
2Summary: Third party extensions for xmonad
3Name: ghc-%{pkgname}
38c4ec5b 4Version: 0.12
5ab4950e 5Release: 1
4f8c9050
JP
6License: BSD
7Group: Development/Languages
ba05fffe 8Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
38c4ec5b 9# Source0-md5: 39345f462f069f2f0e4a488f7e435dbb
4f8c9050
JP
10URL: http://www.xmonad.org
11BuildRequires: ghc >= 6.12.3
38c4ec5b 12BuildRequires: ghc-X11 >= 1.6.1
4f8c9050
JP
13BuildRequires: ghc-extensible-exceptions
14BuildRequires: ghc-mtl
15BuildRequires: ghc-random
16BuildRequires: ghc-utf8-string
4f8c9050 17BuildRequires: rpmbuild(macros) >= 1.608
38c4ec5b 18BuildRequires: xmonad >= 0.12
4f8c9050 19%requires_eq ghc
38c4ec5b 20Requires: ghc-X11 >= 1.6.1
4f8c9050
JP
21Requires: ghc-extensible-exceptions
22Requires: ghc-mtl
23Requires: ghc-random
24Requires: ghc-utf8-string
38c4ec5b 25Requires: xmonad >= 0.12
4f8c9050
JP
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28# debuginfo is not useful for ghc
29%define _enable_debug_packages 0
30
31%description
32Third party extensions for xmonad.
33
34%package doc
35Summary: HTML documentation for %{pkgname}
36Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
37Group: Documentation
38
39%description doc
40HTML documentation for %{pkgname}.
41
42%description doc -l pl.UTF-8
43Dokumentacja w formacie HTML dla %{pkgname}.
44
45%prep
46%setup -q -n %{pkgname}-%{version}
4f8c9050
JP
47
48%build
49runhaskell Setup.lhs configure -v2 \
50 --prefix=%{_prefix} \
51 --libdir=%{_libdir} \
52 --libexecdir=%{_libexecdir} \
53 --docdir=%{_docdir}/%{name}-%{version}
54
55runhaskell Setup.lhs build
56runhaskell Setup.lhs haddock --executables
57
58%install
59rm -rf $RPM_BUILD_ROOT
60install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
61
62runhaskell Setup.lhs copy --destdir=$RPM_BUILD_ROOT
63
64# work around automatic haddock docs installation
65rm -rf %{name}-%{version}-doc
66cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{name}-%{version}-doc
67%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
68
69runhaskell Setup.lhs register \
70 --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
71
72%clean
73rm -rf $RPM_BUILD_ROOT
74
75%post
76%ghc_pkg_recache
77
78%postun
79%ghc_pkg_recache
80
81%files
82%defattr(644,root,root,755)
83%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
84%{_libdir}/%{ghcdir}/%{pkgname}-%{version}
85
86%files doc
87%defattr(644,root,root,755)
88%doc %{name}-%{version}-doc/*
This page took 0.031245 seconds and 4 git commands to generate.