2 Summary: Binary serialisation for Haskell values using lazy ByteStrings
7 Group: Development/Languages
8 Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
9 # Source0-md5: fdec925b21bd42fa4e9df5505d15ba81
10 URL: http://hackage.haskell.org/package/binary/
11 BuildRequires: ghc >= 6.12.3
12 BuildRequires: rpmbuild(macros) >= 1.608
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 # debuginfo is not useful for ghc
17 %define _enable_debug_packages 0
20 Efficient, pure binary serialisation using lazy ByteStrings. Haskell
21 values may be encoded to and from binary formats, written to disk as
22 binary, or sent over the network. Serialisation speeds of over 1 G/sec
23 have been observed, so this library should be suitable for high
24 performance scenarios.
27 Summary: HTML documentation for %{pkgname}
28 Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
32 HTML documentation for %{pkgname}.
34 %description doc -l pl.UTF-8
35 Dokumentacja w formacie HTML dla %{pkgname}.
38 %setup -q -n %{pkgname}-%{version}
41 runhaskell Setup.lhs configure -v2 \
44 --libexecdir=%{_libexecdir} \
45 --docdir=%{_docdir}/%{name}-%{version}
47 runhaskell Setup.lhs build
48 runhaskell Setup.lhs haddock --executables
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
54 runhaskell Setup.lhs copy --destdir=$RPM_BUILD_ROOT
56 # work around automatic haddock docs installation
57 %{__rm} -rf %{name}-%{version}-doc
58 cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{name}-%{version}-doc
59 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
61 runhaskell Setup.lhs register \
62 --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
65 rm -rf $RPM_BUILD_ROOT
74 %defattr(644,root,root,755)
76 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
77 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
80 %defattr(644,root,root,755)
81 %doc %{name}-%{version}-doc/*