import 1.2.5.2-31 (pkg review #1069081) to move out of haskell-platform

epel9
Jens Petersen 11 years ago
parent ee8ea098cf
commit 823d05db51

1
.gitignore vendored

@ -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

@ -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 <petersen@redhat.com> - 1.2.5.2-31
- split out of haskell-platform
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

@ -1 +1 @@
b834809dc5c4ac4d1e519d8d6c456600 HUnit-1.2.4.2.tar.gz
1ba79aaeb57361a8593e864694539025 HUnit-1.2.5.2.tar.gz

Loading…
Cancel
Save