7335f1c
%global pkg_name regex-base
7335f1c
7335f1c
%global common_summary Haskell regex base library
7335f1c
7335f1c
%global common_description Interface API for regex-{posix,pcre,parsec,tdfa,dfa}.
7335f1c
7335f1c
%global ghc_pkg_deps ghc-mtl-devel
7335f1c
7335f1c
# debuginfo is not useful for ghc
7335f1c
%global debug_package %{nil}
7335f1c
7335f1c
Name:           ghc-%{pkg_name}
ad10524
# part of haskell-platform-2010.2.0.0
ad10524
Version:        0.93.2
4f6922f
Release:        5%{?dist}
7335f1c
Summary:        %{common_summary}
7335f1c
7335f1c
Group:          System Environment/Libraries
7335f1c
License:        BSD
019bf78
URL:            http://hackage.haskell.org/package/%{pkg_name}
7335f1c
Source0:        http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
7335f1c
# fedora ghc archs:
4f6922f
ExclusiveArch:  %{ix86} x86_64 ppc alpha sparcv9
efcbf94
BuildRequires:  ghc, ghc-doc, ghc-prof
75a2e82
BuildRequires:  ghc-rpm-macros >= 0.7.3
983e009
BuildRequires:  hscolour
7335f1c
%{?ghc_pkg_deps:BuildRequires:  %{ghc_pkg_deps}, %(echo %{ghc_pkg_deps} | sed -e "s/\(ghc-[^, ]\+\)-devel/\1-doc,\1-prof/g")}
7335f1c
7335f1c
%description
7335f1c
%{common_description}
7335f1c
%if %{with shared}
7335f1c
This package provides the shared library.
7335f1c
%endif
7335f1c
7335f1c
7335f1c
%prep
7335f1c
%setup -q -n %{pkg_name}-%{version}
7335f1c
7335f1c
7335f1c
%build
ad10524
%ghc_lib_build
7335f1c
7335f1c
7335f1c
%install
ad10524
%ghc_lib_install
7335f1c
7335f1c
019bf78
%ghc_lib_package
ad10524
ad10524
7335f1c
%changelog
4f6922f
* Thu Mar 10 2011 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.93.2-5
4f6922f
- Enable build on sparcv9
4f6922f
b19b42e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93.2-4
b19b42e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b19b42e
75a2e82
* Sat Jan 15 2011 Jens Petersen <petersen@redhat.com> - 0.93.2-3
75a2e82
- update to cabal2spec-0.22.4
75a2e82
019bf78
* Thu Nov 25 2010 Jens Petersen <petersen@redhat.com> - 0.93.2-2
019bf78
- update url and drop -o obsoletes
983e009
- add hscolour
019bf78
ad10524
* Fri Jul 16 2010 Jens Petersen <petersen@redhat.com> - 0.93.2-1
ad10524
- update to 0.93.2 for haskell-platform-2010.2.0.0
ad10524
- obsolete doc subpackage (ghc-rpm-macros-0.8.0)
ad10524
efcbf94
* Fri Jun 25 2010 Jens Petersen <petersen@redhat.com> - 0.93.1-4
efcbf94
- strip shared library (cabal2spec-0.21.4)
efcbf94
7dc0cdc
* Tue Apr 27 2010 Jens Petersen <petersen@redhat.com> - 0.93.1-3
7dc0cdc
- part of haskell-platform-2010.1.0.0
7dc0cdc
- rebuild against ghc-6.12.2
7dc0cdc
- condition ghc_lib_package
7dc0cdc
7335f1c
* Fri Jan 15 2010 Jens Petersen <petersen@redhat.com> - 0.93.1-2
7335f1c
- license is BSD
7335f1c
- depends on mtl
7335f1c
7335f1c
* Fri Jan 15 2010 Fedora Haskell SIG <haskell-devel@lists.fedoraproject.org> - 0.93.1-1
7335f1c
- initial packaging for Fedora automatically generated by cabal2spec-0.21.1