163b6f
# https://fedoraproject.org/wiki/Packaging:Haskell
163b6f
7ac3d5
%global pkg_name mmap
7ac3d5
7ac3d5
Name:           ghc-%{pkg_name}
2b693e
Version:        0.5.8
e1f467
Release:        5%{?dist}
197c63
Summary:        Memory mapped files library
7ac3d5
7ac3d5
License:        BSD
c11801
URL:            http://hackage.haskell.org/package/%{pkg_name}
7ac3d5
Source0:        http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
2b693e
6c1fb0
BuildRequires:  ghc-Cabal-devel
2b693e
BuildRequires:  ghc-rpm-macros
2b693e
# Begin cabal-rpm deps:
288148
BuildRequires:  ghc-bytestring-devel
2b693e
# End cabal-rpm deps
7ac3d5
7ac3d5
%description
197c63
A Haskell wrapper to mmap(2) or MapViewOfFile, allowing files or devices
197c63
to be lazily loaded into memory as strict or lazy ByteStrings, ForeignPtrs or
197c63
plain Ptrs, using the virtual memory subsystem to do on-demand loading.
197c63
Modifications are also supported.
197c63
197c63
197c63
%package devel
197c63
Summary:        Haskell %{pkg_name} library development files
197c63
Requires:       ghc-compiler = %{ghc_version}
197c63
Requires(post): ghc-compiler = %{ghc_version}
197c63
Requires(postun): ghc-compiler = %{ghc_version}
197c63
Requires:       %{name} = %{version}-%{release}
197c63
197c63
%description devel
197c63
This package provides the Haskell %{pkg_name} library development files.
7ac3d5
7ac3d5
7ac3d5
%prep
7ac3d5
%setup -q -n %{pkg_name}-%{version}
947930
7ac3d5
7ac3d5
%build
62dcd2
%ghc_lib_build
7ac3d5
7ac3d5
7ac3d5
%install
62dcd2
%ghc_lib_install
7ac3d5
7ac3d5
197c63
%post devel
197c63
%ghc_pkg_recache
163b6f
163b6f
197c63
%postun devel
197c63
%ghc_pkg_recache
163b6f
163b6f
197c63
%files -f %{name}.files
197c63
%doc LICENSE
163b6f
197c63
197c63
%files devel -f %{name}-devel.files
1d2ea8
1d2ea8
7ac3d5
%changelog
e1f467
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.8-5
e1f467
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e1f467
3efd46
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.8-4
3efd46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3efd46
197c63
* Wed Jun 05 2013 Jens Petersen <petersen@redhat.com> - 0.5.8-3
197c63
- update to new simplified Haskell Packaging Guidelines
197c63
bc7157
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.8-2
bc7157
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
bc7157
2b693e
* Wed Nov 07 2012 Jens Petersen <petersen@redhat.com> - 0.5.8-1
2b693e
- update to 0.5.8
2b693e
b86e31
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.7-10
b86e31
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b86e31
288148
* Mon Jul 16 2012 Jens Petersen <petersen@redhat.com> - 0.5.7-9
288148
- change prof BRs to devel
288148
163b6f
* Sun Mar 18 2012 Jens Petersen <petersen@redhat.com> - 0.5.7-8
163b6f
- update to cabal2spec-0.25
163b6f
7b46a9
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.7-7.2
7b46a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7b46a9
Marcela Mašláňová 8cf07f
* Fri Oct 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.5.7-6.2
Marcela Mašláňová 8cf07f
- rebuild with new gmp without compat lib
Marcela Mašláňová 8cf07f
Marcela Mašláňová 65546b
* Tue Oct 11 2011 Peter Schiffer <pschiffe@redhat.com> - 0.5.7-6.1
Marcela Mašláňová 65546b
- rebuild with new gmp
Marcela Mašláňová 65546b
6c1fb0
* Thu Jun 23 2011 Jens Petersen <petersen@redhat.com> - 0.5.7-6
6c1fb0
- BR ghc-Cabal-devel instead of ghc-prof and use ghc_arches (cabal2spec-0.23.2)
6c1fb0
1f7ade
* Thu Mar 10 2011 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.5.7-5
1f7ade
- Enable build on sparcv9
1f7ade
0af34f
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.7-4
0af34f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0af34f
c6c684
* Wed Jan 19 2011 Jens Petersen <petersen@redhat.com> - 0.5.7-3
c6c684
- update to cabal2spec-0.22.4
c6c684
c11801
* Thu Nov 25 2010 Jens Petersen <petersen@redhat.com> - 0.5.7-2
c11801
- update to 0.5.4 and drop -o obsoletes
c11801
947930
* Mon Nov  1 2010 Jens Petersen <petersen@redhat.com> - 0.5.7-1
947930
- update to 0.5.7
947930
- mmap-no-HUnit.patch is now upstream
947930
Jesse Keating 458c3b
* Wed Sep 29 2010 jkeating - 0.5.6-2
Jesse Keating 458c3b
- Rebuilt for gcc bug 634757
Jesse Keating 458c3b
9c7c5a
* Fri Sep 17 2010 Jens Petersen <petersen@redhat.com> - 0.5.6-1
9c7c5a
- update to 0.5.6 for darcs-2.5
2f078e
- patch out superfluous test dependency on HUnit
9c7c5a
1d2ea8
* Sat Sep  4 2010 Jens Petersen <petersen@redhat.com> - 0.4.1-5
1d2ea8
- add hscolour and doc obsolete (cabal2spec-0.22.2)
1d2ea8
62dcd2
* Sat Jun 26 2010 Jens Petersen <petersen@redhat.com> - 0.4.1-4
62dcd2
- sync cabal2spec-0.22
62dcd2
6c4fd3
* Sat Apr 24 2010 Jens Petersen <petersen@redhat.com> - 0.4.1-3
6c4fd3
- rebuild against ghc-6.12.2
6c4fd3
- condition ghc_lib_package
6c4fd3
968858
* Mon Jan 11 2010 Jens Petersen <petersen@redhat.com> - 0.4.1-2
968858
- update to ghc-rpm-macros-0.5.1 and cabal2spec-0.21.1:
968858
- drop doc and prof bcond
968858
- use common summary and common_description
968858
- use ghc_lib_package
968858
- drop redundant buildroot and its install cleaning
968858
7ac3d5
* Tue Nov 17 2009 Jens Petersen <petersen@redhat.com> - 0.4.1-1
7ac3d5
- initial packaging for Fedora created by cabal2spec