[projects/template-specs] - add ghc-prof to BRs - change Setup ext to .lhs

baggins baggins at pld-linux.org
Fri Oct 19 14:08:16 CEST 2012


commit e6e67c39376fe80e06c79d02b5fde7d299cef7ee
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Oct 19 14:07:50 2012 +0200

    - add ghc-prof to BRs
    - change Setup ext to .lhs

 ghc-package.spec | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/ghc-package.spec b/ghc-package.spec
index 0f90626..eb2a070 100644
--- a/ghc-package.spec
+++ b/ghc-package.spec
@@ -9,6 +9,7 @@ Source0:	http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkg
 # 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
@@ -42,26 +43,26 @@ kiedy potrzebujemy systemu profilującego z 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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/e6e67c39376fe80e06c79d02b5fde7d299cef7ee



More information about the pld-cvs-commit mailing list