# Source0-md5: -
URL: http://hackage.haskell.org/package/PACKAGE_NAME/
BuildRequires: ghc >= 6.12.3
+#BuildRequires: ghc-prof
#BuildRequires: ghc-OTHERMODULE
BuildRequires: rpmbuild(macros) >= 1.608
%requires_releq ghc
%setup -q -n %{pkgname}-%{version}
%build
-runhaskell Setup.hs configure -v2 --enable-library-profiling \
+runhaskell Setup.lhs configure -v2 --enable-library-profiling \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
--docdir=%{_docdir}/%{name}-%{version}
-runhaskell Setup.hs build
-runhaskell Setup.hs haddock --executables
+runhaskell Setup.lhs build
+runhaskell Setup.lhs haddock --executables
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
-runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
+runhaskell Setup.lhs copy --destdir=$RPM_BUILD_ROOT
# work around automatic haddock docs installation
rm -rf %{name}-%{version}-doc
cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
-runhaskell Setup.hs register \
+runhaskell Setup.lhs register \
--gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
%clean