7ac3d54
%global pkg_name mmap
7ac3d54
968858f
%global common_summary Haskell Memory mapped files library
7ac3d54
968858f
%global common_description A Haskell wrapper to mmap(2) or MapViewOfFile, allowing files or devices\
968858f
to be lazily loaded into memory as strict or lazy ByteStrings, ForeignPtrs or\
968858f
plain Ptrs, using the virtual memory subsystem to do on-demand loading.\
968858f
Modifications are also supported.
968858f
968858f
%bcond_without shared
1d2ea87
%bcond_without hscolour
968858f
968858f
# debuginfo is not useful for ghc
7ac3d54
%global debug_package %{nil}
7ac3d54
7ac3d54
Name:           ghc-%{pkg_name}
9c7c5a5
Version:        0.5.6
Jesse Keating 458c3be
Release:        2%{?dist}
968858f
Summary:        %{common_summary}
7ac3d54
968858f
Group:          System Environment/Libraries
7ac3d54
License:        BSD
7ac3d54
URL:            http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{pkg_name}
7ac3d54
Source0:        http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
604ba22
Patch1:         mmap-no-HUnit.patch
62dcd2e
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
7ac3d54
# fedora ghc archs:
7ac3d54
ExclusiveArch:  %{ix86} x86_64 ppc alpha
62dcd2e
BuildRequires:  ghc, ghc-doc, ghc-prof
1d2ea87
BuildRequires:  ghc-rpm-macros >= 0.8.1
1d2ea87
%if %{with hscolour}
1d2ea87
BuildRequires:  hscolour
1d2ea87
%endif
7ac3d54
7ac3d54
%description
968858f
%{common_description}
968858f
%if %{with shared}
968858f
This package provides the shared library.
7ac3d54
%endif
7ac3d54
7ac3d54
7ac3d54
%prep
7ac3d54
%setup -q -n %{pkg_name}-%{version}
604ba22
%patch1 -p1 -b .orig
7ac3d54
7ac3d54
%build
62dcd2e
%ghc_lib_build
7ac3d54
7ac3d54
7ac3d54
%install
62dcd2e
rm -rf $RPM_BUILD_ROOT
62dcd2e
%ghc_lib_install
7ac3d54
7ac3d54
7ac3d54
%clean
7ac3d54
rm -rf $RPM_BUILD_ROOT
7ac3d54
7ac3d54
1d2ea87
%ghc_lib_package -o 0.4.1-5
1d2ea87
1d2ea87
7ac3d54
%changelog
Jesse Keating 458c3be
* Wed Sep 29 2010 jkeating - 0.5.6-2
Jesse Keating 458c3be
- Rebuilt for gcc bug 634757
Jesse Keating 458c3be
9c7c5a5
* Fri Sep 17 2010 Jens Petersen <petersen@redhat.com> - 0.5.6-1
9c7c5a5
- update to 0.5.6 for darcs-2.5
2f078ef
- patch out superfluous test dependency on HUnit
9c7c5a5
1d2ea87
* Sat Sep  4 2010 Jens Petersen <petersen@redhat.com> - 0.4.1-5
1d2ea87
- add hscolour and doc obsolete (cabal2spec-0.22.2)
1d2ea87
62dcd2e
* Sat Jun 26 2010 Jens Petersen <petersen@redhat.com> - 0.4.1-4
62dcd2e
- sync cabal2spec-0.22
62dcd2e
6c4fd3a
* Sat Apr 24 2010 Jens Petersen <petersen@redhat.com> - 0.4.1-3
6c4fd3a
- rebuild against ghc-6.12.2
6c4fd3a
- condition ghc_lib_package
6c4fd3a
968858f
* Mon Jan 11 2010 Jens Petersen <petersen@redhat.com> - 0.4.1-2
968858f
- update to ghc-rpm-macros-0.5.1 and cabal2spec-0.21.1:
968858f
- drop doc and prof bcond
968858f
- use common summary and common_description
968858f
- use ghc_lib_package
968858f
- drop redundant buildroot and its install cleaning
968858f
7ac3d54
* Tue Nov 17 2009 Jens Petersen <petersen@redhat.com> - 0.4.1-1
7ac3d54
- initial packaging for Fedora created by cabal2spec