From 4a80321608430722bb1d354154f2e4abd8ee57c2 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Jun 11 2013 11:06:00 +0000 Subject: update to new simplified Haskell Packaging Guidelines --- diff --git a/ghc-data-memocombinators.spec b/ghc-data-memocombinators.spec index 5695e12..52b5862 100644 --- a/ghc-data-memocombinators.spec +++ b/ghc-data-memocombinators.spec @@ -1,20 +1,16 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name data-memocombinators -%global common_summary Combinators for building memo tables - -%global common_description Combinators for building memo tables. - Name: ghc-%{pkg_name} Version: 0.4.4 -Release: 4%{?dist} -Summary: %{common_summary} +Release: 5%{?dist} +Summary: Combinators for building memo tables 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 +# BSD license text required Source1: LICENSE BuildRequires: ghc-Cabal-devel @@ -25,13 +21,25 @@ BuildRequires: ghc-data-inttrie-devel # End cabal-rpm deps %description -%{common_description} +Combinators for building memo tables. + + +%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} %{__install} -pm 644 %{SOURCE1} . + %build %ghc_lib_build @@ -40,18 +48,25 @@ BuildRequires: ghc-data-inttrie-devel %ghc_lib_install -%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 %changelog +* Tue Jun 11 2013 Jens Petersen - 0.4.4-5 +- update to new simplified Haskell Packaging Guidelines + * Thu May 2 2013 Shakthi Kannan - 0.4.4-4 - Rebuild