[ghc-ghc-mtl] update to new simplified Haskell Packaging Guidelines
Jens Petersen
petersen at fedoraproject.org
Tue Jun 11 11:17:43 UTC 2013
commit 6623626264bb1288f0c59cc5f873d720e00d293f
Author: Jens Petersen <petersen at redhat.com>
Date: Fri Jun 7 12:48:44 2013 +0900
update to new simplified Haskell Packaging Guidelines
ghc-ghc-mtl.spec | 39 ++++++++++++++++++++++++++-------------
1 files changed, 26 insertions(+), 13 deletions(-)
---
diff --git a/ghc-ghc-mtl.spec b/ghc-ghc-mtl.spec
index 89bca69..5070b9e 100644
--- a/ghc-ghc-mtl.spec
+++ b/ghc-ghc-mtl.spec
@@ -1,17 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name ghc-mtl
-%global common_summary A mtl compatible with GHC-API monads and monad-transformers
-
-%global common_description Provides an 'mtl' compatible version of the 'GhcT'\
- monad-transformer defined in the 'GHC-API' since version 6.10.1.
-
Name: ghc-%{pkg_name}
Version: 1.0.1.2
-Release: 1%{?dist}
-Summary: %{common_summary}
+Release: 2%{?dist}
+Summary: A mtl compatible with GHC-API monads and monad-transformers
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
@@ -26,7 +20,19 @@ BuildRequires: ghc-mtl-devel
# End cabal-rpm deps
%description
-%{common_description}
+Provides an 'mtl' compatible version of the 'GhcT'
+monad-transformer defined in the 'GHC-API' since version 6.10.1.
+
+
+%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
@@ -41,18 +47,25 @@ BuildRequires: ghc-mtl-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> - 1.0.1.2-2
+- update to new simplified Haskell Packaging Guidelines
+
* Tue Mar 12 2013 Jens Petersen <petersen at redhat.com> - 1.0.1.2-1
- update to 1.0.1.2
More information about the scm-commits
mailing list