[ghc-mmap] add mmap-no-HUnit.patch to avoid superfluous test dependency on HUnit

Jens Petersen petersen at fedoraproject.org
Fri Sep 17 10:25:19 UTC 2010


commit 604ba2250bf7d3007be8f934bb6fa4abb410ea40
Author: Jens Petersen <petersen at redhat.com>
Date:   Fri Sep 17 20:23:20 2010 +1000

    add mmap-no-HUnit.patch to avoid superfluous test dependency on HUnit

 ghc-mmap.spec       |    4 +++-
 mmap-no-HUnit.patch |   17 +++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/ghc-mmap.spec b/ghc-mmap.spec
index fd965d2..08dd05d 100644
--- a/ghc-mmap.spec
+++ b/ghc-mmap.spec
@@ -22,6 +22,7 @@ Group:          System Environment/Libraries
 License:        BSD
 URL:            http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{pkg_name}
 Source0:        http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
+Patch1:         mmap-no-HUnit.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 # fedora ghc archs:
 ExclusiveArch:  %{ix86} x86_64 ppc alpha
@@ -40,7 +41,7 @@ This package provides the shared library.
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
-
+%patch1 -p1 -b .orig
 
 %build
 %ghc_lib_build
@@ -61,6 +62,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Fri Sep 17 2010 Jens Petersen <petersen at redhat.com> - 0.5.6-1
 - update to 0.5.6 for darcs-2.5
+- patch out superfluous HUnit test dependency
 
 * Sat Sep  4 2010 Jens Petersen <petersen at redhat.com> - 0.4.1-5
 - add hscolour and doc obsolete (cabal2spec-0.22.2)
diff --git a/mmap-no-HUnit.patch b/mmap-no-HUnit.patch
new file mode 100644
index 0000000..69f4edb
--- /dev/null
+++ b/mmap-no-HUnit.patch
@@ -0,0 +1,17 @@
+diff -u mmap-0.5.6/mmap.cabal\~ mmap-0.5.6/mmap.cabal
+--- mmap-0.5.6/mmap.cabal~	2010-04-16 15:37:00.000000000 +1000
++++ mmap-0.5.6/mmap.cabal	2010-09-17 20:05:01.000000000 +1000
+@@ -36,10 +36,9 @@
+ Executable mmaptest
+   Main-is: tests/mmaptest.hs
+   if flag(mmaptest)
+-      Buildable: True
++      Build-depends: base<5, bytestring, HUnit, directory
+   else
+       Buildable: False
+-  Build-depends: base<5, bytestring, HUnit, directory
+   Extensions: ForeignFunctionInterface, ScopedTypeVariables, CPP
+   Hs-source-dirs: .
+   CC-options: -Wall -D_DEBUG
+
+Diff finished.  Fri Sep 17 20:05:16 2010


More information about the scm-commits mailing list