From babe788ff3cc60731628d5f83679bacc650a7a27 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 7 Jan 2014 17:13:21 +0900 Subject: [PATCH] update to 0.4.0 and cblrpm-0.8.7 current HP has 0.4.0 --- .gitignore | 1 + ghc-syb.spec | 62 +++++++++++++++++++++++++++++++++------------------- sources | 2 +- 3 files changed, 41 insertions(+), 24 deletions(-) diff --git a/.gitignore b/.gitignore index 1731daa..45a7221 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /syb-0.3.tar.gz /syb-0.3.3.tar.gz /syb-0.3.6.tar.gz +/syb-0.4.0.tar.gz diff --git a/ghc-syb.spec b/ghc-syb.spec index 0128891..0acbfac 100644 --- a/ghc-syb.spec +++ b/ghc-syb.spec @@ -1,37 +1,45 @@ +# https://fedoraproject.org/wiki/Packaging:Haskell + %global pkg_name syb -%global common_summary Haskell Scrap Your Boilerplate library - -%global common_description This package contains the generics system described in the "Scrap Your\ -Boilerplate" papers (see http://www.cs.uu.nl/wiki/GenericProgramming/SYB).\ -It defines the Data class of types permitting folding and unfolding of\ -constructor applications, instances of this class for primitive types, and\ -a variety of traversals. - Name: ghc-%{pkg_name} # part of haskell-platform -Version: 0.3.6 -Release: 1%{?dist} -Summary: %{common_summary} +Version: 0.4.0 +Release: 29%{?dist} +Summary: Scrap Your Boilerplate -Group: System Environment/Libraries License: BSD -# BEGIN cabal2spec URL: http://hackage.haskell.org/package/%{pkg_name} Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz -ExclusiveArch: %{ghc_arches} + BuildRequires: ghc-Cabal-devel -BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour} -# END cabal2spec -BuildRequires: ghc-base-prof +BuildRequires: ghc-rpm-macros +BuildRequires: dos2unix %description -%{common_description} +This package contains the generics system described in the "Scrap Your +Boilerplate" papers (see ). +It defines the Data class of types permitting folding and unfolding of +constructor applications, instances of this class for primitive types, and +a variety of traversals. + + +%package devel +Summary: Haskell %{pkg_name} library development files +Provides: %{name}-static = %{version}-%{release} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} +dos2unix LICENSE README %build %ghc_lib_build @@ -41,19 +49,27 @@ BuildRequires: ghc-base-prof %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 +* Tue Jan 7 2014 Jens Petersen - 0.4.0-29 +- update to 0.4.0 +- unsubpackage from haskell-platform with cabal-rpm-0.8.7 + * Tue Mar 20 2012 Jens Petersen - 0.3.6-1 - update to 0.3.6 diff --git a/sources b/sources index 7234b87..1b31d80 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -0d807bb244fdeb95fa546b4311fcd8df syb-0.3.6.tar.gz +ec2719d444a6561b2424dcef10b4fe34 syb-0.4.0.tar.gz