From 28ead10bfc725612314fd3262590dac7f160a58c Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 26 Jun 2010 08:53:39 +0000 Subject: [PATCH] new ghc_bin_build, ghc_bin_install, ghc_lib_build, ghc_lib_install --- ghc-rpm-macros.ghc | 23 +++++++++++++++++++++++ ghc-rpm-macros.spec | 5 ++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/ghc-rpm-macros.ghc b/ghc-rpm-macros.ghc index 5128e73..60269c5 100644 --- a/ghc-rpm-macros.ghc +++ b/ghc-rpm-macros.ghc @@ -205,3 +205,26 @@ This package contains the profiling library.\ %if 0%{!?__debug_package:1}\ find $RPM_BUILD_ROOT -type f -exec sh -c "file {} | grep -q 'dynamically linked'" \\; -print | xargs strip\ %endif + +# ghc_bin_build +%ghc_bin_build\ +%cabal_configure --ghc\ +%cabal build + +# ghc_lib_build +%ghc_lib_build\ +%cabal_configure --ghc -p\ +%cabal build\ +%cabal haddock + +# ghc_bin_install +%ghc_bin_install\ +%cabal_install\ +%ghc_strip_dynlinked + +# ghc_lib_install +%ghc_lib_install\ +%cabal_install\ +%cabal_pkg_conf\ +%ghc_gen_filelists\ +%ghc_strip_dynlinked diff --git a/ghc-rpm-macros.spec b/ghc-rpm-macros.spec index d741af6..adf10a5 100644 --- a/ghc-rpm-macros.spec +++ b/ghc-rpm-macros.spec @@ -1,5 +1,5 @@ Name: ghc-rpm-macros -Version: 0.6.2 +Version: 0.7.0 Release: 1%{?dist} Summary: Macros for building packages for GHC @@ -48,6 +48,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sat Jun 26 2010 Jens Petersen - 0.7.0-1 +- new ghc_bin_build, ghc_bin_install, ghc_lib_build, ghc_lib_install + * Thu Jun 24 2010 Jens Petersen - 0.6.2-1 - a couple more fallback summary tweaks