From af2f120cc4cd84fb7579fb5d1bc0d0e3cccbf30e Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 11 Jun 2013 19:53:43 +0900 Subject: [PATCH] update to new simplified Haskell Packaging Guidelines --- ghc-data-inttrie.spec | 54 ++++++++++++++++++++++++++++--------------- 1 file changed, 36 insertions(+), 18 deletions(-) diff --git a/ghc-data-inttrie.spec b/ghc-data-inttrie.spec index d6d7088..f1a488f 100644 --- a/ghc-data-inttrie.spec +++ b/ghc-data-inttrie.spec @@ -1,20 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name data-inttrie -%global common_summary A simple lazy, infinite trie from integers - -%global common_description Provides a minimal infinite, lazy trie for \ -integral types. It intentionally leaves out ideas such as delete and \ -emptiness so that it can be used lazily, eg. as the target of an infinite \ -foldr. Essentially its purpose is to be an efficient implementation of \ -a function from integral type, given point-at-a-time modifications. - Name: ghc-%{pkg_name} Version: 0.1.0 -Release: 1%{?dist} -Summary: %{common_summary} +Release: 2%{?dist} +Summary: A lazy infinite trie of integers License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -22,30 +13,57 @@ Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{versio BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros -# Begin cabal-rpm deps: -# End cabal-rpm deps %description -%{common_description} +Provides a minimal infinite, lazy trie for integral types. It intentionally +leaves out ideas such as delete and emptiness so that it can be used lazily, +eg as the target of an infinite foldr. Essentially its purpose is to be +an efficient implementation of a function from integral type, given +point-at-a-time modifications. + + +%package devel +Summary: Haskell %{pkg_name} library development files +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} +Requires: %{name} = %{version}-%{release} + +%description devel +This package provides the Haskell %{pkg_name} library development files. + %prep %setup -q -n %{pkg_name}-%{version} + %build %ghc_lib_build + %install %ghc_lib_install -%ghc_devel_package -%ghc_devel_description +%post devel +%ghc_pkg_recache -%ghc_devel_post_postun -%ghc_files +%postun devel +%ghc_pkg_recache + + +# no license file +%files -f %{name}.files + + +%files devel -f %{name}-devel.files + %changelog +* Tue Jun 11 2013 Jens Petersen - 0.1.0-2 +- update to new simplified Haskell Packaging Guidelines + * Sat Apr 20 2013 Shakthi Kannan - 0.1.0-1 - Updated to 0.1.0