From 45ddc7701bbafb8a3e32369fe4a2e23eefe50ed3 Mon Sep 17 00:00:00 2001 From: Lakshmi Narasimhan Date: Sat, 21 May 2011 14:20:20 +0530 Subject: [PATCH] Initial commit for ghc-dlist modified: .gitignore new file: ghc-dlist.spec modified: sources --- .gitignore | 1 + ghc-dlist.spec | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 59 insertions(+) create mode 100644 ghc-dlist.spec diff --git a/.gitignore b/.gitignore index e69de29..1224653 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/dlist-0.5.tar.gz diff --git a/ghc-dlist.spec b/ghc-dlist.spec new file mode 100644 index 0000000..95e69ff --- /dev/null +++ b/ghc-dlist.spec @@ -0,0 +1,57 @@ +# For Haskell Packaging Guidelines see: +# - https://fedoraproject.org/wiki/Packaging:Haskell +# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell +%global pkg_name dlist + +# common part of summary for all the subpackages +%global common_summary Haskell differences lists + +# main description used for all the subpackages +%global common_description Differences lists: a list-like type supporting O(1) append.\ +This is particularly useful for efficient logging and pretty\ +printing, (e.g. with the Writer monad), where list append\ +quickly becomes too expensive. + +Name: ghc-%{pkg_name} +Version: 0.5 +Release: 2%{?dist} +Summary: %{common_summary} + +Group: System Environment/Libraries +License: BSD +URL: http://hackage.haskell.org/package/%{pkg_name} +Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz +# fedora ghc archs: +ExclusiveArch: %{ix86} x86_64 ppc alpha sparcv9 ppc64 +BuildRequires: ghc-prof +BuildRequires: ghc-rpm-macros +BuildRequires: hscolour + +%description +%{common_description} + + +%prep +%setup -q -n %{pkg_name}-%{version} + + +%build +%ghc_lib_build + + +%install +%ghc_lib_install + +# define the devel and prof subpkgs, devel post[un] scripts, and filelists: +%ghc_lib_package + + +%changelog +* Sun Apr 3 2011 Lakshmi Narasimhan T V - 0.5-2 +- Update to cabal2spec 0.22.5 + +* Sun Dec 19 2010 Lakshmi Narasimhan T V - 0.5-1 +- Modified summary and description. License is BSD + +* Sun Dec 19 2010 Fedora Haskell SIG - 0.5-0 +- initial packaging for Fedora automatically generated by cabal2spec-0.22.3 \ No newline at end of file diff --git a/sources b/sources index e69de29..be65db4 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +54f6c18ff689b7ef54e3229dc4a94107 dlist-0.5.tar.gz