[ghc-terminfo] make the linker script workaround conditional on ghc_version
Jens Petersen
petersen at fedoraproject.org
Fri Mar 23 05:28:47 UTC 2012
commit 5699befc22f2f104291f4706068657d12f7841ad
Author: Jens Petersen <petersen at redhat.com>
Date: Fri Mar 23 14:28:33 2012 +0900
make the linker script workaround conditional on ghc_version
ghc-terminfo.spec | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/ghc-terminfo.spec b/ghc-terminfo.spec
index 1d4029d..88a85ab 100644
--- a/ghc-terminfo.spec
+++ b/ghc-terminfo.spec
@@ -43,8 +43,10 @@ BuildRequires: ghc-extensible-exceptions-prof
%install
%ghc_lib_install
-## workaround libdir/libncursesw.so linker script breaking linking library for ghc < 7.2
-#sed -i -e "s/extra-libraries: ncursesw/extra-libraries: tinfo/" -e "s!ld-options:!ld-options: /%{_lib}/libncursesw.so.5!" $RPM_BUILD_ROOT%{_libdir}/ghc-%{ghc_version}/package.conf.d/%{pkg_name}-%{version}.conf
+# workaround libdir/libncursesw.so linker script breaking linking library for ghc < 7.2
+case %ghc_version in
+ 6.* | 7.0.*) sed -i -e "s/extra-libraries: ncursesw/extra-libraries: tinfo/" -e "s!ld-options:!ld-options: /%{_lib}/libncursesw.so.5!" $RPM_BUILD_ROOT%{_libdir}/ghc-%{ghc_version}/package.conf.d/%{pkg_name}-%{version}.conf ;;
+esac
%ghc_devel_package
Requires: ncurses-devel%{?_isa}
More information about the scm-commits
mailing list