3 %bcond_without prof # profiling library
6 Summary: A Haskell binding to the mtl graphics library
7 Summary(pl.UTF-8): Wiązanie Haskella do biblioteki graficznej mtl
12 Group: Development/Languages
13 #Source0Download: http://hackage.haskell.org/package/mtl
14 Source0: http://hackage.haskell.org/package/mtl-%{version}/%{pkgname}-%{version}.tar.gz
15 # Source0-md5: 96a2f12b94ea8d7cb0aea999cd2e3802
16 URL: http://hackage.haskell.org/package/mtl
17 BuildRequires: ghc >= 6.12.3
18 BuildRequires: ghc-base < 6
19 BuildRequires: ghc-transformers >= 0.4
21 BuildRequires: ghc-prof >= 6.12.3
22 BuildRequires: ghc-base-prof < 6
23 BuildRequires: ghc-transformers-prof >= 0.4
25 BuildRequires: rpmbuild(macros) >= 1.608
27 Requires: ghc-base < 6
28 Requires: ghc-transformers >= 0.4
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 # debuginfo is not useful for ghc
32 %define _enable_debug_packages 0
34 # don't compress haddock files
35 %define _noautocompressdoc *.haddock
38 Monad classes using functional dependencies, with instances for
39 various monad transformers, inspired by the paper "Functional
40 Programming with Overloading and Higher-Order Polymorphism", by Mark P
41 Jones, in "Advanced School of Functional Programming", 1995
42 (<http://web.cecs.pdx.edu/~mpj/pubs/springschool.html>).
44 %description -l pl.UTF-8
45 Klasy monad wykorzystujące zależności funkcyjne z instancjami dla
46 różnych przekształceń monad, zainspirowane dokumentem "Functional
47 Programming with Overloading and Higher-Order Polymorphism" autorstwa
48 Marka P. Jonesa, opublikowanym w "Advanced School of Functional
50 (<http://web.cecs.pdx.edu/~mpj/pubs/springschool.html>).
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 < 6
58 Requires: ghc-transformers-prof >= 0.4
61 Profiling %{pkgname} library for GHC. Should be installed when
62 GHC's profiling subsystem is needed.
64 %description prof -l pl.UTF-8
65 Biblioteka profilująca %{pkgname} dla GHC. Powinna być zainstalowana
66 kiedy potrzebujemy systemu profilującego z GHC.
69 Summary: HTML documentation for ghc %{pkgname} package
70 Summary(pl.UTF-8): Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}
74 HTML documentation for ghc %{pkgname} package.
76 %description doc -l pl.UTF-8
77 Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}.
80 %setup -q -n %{pkgname}-%{version}
83 runhaskell Setup.hs configure -v2 \
84 %{?with_prof:--enable-library-profiling} \
87 --libexecdir=%{_libexecdir} \
88 --docdir=%{_docdir}/%{name}-%{version}
90 runhaskell Setup.hs build
91 runhaskell Setup.hs haddock --executables
94 rm -rf $RPM_BUILD_ROOT
95 install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
97 runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
99 # work around automatic haddock docs installation
100 rm -rf %{name}-%{version}-doc
101 cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{name}-%{version}-doc
102 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
104 runhaskell Setup.hs register \
105 --gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
108 rm -rf $RPM_BUILD_ROOT
117 %defattr(644,root,root,755)
119 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
120 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
121 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/HSmtl-%{version}.o
122 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSmtl-%{version}.a
123 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control
124 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad
125 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/*.hi
126 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/Cont
127 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/Cont/*.hi
128 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/Error
129 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/Error/*.hi
130 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/RWS
131 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/RWS/*.hi
132 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/Reader
133 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/Reader/*.hi
134 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/State
135 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/State/*.hi
136 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/Writer
137 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/Writer/*.hi
141 %defattr(644,root,root,755)
142 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSmtl-%{version}_p.a
143 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/*.p_hi
144 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/Cont/*.p_hi
145 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/Error/*.p_hi
146 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/RWS/*.p_hi
147 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/Reader/*.p_hi
148 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/State/*.p_hi
149 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/Writer/*.p_hi
153 %defattr(644,root,root,755)
154 %doc %{name}-%{version}-doc/*