From 823d05db51986fdec718360a878a0e7f31f8d42d Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 13 Mar 2014 16:52:11 +0900 Subject: [PATCH] import 1.2.5.2-31 (pkg review #1069081) to move out of haskell-platform --- .gitignore | 1 + ghc-HUnit.spec | 57 +++++++++++++++++++++++++++++++------------------- sources | 2 +- 3 files changed, 38 insertions(+), 22 deletions(-) diff --git a/.gitignore b/.gitignore index 986b923..3f907de 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ HUnit-1.2.2.1.tar.gz /HUnit-1.2.2.3.tar.gz /HUnit-1.2.4.2.tar.gz +/HUnit-1.2.5.2.tar.gz diff --git a/ghc-HUnit.spec b/ghc-HUnit.spec index a8cbb15..e2bd5eb 100644 --- a/ghc-HUnit.spec +++ b/ghc-HUnit.spec @@ -1,28 +1,37 @@ -%global pkg_name HUnit - -%global common_summary Haskell %{pkg_name} library +# https://fedoraproject.org/wiki/Packaging:Haskell -%global common_description HUnit is a unit testing framework for Haskell, inspired by the JUnit tool\ -for Java. +%global pkg_name HUnit Name: ghc-%{pkg_name} # part of haskell-platform -Version: 1.2.4.2 -Release: 4%{?dist} -Summary: %{common_summary} +Version: 1.2.5.2 +Release: 31%{?dist} +Summary: Unit testing framework for Haskell -Group: System Environment/Libraries License: BSD -# BEGIN cabal2spec URL: http://hackage.haskell.org/package/%{pkg_name} -Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz -ExclusiveArch: %{ghc_arches} +Source0: http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz + BuildRequires: ghc-Cabal-devel -BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour} -# END cabal2spec +BuildRequires: ghc-rpm-macros +# Begin cabal-rpm deps: +BuildRequires: ghc-deepseq-devel +# End cabal-rpm deps %description -%{common_description} +HUnit is a unit testing framework for Haskell, inspired by JUnit for Java. + + +%package devel +Summary: Haskell %{pkg_name} library development files +Provides: %{name}-static = %{version}-%{release} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package provides the Haskell %{pkg_name} library development files. %prep @@ -41,23 +50,29 @@ BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour} %ghc_lib_install # remove unwanted files -rm %{buildroot}%{_bindir}/*-tests -rm -r %{buildroot}%{_datadir}/%{pkg_name}-%{version} +rm %{buildroot}%{_datadir}/%{pkg_name}-%{version}/{README,doc/Guide.html,examples/Example.hs,prologue.txt} -%ghc_devel_package +%post devel +%ghc_pkg_recache -%ghc_devel_description +%postun devel +%ghc_pkg_recache -%ghc_devel_post_postun +%files -f %{name}.files +%doc LICENSE -%ghc_files LICENSE + +%files devel -f %{name}-devel.files %doc README doc/Guide.html examples/Example.hs %changelog +* Mon Feb 24 2014 Jens Petersen - 1.2.5.2-31 +- split out of haskell-platform + * Fri Jan 13 2012 Fedora Release Engineering - 1.2.4.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild diff --git a/sources b/sources index f750761..a62104a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b834809dc5c4ac4d1e519d8d6c456600 HUnit-1.2.4.2.tar.gz +1ba79aaeb57361a8593e864694539025 HUnit-1.2.5.2.tar.gz