From a874f53a11358f167e7b3af65d2be471aee99f7e Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 7 Jun 2013 12:48:09 +0900 Subject: [PATCH] update to new simplified Haskell Packaging Guidelines --- ghc-base-unicode-symbols.spec | 56 +++++++++++++++++++++-------------- 1 file changed, 34 insertions(+), 22 deletions(-) diff --git a/ghc-base-unicode-symbols.spec b/ghc-base-unicode-symbols.spec index 75c8cb7..95d276a 100644 --- a/ghc-base-unicode-symbols.spec +++ b/ghc-base-unicode-symbols.spec @@ -1,23 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name base-unicode-symbols -%global common_summary Unicode alternatives to common Haskell operators and functions - -%global common_description This package defines new symbols for a number of functions, operators and types\ -in the base package. All symbols are documented with their actual definition\ -and information regarding their Unicode code point. They should be completely\ -interchangeable with their definitions.\ -\ -For more Unicode goodness you can enable the UnicodeSyntax language extension.\ -This extension enables Unicode characters to be used to stand for certain ASCII\ -character sequences, i.e. → instead of ->, ∀ instead of forall and many others. - Name: ghc-%{pkg_name} Version: 0.2.2.4 -Release: 2%{?dist} -Summary: %{common_summary} +Release: 3%{?dist} +Summary: Unicode alternatives for common functions and operators License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -25,11 +13,27 @@ 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} +This package defines new symbols for a number of functions, operators and types +in the base package. All symbols are documented with their actual definition +and information regarding their Unicode code point. They should be completely +interchangeable with their definitions. + +For more Unicode goodness you can enable the UnicodeSyntax language extension. +This extension enables Unicode characters to be used to stand for certain ASCII +character sequences, i.e. → instead of ->, ∀ instead of forall and many others. + + +%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 @@ -44,18 +48,26 @@ BuildRequires: ghc-rpm-macros %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 %doc README.markdown + %changelog +* Fri Jun 07 2013 Jens Petersen - 0.2.2.4-3 +- update to new simplified Haskell Packaging Guidelines + * Wed Feb 13 2013 Fedora Release Engineering - 0.2.2.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild