[ghc-X11] update to revised simplified Haskell Packaging Guidelines

Jens Petersen petersen at fedoraproject.org
Wed Apr 24 04:26:07 UTC 2013


commit 40ecc8fc43202219cd2ef22c89feb58d3472fc26
Author: Jens Petersen <petersen at redhat.com>
Date:   Wed Apr 24 13:25:59 2013 +0900

    update to revised simplified Haskell Packaging Guidelines

 ghc-X11.spec |   55 ++++++++++++++++++++++++++++++++++---------------------
 1 files changed, 34 insertions(+), 21 deletions(-)
---
diff --git a/ghc-X11.spec b/ghc-X11.spec
index d19f932..8397477 100644
--- a/ghc-X11.spec
+++ b/ghc-X11.spec
@@ -1,19 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name X11
 
-%global common_summary A binding to the X11 graphics library
-
-%global common_description A Haskell binding to the X11 graphics library.\
-The binding is a direct translation of the C binding;\
-for documentation of these calls, refer to "The Xlib Programming Manual",\
-available online at <http://tronche.com/gui/x/xlib/>.
-
 Name:           ghc-%{pkg_name}
 Version:        1.6.1.1
-Release:        1%{?dist}
-Summary:        %{common_summary}
+Release:        2%{?dist}
+Summary:        Haskell binding to the X11 graphics library
 
 License:        BSD
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -30,7 +22,27 @@ BuildRequires:  libXrandr-devel%{?_isa}
 BuildRequires:  libXinerama-devel%{?_isa}
 
 %description
-%{common_description}
+A Haskell binding to the X11 graphics library.
+The binding is a direct translation of the C binding; for
+documentation of these calls, refer to "The Xlib Programming
+Manual", available online at <http://tronche.com/gui/x/xlib/>.
+
+
+%package devel
+Summary:        Haskell %{pkg_name} library development files
+%{?ghc_devel_requires}
+# Begin cabal-rpm deps:
+Requires:       libX11-devel%{?_isa}
+Requires:       libXext-devel%{?_isa}
+Requires:       libXrandr-devel%{?_isa}
+# End cabal-rpm deps
+Requires:       libXinerama-devel%{?_isa}
+
+%description devel
+A Haskell binding to the X11 graphics library.
+The binding is a direct translation of the C binding; for
+documentation of these calls, refer to "The Xlib Programming
+Manual", available online at <http://tronche.com/gui/x/xlib/>.
 
 
 %prep
@@ -45,24 +57,25 @@ BuildRequires:  libXinerama-devel%{?_isa}
 %ghc_lib_install
 
 
-%ghc_devel_package
-# Begin cabal-rpm deps:
-Requires:  libX11-devel%{?_isa}
-Requires:  libXext-devel%{?_isa}
-Requires:  libXrandr-devel%{?_isa}
-# End cabal-rpm deps
-Requires:  libXinerama-devel%{?_isa}
+%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
+* Wed Apr 24 2013 Jens Petersen <petersen at redhat.com> - 1.6.1.1-2
+- update to revised simplified Haskell Packaging Guidelines (cabal-rpm-0.8)
+
 * Tue Mar 12 2013 Jens Petersen <petersen at redhat.com> - 1.6.1.1-1
 - update to 1.6.1.1
 


More information about the scm-commits mailing list