From 604ba2250bf7d3007be8f934bb6fa4abb410ea40 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sep 17 2010 10:23:20 +0000 Subject: add mmap-no-HUnit.patch to avoid superfluous test dependency on HUnit --- 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 - 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 - 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