From a8f68c77eea85e131662d58f51f7677ee962a106 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 4 Jun 2013 16:23:03 +0900 Subject: [PATCH] update to 1.0.4 and simplified Haskell Packaging Guidelines --- .gitignore | 1 + ghc-shakespeare.spec | 53 +++++++++++++++++++++++++++++--------------- sources | 2 +- 3 files changed, 37 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index 4b44f91..aee1702 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /shakespeare-1.0.0.2.tar.gz /shakespeare-1.0.1.4.tar.gz /shakespeare-1.0.3.1.tar.gz +/shakespeare-1.0.4.tar.gz diff --git a/ghc-shakespeare.spec b/ghc-shakespeare.spec index 35f61f0..ead6526 100644 --- a/ghc-shakespeare.spec +++ b/ghc-shakespeare.spec @@ -1,21 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name shakespeare -%global common_summary Compile-time interpolated templates - -%global common_description Shakespeare is a family of type-safe, efficient template languages.\ -Shakespeare templates are expanded at compile-time,\ -ensuring that all interpolated variables are in scope.\ -Variables are interpolated according to their type through a typeclass.\ -Shakespeare templates can be used inline with a quasi-quoter\ -or in an external file. - Name: ghc-%{pkg_name} -Version: 1.0.3.1 +Version: 1.0.4 Release: 1%{?dist} -Summary: %{common_summary} +Summary: Toolkit for compile-time interpolated templates License: MIT URL: http://hackage.haskell.org/package/%{pkg_name} @@ -32,7 +22,26 @@ ExclusiveArch: %{ghc_arches_with_ghci} # End cabal-rpm deps %description -%{common_description} +Shakespeare is a family of type-safe, efficient template languages. +Shakespeare templates are expanded at compile-time, +ensuring that all interpolated variables are in scope. +Variables are interpolated according to their type through a typeclass. +Shakespeare templates can be used inline with a quasi-quoter +or in an external file. + +See the documentation at +for more details. + + +%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 @@ -47,18 +56,26 @@ ExclusiveArch: %{ghc_arches_with_ghci} %ghc_lib_install -%ghc_devel_package - -%ghc_devel_description +%post devel +%ghc_pkg_recache -%ghc_devel_post_postun +%postun devel +%ghc_pkg_recache -%ghc_files LICENSE +%files -f %{name}.files +%doc LICENSE + + +%files devel -f %{name}-devel.files %changelog +* Tue Jun 04 2013 Jens Petersen - 1.0.4-1 +- update to 1.0.4 +- update to new simplified Haskell Packaging Guidelines + * Tue Mar 12 2013 Jens Petersen - 1.0.3.1-1 - update to 1.0.3.1 diff --git a/sources b/sources index 3c4fd55..a222072 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -1d1aa524849b4ae618c116eecdb29c94 shakespeare-1.0.3.1.tar.gz +33c064222eeead1737b4eaccfcdd7ac9 shakespeare-1.0.4.tar.gz