From 5f19e51ca3d06d80e8d07a7f8cdb274529d1b376 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Mon, 11 Jan 2010 15:41:30 +0000 Subject: [PATCH] - drop ghc-6.12.1-no-filter-libs.patch - filter ghc lib files from ghc-prof --- ghc-6.12.1-no-filter-libs.patch | 12 ------------ ghc.spec | 17 +++-------------- 2 files changed, 3 insertions(+), 26 deletions(-) delete mode 100644 ghc-6.12.1-no-filter-libs.patch diff --git a/ghc-6.12.1-no-filter-libs.patch b/ghc-6.12.1-no-filter-libs.patch deleted file mode 100644 index 8860483..0000000 --- a/ghc-6.12.1-no-filter-libs.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -u ghc-6.12.1/ghc.mk\~ ghc-6.12.1/ghc.mk ---- ghc-6.12.1/ghc.mk~ 2009-12-11 04:11:33.000000000 +1000 -+++ ghc-6.12.1/ghc.mk 2010-01-09 23:17:20.000000000 +1000 -@@ -846,7 +846,7 @@ - INSTALLED_GHC_PKG_REAL=$(DESTDIR)$(bindir)/ghc-pkg.exe - endif - --INSTALLED_PACKAGES = $(filter-out haskeline mtl terminfo,$(PACKAGES)) -+INSTALLED_PACKAGES = $(filter-out mtl,$(PACKAGES)) - HIDDEN_PACKAGES = ghc-binary - - define set_INSTALL_DISTDIR diff --git a/ghc.spec b/ghc.spec index 3f235ec..3950a49 100644 --- a/ghc.spec +++ b/ghc.spec @@ -58,7 +58,6 @@ BuildRequires: libxslt, docbook-style-xsl BuildRequires: hscolour %endif Patch1: ghc-6.12.1-gen_contents_index-haddock-path.patch -Patch2: ghc-6.12.1-no-filter-libs.patch %description GHC is a state-of-the-art programming suite for Haskell, a purely @@ -119,8 +118,6 @@ They should be installed when GHC's profiling subsystem is needed. %setup -q -n %{name}-%{version} %{?with_extralibs:-b1} # absolute haddock path (was for html/libraries -> libraries) %patch1 -p1 -b .orig -# install more libs -#%%patch2 -p1 -b .orig # make sure we don't use these rm -r ghc-tarballs/{mingw,perl} @@ -178,20 +175,11 @@ cat rpm-lib-dir.files rpm-lib.files > ghc-libs.files cat rpm-dev-dir.files rpm-base.files > ghc.files # subpackage ghc libraries -sed -i -e "/ghc-%{version}\/ghc-%{version}/d" ghc.files ghc-libs.files +sed -i -e "/ghc-%{version}\/ghc-%{version}/d" ghc.files ghc-libs.files ghc-prof.files sed -i -e "/ghc-%{version}-.*.conf\$/d" ghc.files sed -i -e "/ghc-%{version}\$/d" ghc-doc.files %ghc_gen_filelists ghc -#for pkg in haskeline-0.6.2.1 terminfo-0.3.1.1; do -# sed -i -e "/ghc-%{version}\/$pkg/d" ghc.files ghc-libs.files -# sed -i -e "/$pkg-.*.conf\$/d" ghc.files -# sed -i -e "/$pkg\$/d" ghc-doc.files -# name=$(echo $pkg | sed -e "s/\(.*\)-.*/\1/") -# version=$(echo $pkg | sed -e "s/.*-\(.*\)/\1/") -# %%ghc_gen_filelists ${name} ${version} -#done - # these are handled as alternatives for i in hsc2hs runhaskell; do if [ -x ${RPM_BUILD_ROOT}%{_bindir}/$i-ghc ]; then @@ -296,7 +284,8 @@ ghc-pkg recache %changelog * Mon Jan 11 2010 Jens Petersen - 6.12.1-5 -- drop extras packages again (haskeline, mtl, and terminfo) +- drop ghc-6.12.1-no-filter-libs.patch and extras packages again +- filter ghc-ghc-prof files from ghc-prof - ghc-mtl package was added to fedora * Mon Jan 11 2010 Jens Petersen - 6.12.1-4