From c050137a8a10450cccbf1d88df82d4a1835cc7cb Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 7 Jun 2013 12:49:17 +0900 Subject: [PATCH] update to new simplified Haskell Packaging Guidelines --- ghc-xmonad-contrib.spec | 57 +++++++++++++++++++++++++---------------- 1 file changed, 35 insertions(+), 22 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 - -%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 %changelog +* Fri Jun 07 2013 Jens Petersen - 0.11.1-2 +- update to new simplified Haskell Packaging Guidelines + * Thu Mar 21 2013 Jens Petersen - 0.11.1-1 - update to 0.11.1