[ghc-xmonad-contrib] update to new simplified Haskell Packaging Guidelines
Jens Petersen
petersen at fedoraproject.org
Tue Jun 11 09:35:09 UTC 2013
commit c050137a8a10450cccbf1d88df82d4a1835cc7cb
Author: Jens Petersen <petersen at redhat.com>
Date: Fri Jun 7 12:49:17 2013 +0900
update to new simplified Haskell Packaging Guidelines
ghc-xmonad-contrib.spec | 55 +++++++++++++++++++++++++++++------------------
1 files changed, 34 insertions(+), 21 deletions(-)
---
diff --git a/ghc-xmonad-contrib.spec b/ghc-xmonad-contrib.spec
index 9ef85da..77f5505 100644
--- a/ghc-xmonad-contrib.spec
+++ b/ghc-xmonad-contrib.spec
@@ -1,25 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name xmonad-contrib
-%global common_summary Third party extensions for xmonad
-
-%global common_description Third party tiling algorithms, configurations and scripts to xmonad,\
-a tiling window manager for X.\
-\
-For an introduction to building, configuring and using xmonad\
-extensions, see "XMonad.Doc". In particular:\
-\
-"XMonad.Doc.Configuring", a guide to configuring xmonad\
-"XMonad.Doc.Extending", using the contributed extensions library\
-"XMonad.Doc.Developing", introduction to xmonad internals and writing\
-your own extensions.
-
Name: ghc-%{pkg_name}
Version: 0.11.1
-Release: 1%{?dist}
-Summary: %{common_summary}
+Release: 2%{?dist}
+Summary: Third party extensions for xmonad
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
@@ -48,7 +34,27 @@ BuildRequires: ghc-xmonad-devel
# End cabal-rpm deps
%description
-%{common_description}
+Third party tiling algorithms, configurations and scripts to xmonad,
+a tiling window manager for X.
+
+For an introduction to building, configuring and using xmonad
+extensions, see "XMonad.Doc". In particular:
+
+"XMonad.Doc.Configuring", a guide to configuring xmonad
+"XMonad.Doc.Extending", using the contributed extensions library
+"XMonad.Doc.Developing", introduction to xmonad internals and writing
+your own extensions.
+
+
+%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
@@ -67,19 +73,26 @@ BuildRequires: ghc-xmonad-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
%doc README
%changelog
+* Fri Jun 07 2013 Jens Petersen <petersen at redhat.com> - 0.11.1-2
+- update to new simplified Haskell Packaging Guidelines
+
* Thu Mar 21 2013 Jens Petersen <petersen at redhat.com> - 0.11.1-1
- update to 0.11.1
More information about the scm-commits
mailing list