update to new simplified Haskell Packaging Guidelines

This commit is contained in:
Jens Petersen 2013-06-11 19:53:43 +09:00
parent 59dbc510c2
commit af2f120cc4
1 changed files with 36 additions and 18 deletions

View File

@ -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 <petersen@redhat.com> - 0.1.0-2
- update to new simplified Haskell Packaging Guidelines
* Sat Apr 20 2013 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> - 0.1.0-1
- Updated to 0.1.0