]> git.pld-linux.org Git - packages/ghc-random.git/commitdiff
- pl
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 25 May 2013 16:27:04 +0000 (18:27 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 25 May 2013 16:27:04 +0000 (18:27 +0200)
- needs ghc-prof to build (needed Numeric profiling), only ld.bfd is supported

ghc-random.spec

index 987aab1cff2a89522cd4838fbdf8dc6c8311e2c1..72928e006cda850577854b8002be5cef829b47fc 100644 (file)
@@ -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} \
This page took 0.0708 seconds and 4 git commands to generate.