commit f8442377a71b96936233ad90073200da1193cd86
Author: Jakub Bogusz <[email protected]>
Date:   Sat May 25 18:27:04 2013 +0200

    - pl
    - needs ghc-prof to build (needed Numeric profiling), only ld.bfd is 
supported

 ghc-random.spec | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)
---
diff --git a/ghc-random.spec b/ghc-random.spec
index 987aab1..72928e0 100644
--- a/ghc-random.spec
+++ b/ghc-random.spec
@@ -1,14 +1,16 @@
 %define                pkgname random
-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
-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
+BuildRequires: ghc-prof >= 6.12.3
 BuildRequires: rpmbuild(macros) >= 1.608
 %requires_releq        ghc
 Obsoletes:     ghc-random-doc
@@ -23,18 +25,21 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %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
-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
-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
-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
@@ -52,7 +57,14 @@ Dokumentacja w formacie HTML dla %{pkgname}.
 %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
+
 %build
+PATH=$(pwd)/ld-dir:$PATH
 runhaskell Setup.hs configure -v2 --enable-library-profiling \
        --prefix=%{_prefix} \
        --libdir=%{_libdir} \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghc-random.git/commitdiff/f8442377a71b96936233ad90073200da1193cd86

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to