update to 0.4.0 and cblrpm-0.8.7

current HP has 0.4.0
This commit is contained in:
Jens Petersen 2014-01-07 17:13:21 +09:00
parent a33f70b06a
commit babe788ff3
3 changed files with 41 additions and 24 deletions

1
.gitignore vendored
View File

@ -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

View File

@ -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 <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.
%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 <petersen@redhat.com> - 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 <petersen@redhat.com> - 0.3.6-1
- update to 0.3.6

View File

@ -1 +1 @@
0d807bb244fdeb95fa546b4311fcd8df syb-0.3.6.tar.gz
ec2719d444a6561b2424dcef10b4fe34 syb-0.4.0.tar.gz