- needs ghc-prof to build (needed Numeric profiling), only ld.bfd is supported
-Summary: This package provides a random number library
+Summary: A random number library
+Summary(pl.UTF-8): Biblioteka liczb losowych
Name: ghc-%{pkgname}
Version: 1.0.1.1
Release: 1
License: BSD
Group: Development/Languages
Name: ghc-%{pkgname}
Version: 1.0.1.1
Release: 1
License: BSD
Group: Development/Languages
-Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
+Source0: http://hackage.haskell.org/packages/archive/random/%{version}/%{pkgname}-%{version}.tar.gz
# Source0-md5: 9a249cfa7ff6793cbf2be06e9fcd7538
URL: http://hackage.haskell.org/package/random/
BuildRequires: ghc >= 6.12.3
# Source0-md5: 9a249cfa7ff6793cbf2be06e9fcd7538
URL: http://hackage.haskell.org/package/random/
BuildRequires: ghc >= 6.12.3
+BuildRequires: ghc-prof >= 6.12.3
BuildRequires: rpmbuild(macros) >= 1.608
%requires_releq ghc
Obsoletes: ghc-random-doc
BuildRequires: rpmbuild(macros) >= 1.608
%requires_releq ghc
Obsoletes: ghc-random-doc
%description
This package provides a random number library.
%description
This package provides a random number library.
+%description -l pl.UTF-8
+Ten pakiet zawiera bibliotekę liczb losowych.
+
%package prof
Summary: Profiling %{pkgname} library for GHC
%package prof
Summary: Profiling %{pkgname} library for GHC
-Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
+Summary(pl.UTF-8): Biblioteka profilująca %{pkgname} dla GHC
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description prof
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description prof
-Profiling %{pkgname} library for GHC. Should be installed when
+Profiling %{pkgname} library for GHC. Should be installed when
GHC's profiling subsystem is needed.
%description prof -l pl.UTF-8
GHC's profiling subsystem is needed.
%description prof -l pl.UTF-8
-Biblioteka profilująca %{pkgname} dla GHC. Powinna być zainstalowana
+Biblioteka profilująca %{pkgname} dla GHC. Powinna być zainstalowana
kiedy potrzebujemy systemu profilującego z GHC.
%package doc
kiedy potrzebujemy systemu profilującego z GHC.
%package doc
%prep
%setup -q -n %{pkgname}-%{version}
%prep
%setup -q -n %{pkgname}-%{version}
+# it relies on ld.bfd specific options
+mkdir -p ld-dir
+if [ -x /usr/bin/ld.bfd ]; then
+ ln -sf /usr/bin/ld.bfd ld-dir/ld
+fi
+
+PATH=$(pwd)/ld-dir:$PATH
runhaskell Setup.hs configure -v2 --enable-library-profiling \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
runhaskell Setup.hs configure -v2 --enable-library-profiling \
--prefix=%{_prefix} \
--libdir=%{_libdir} \