2 Summary: This package provides a random number library
7 Group: Development/Languages
8 Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
9 # Source0-md5: 9a249cfa7ff6793cbf2be06e9fcd7538
10 URL: http://hackage.haskell.org/package/random/
11 BuildRequires: ghc >= 6.12.3
12 BuildRequires: rpmbuild(macros) >= 1.608
14 Obsoletes: ghc-random-doc
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 # debuginfo is not useful for ghc
18 %define _enable_debug_packages 0
20 # don't compress haddoc files
21 %define _noautocompressdoc *.haddock
24 This package provides a random number library.
27 Summary: Profiling %{pkgname} library for GHC
28 Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
29 Group: Development/Libraries
30 Requires: %{name} = %{version}-%{release}
33 Profiling %{pkgname} library for GHC. Should be installed when
34 GHC's profiling subsystem is needed.
36 %description prof -l pl.UTF-8
37 Biblioteka profilująca %{pkgname} dla GHC. Powinna być zainstalowana
38 kiedy potrzebujemy systemu profilującego z GHC.
41 Summary: HTML documentation for %{pkgname}
42 Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
44 Requires: %{name} = %{version}-%{release}
47 HTML documentation for %{pkgname}.
49 %description doc -l pl.UTF-8
50 Dokumentacja w formacie HTML dla %{pkgname}.
53 %setup -q -n %{pkgname}-%{version}
56 runhaskell Setup.hs configure -v2 --enable-library-profiling \
59 --libexecdir=%{_libexecdir} \
60 --docdir=%{_docdir}/%{name}-%{version}
62 runhaskell Setup.hs build
63 runhaskell Setup.hs haddock --executables
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
69 runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
71 # work around automatic haddock docs installation
72 rm -rf %{name}-%{version}-doc
73 cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
75 runhaskell Setup.hs register \
76 --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
78 rm -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
81 rm -rf $RPM_BUILD_ROOT
90 %defattr(644,root,root,755)
91 %doc %{name}-%{version}-doc/*
92 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
93 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
94 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.o
95 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.a
96 %exclude %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
97 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System
98 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System/*.hi
101 %defattr(644,root,root,755)
102 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
103 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System/*.p_hi