From f12af5fa4862572bb85b54907967e451e7765cc6 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 28 Oct 2011 10:59:41 +0900 Subject: [PATCH] import (#727410) --- .gitignore | 1 + ghc-random.spec | 56 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 58 insertions(+) create mode 100644 ghc-random.spec diff --git a/.gitignore b/.gitignore index e69de29..8291550 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/random-1.0.0.3.tar.gz diff --git a/ghc-random.spec b/ghc-random.spec new file mode 100644 index 0000000..1d23e8a --- /dev/null +++ b/ghc-random.spec @@ -0,0 +1,56 @@ +# For Haskell Packaging Guidelines see: +# - https://fedoraproject.org/wiki/Packaging:Haskell +# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell + +%global pkg_name random + +# common part of summary for all the subpackages +%global common_summary Haskell random number library + +# main description used for all the subpackages +%global common_description A random number library for Haskell. + +Name: ghc-%{pkg_name} +Version: 1.0.0.3 +Release: 27%{?dist} +Summary: %{common_summary} + +Group: System Environment/Libraries +License: BSD and HaskellReport +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} +BuildRequires: ghc-Cabal-devel +# macros for building haskell packages +BuildRequires: ghc-rpm-macros +BuildRequires: hscolour +BuildRequires: ghc-time-devel + +%description +%{common_description} + + +%prep +%setup -q -n %{pkg_name}-%{version} + + +%build +%ghc_lib_build + + +%install +%ghc_lib_install + + +# define the shared, devel and prof subpkgs, devel scripts, +# and filelists: ghc-random.files, ghc-random-devel.files +%ghc_lib_package + + +%changelog +* Tue Aug 2 2011 Jens Petersen - 1.0.0.3-27 +- new package previously part of ghc +- license is BSD and Haskell Report + +* Tue Aug 2 2011 Fedora Haskell SIG - 1.0.0.3-0 +- initial packaging for Fedora automatically generated by cabal2spec-0.23.2 diff --git a/sources b/sources index e69de29..65ab690 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d6c1343438092e74fb07d439c64395c4 random-1.0.0.3.tar.gz