1 %define pkgname monad-control
2 Summary: Generic control operations
7 Group: Development/Languages
8 Source0: http://hackage.haskell.org/packages/archive/monad-control/%{version}/%{pkgname}-%{version}.tar.gz
9 # Source0-md5: 91f6c3e726b50dc0e625ad17ee5812a9
10 URL: http://hackage.haskell.org/package/monad-control/
11 BuildRequires: ghc >= 6.12.3
12 BuildRequires: ghc-transformers-base
13 BuildRequires: rpmbuild(macros) >= 1.608
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 # debuginfo is not useful for ghc
18 %define _enable_debug_packages 0
21 This package defines the type class MonadBaseControl, a subset of
22 MonadBase into which generic control operations such as catch can be
23 lifted from IO or any other base monad. Instances are based on monad
24 transformers in MonadTransControl, which includes all standard monad
25 transformers in the transformers library except ContT.
28 Summary: HTML documentation for %{pkgname}
29 Summary(pl.UTF-8): Dokumentacja w formacie HTML dla pakietu %{pkgname}
33 HTML documentation for %{pkgname}.
35 %description doc -l pl.UTF-8
36 Dokumentacja w formacie HTML dla pakietu %{pkgname}.
39 %setup -q -n %{pkgname}-%{version}
42 runhaskell Setup.hs configure -v2 \
45 --libexecdir=%{_libexecdir} \
46 --docdir=%{_docdir}/%{name}-%{version}
48 runhaskell Setup.hs build
49 runhaskell Setup.hs haddock --executables
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
55 runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
57 # work around automatic haddock docs installation
58 rm -rf %{name}-%{version}-doc
59 cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{name}-%{version}-doc
61 runhaskell Setup.hs register \
62 --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
64 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
67 rm -rf $RPM_BUILD_ROOT
76 %defattr(644,root,root,755)
78 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
79 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
82 %defattr(644,root,root,755)
83 %doc %{name}-%{version}-doc/*