update to cabal-rpm-0.8.7

This commit is contained in:
Jens Petersen 2014-01-02 16:08:23 +09:00
parent 70b6380b3a
commit 4affc97de4
1 changed files with 36 additions and 22 deletions

View File

@ -1,33 +1,40 @@
# cabal2spec-0.25.2
# https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name regex-base
%global common_summary Haskell regex base library
%global common_description Interface API for regex-{posix,pcre,parsec,tdfa,dfa}.
Name: ghc-%{pkg_name}
# part of haskell-platform-2011.4.0.0
# part of haskell-platform
Version: 0.93.2
Release: 11%{?dist}
Summary: %{common_summary}
Release: 28%{?dist}
Summary: Haskell regex base library
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-mtl-prof
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires: ghc-array-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-mtl-devel
# End cabal-rpm deps
%description
%{common_description}
Interface API for regex-{posix,pcre,parsec,tdfa,dfa}.
%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
@ -42,18 +49,25 @@ BuildRequires: ghc-bytestring-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
%changelog
* Thu Jan 2 2014 Jens Petersen <petersen@redhat.com> - 0.93.2-28
- spec file updated to cabal-rpm-0.8.7
* Wed Mar 21 2012 Jens Petersen <petersen@redhat.com> - 0.93.2-11
- rebuild