[ghc-ansi-terminal] update to new simplified Haskell Packaging Guidelines

Jens Petersen petersen at fedoraproject.org
Tue Jun 11 01:43:03 UTC 2013


commit 76106e838f91f799d03a59d0d2ac819da2249d45
Author: Jens Petersen <petersen at redhat.com>
Date:   Fri Jun 7 12:48:06 2013 +0900

    update to new simplified Haskell Packaging Guidelines

 ghc-ansi-terminal.spec |   40 ++++++++++++++++++++++++++++------------
 1 files changed, 28 insertions(+), 12 deletions(-)
---
diff --git a/ghc-ansi-terminal.spec b/ghc-ansi-terminal.spec
index 3e27a0c..841e9f0 100644
--- a/ghc-ansi-terminal.spec
+++ b/ghc-ansi-terminal.spec
@@ -1,16 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name ansi-terminal
 
-%global common_summary Haskell %{pkg_name} library
-
-%global common_description %{common_summary}
-
 Name:           ghc-%{pkg_name}
 Version:        0.6
-Release:        1%{?dist}
-Summary:        %{common_summary}
+Release:        2%{?dist}
+Summary:        Simple ANSI terminal support
 
 License:        BSD
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -23,7 +18,21 @@ BuildRequires:  ghc-unix-devel
 # End cabal-rpm deps
 
 %description
-%{common_description}
+ANSI terminal support for Haskell: allows cursor movement, screen clearing,
+color output showing or hiding the cursor, and changing the title.
+Compatible with Windows and those Unixes with ANSI terminals,
+but only GHC is supported as a compiler.
+
+
+%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
@@ -38,18 +47,25 @@ BuildRequires:  ghc-unix-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
+* Fri Jun 07 2013 Jens Petersen <petersen at redhat.com> - 0.6-2
+- update to new simplified Haskell Packaging Guidelines
+
 * Mon Mar 11 2013 Jens Petersen <petersen at redhat.com> - 0.6-1
 - update to 0.6
 


More information about the scm-commits mailing list