From 17a9cf6f873b9a265aeadf3f714c878e600cf559 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Mon, 3 Jun 2013 19:12:59 +0900 Subject: [PATCH] update to simplified Haskell Packaging Guidelines --- ghc-unix-time.spec | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/ghc-unix-time.spec b/ghc-unix-time.spec index 9b5f5f9..3303292 100644 --- a/ghc-unix-time.spec +++ b/ghc-unix-time.spec @@ -1,16 +1,11 @@ # https://fedoraproject.org/wiki/Packaging:Haskell -# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name unix-time -%global common_summary Unix time parser/formatter and utilities - -%global common_description Fast parser, formatter, and utilities for Unix time - Name: ghc-%{pkg_name} Version: 0.1.8 Release: 1%{?dist} -Summary: %{common_summary} +Summary: Unix time parser/formatter and utilities License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} @@ -24,7 +19,18 @@ BuildRequires: ghc-old-time-devel # End cabal-rpm deps %description -%{common_description} +Fast parser, formatter, and utilities for Unix time + + +%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 @@ -39,15 +45,19 @@ BuildRequires: ghc-old-time-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 %changelog