3 %bcond_without prof # profiling library
6 Summary: Monad morphisms
7 Summary(pl.UTF-8): Morfizm monad
12 Group: Development/Languages
13 #Source0Download: http://hackage.haskell.org/package/mmorph
14 Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
15 # Source0-md5: 1fabc154d44b1af97fb03b1b7dac88ae
16 URL: http://hackage.haskell.org/package/mmorph
17 BuildRequires: ghc >= 6.12.3
18 BuildRequires: ghc-base >= 4
19 BuildRequires: ghc-base < 5
20 BuildRequires: ghc-transformers >= 0.2.0.0
21 BuildRequires: ghc-transformers < 0.4
23 BuildRequires: ghc-prof >= 6.12.3
24 BuildRequires: ghc-base-prof >= 4
25 BuildRequires: ghc-base-prof < 5
26 BuildRequires: ghc-transformers-prof >= 0.2.0.0
27 BuildRequires: ghc-transformers-prof < 0.4
29 BuildRequires: rpmbuild(macros) >= 1.608
30 Requires(post,postun): /usr/bin/ghc-pkg
32 Requires: ghc-base >= 4
33 Requires: ghc-base < 5
34 Requires: ghc-transformers >= 0.2.0.0
35 Requires: ghc-transformers < 0.4
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 # debuginfo is not useful for ghc
39 %define _enable_debug_packages 0
41 # don't compress haddock files
42 %define _noautocompressdoc *.haddock
45 This library provides monad morphism utilities, most commonly used for
46 manipulating monad transformer stacks.
48 %description -l pl.UTF-8
49 Ta biblioteka dostarcza narzędzia do morfizmu monad, najczęściej
50 używane do operacji na stosach transformatorów monad.
53 Summary: Profiling %{pkgname} library for GHC
54 Summary(pl.UTF-8): Biblioteka profilująca %{pkgname} dla GHC
55 Group: Development/Libraries
56 Requires: %{name} = %{version}-%{release}
57 Requires: ghc-base-prof >= 4
58 Requires: ghc-base-prof < 5
59 Requires: ghc-transformers-prof >= 0.2.0.0
60 Requires: ghc-transformers-prof < 0.4
63 Profiling %{pkgname} library for GHC. Should be installed when
64 GHC's profiling subsystem is needed.
66 %description prof -l pl.UTF-8
67 Biblioteka profilująca %{pkgname} dla GHC. Powinna być zainstalowana
68 kiedy potrzebujemy systemu profilującego z GHC.
71 Summary: HTML documentation for ghc %{pkgname} package
72 Summary(pl.UTF-8): Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}
76 HTML documentation for ghc %{pkgname} package.
78 %description doc -l pl.UTF-8
79 Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}.
82 %setup -q -n %{pkgname}-%{version}
85 runhaskell Setup.hs configure -v2 \
86 %{?with_prof:--enable-library-profiling} \
89 --libexecdir=%{_libexecdir} \
90 --docdir=%{_docdir}/%{name}-%{version}
92 runhaskell Setup.hs build
93 runhaskell Setup.hs haddock --executables
96 rm -rf $RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
99 runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
101 # work around automatic haddock docs installation
102 %{__rm} -rf %{name}-%{version}-doc
103 cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
104 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
106 runhaskell Setup.hs register \
107 --gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
110 rm -rf $RPM_BUILD_ROOT
119 %defattr(644,root,root,755)
121 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
122 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
123 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/HSmmorph-%{version}.o
124 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSmmorph-%{version}.a
125 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control
126 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad
127 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/Morph.hi
131 %defattr(644,root,root,755)
132 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSmmorph-%{version}_p.a
133 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/Morph.p_hi
137 %defattr(644,root,root,755)
138 %doc %{name}-%{version}-doc/*