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: 29bb471c81368f7c2575ac4c49bd0216
16 URL: http://hackage.haskell.org/package/mmorph
17 BuildRequires: ghc >= 6.12.3
18 BuildRequires: ghc-base >= 4
19 BuildRequires: ghc-transformers >= 0.2.0.0
20 BuildRequires: ghc-transformers-compat >= 0.3
22 BuildRequires: ghc-prof >= 6.12.3
23 BuildRequires: ghc-base-prof >= 4
24 BuildRequires: ghc-transformers-prof >= 0.2.0.0
25 BuildRequires: ghc-transformers-compat-prof >= 0.3
27 BuildRequires: rpmbuild(macros) >= 1.608
28 Requires(post,postun): /usr/bin/ghc-pkg
30 Requires: ghc-base >= 4
31 Requires: ghc-transformers >= 0.2.0.0
32 Requires: ghc-transformers-compat >= 0.3
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 # debuginfo is not useful for ghc
36 %define _enable_debug_packages 0
38 # don't compress haddock files
39 %define _noautocompressdoc *.haddock
42 This library provides monad morphism utilities, most commonly used for
43 manipulating monad transformer stacks.
45 %description -l pl.UTF-8
46 Ta biblioteka dostarcza narzędzia do morfizmu monad, najczęściej
47 używane do operacji na stosach transformatorów monad.
50 Summary: Profiling %{pkgname} library for GHC
51 Summary(pl.UTF-8): Biblioteka profilująca %{pkgname} dla GHC
52 Group: Development/Libraries
53 Requires: %{name} = %{version}-%{release}
54 Requires: ghc-base-prof >= 4
55 Requires: ghc-transformers-prof >= 0.2.0.0
56 Requires: ghc-transformers-compat-prof >= 0.3
59 Profiling %{pkgname} library for GHC. Should be installed when
60 GHC's profiling subsystem is needed.
62 %description prof -l pl.UTF-8
63 Biblioteka profilująca %{pkgname} dla GHC. Powinna być zainstalowana
64 kiedy potrzebujemy systemu profilującego z GHC.
67 Summary: HTML documentation for ghc %{pkgname} package
68 Summary(pl.UTF-8): Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}
72 HTML documentation for ghc %{pkgname} package.
74 %description doc -l pl.UTF-8
75 Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}.
78 %setup -q -n %{pkgname}-%{version}
81 runhaskell Setup.hs configure -v2 \
82 %{?with_prof:--enable-library-profiling} \
85 --libexecdir=%{_libexecdir} \
86 --docdir=%{_docdir}/%{name}-%{version}
88 runhaskell Setup.hs build
89 runhaskell Setup.hs haddock --executables
92 rm -rf $RPM_BUILD_ROOT
93 install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
95 runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
97 # work around automatic haddock docs installation
98 %{__rm} -rf %{name}-%{version}-doc
99 cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
100 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
102 runhaskell Setup.hs register \
103 --gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
106 rm -rf $RPM_BUILD_ROOT
115 %defattr(644,root,root,755)
117 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
118 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
119 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSmmorph-%{version}-*.so
120 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSmmorph-%{version}-*.a
121 %exclude %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSmmorph-%{version}-*_p.a
122 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control
123 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad
124 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/*.hi
125 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/*.dyn_hi
126 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/Trans
127 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/Trans/*.hi
128 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/Trans/*.dyn_hi
132 %defattr(644,root,root,755)
133 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSmmorph-%{version}-*_p.a
134 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/*.p_hi
135 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/Trans/*.p_hi
139 %defattr(644,root,root,755)
140 %doc %{name}-%{version}-doc/*