2 Summary: Memory mapped files for POSIX and Windows
8 Group: Development/Languages
9 Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
10 # Source0-md5: 625301d54b9789e890174e38028c1bcb
11 URL: http://hackage.haskell.org/package/mmap/
12 BuildRequires: ghc >= 6.12.3
13 BuildRequires: ghc-HUnit
14 BuildRequires: rpmbuild(macros) >= 1.608
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 # debuginfo is not useful for ghc
20 %define _enable_debug_packages 0
23 This library provides a wrapper to mmap(2) or MapViewOfFile, allowing
24 files or devices to be lazily loaded into memory as strict or lazy
25 ByteStrings, ForeignPtrs or plain Ptrs, using the virtual memory
26 subsystem to do on-demand loading. Modifications are also supported.
29 Summary: HTML documentation for %{pkgname}
30 Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
34 HTML documentation for %{pkgname}.
36 %description doc -l pl.UTF-8
37 Dokumentacja w formacie HTML dla %{pkgname}.
40 %setup -q -n %{pkgname}-%{version}
43 runhaskell Setup.hs configure -v2 \
46 --libexecdir=%{_libexecdir} \
47 --docdir=%{_docdir}/%{name}-%{version}
49 runhaskell Setup.hs build
50 runhaskell Setup.hs haddock --executables
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
56 runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
58 # work around automatic haddock docs installation
59 %{__rm} -rf %{name}-%{version}-doc
60 cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{name}-%{version}-doc
61 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
63 runhaskell Setup.hs register \
64 --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
67 rm -rf $RPM_BUILD_ROOT
76 %defattr(644,root,root,755)
77 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
78 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
81 %defattr(644,root,root,755)
82 %doc %{name}-%{version}-doc/*