2 Summary: Compression and decompression in the gzip and zlib formats
7 Group: Development/Languages
8 Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
9 # Source0-md5: 19859e241dc18ef1501a5d44d8523507
10 URL: http://hackage.haskell.org/package/%{pkgname}/
11 BuildRequires: ghc >= 6.12.3
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 %define ghcdir ghc-%(/usr/bin/ghc --numeric-version)
18 This package provides a pure interface for compressing and
19 decompressing streams of data represented as lazy
20 'ByteString's. It uses the zlib C library so it has high
21 performance. It supports the "zlib", "gzip" and "raw"
24 It provides a convenient high level API suitable for most
25 tasks and for the few cases where more control is needed it
26 provides access to the full zlib feature set.
29 %setup -q -n %{pkgname}-%{version}
32 runhaskell Setup.hs configure -v2 \
35 --libexecdir=%{_libexecdir} \
36 --docdir=%{_docdir}/%{name}-%{version}
38 runhaskell Setup.hs build
39 runhaskell Setup.hs haddock --executables
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
45 runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
47 # work around automatic haddock docs installation
48 rm -rf %{name}-%{version}-doc
49 cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
51 runhaskell Setup.hs register \
52 --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
55 rm -rf $RPM_BUILD_ROOT
58 /usr/bin/ghc-pkg recache
61 /usr/bin/ghc-pkg recache
64 %defattr(644,root,root,755)
65 %doc %{name}-%{version}-doc/html
66 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
67 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}