forked from pool/ghc-rpm-macros
14 lines
574 B
Diff
14 lines
574 B
Diff
|
Index: ghc-rpm-macros-1.3.91/macros.ghc
|
||
|
===================================================================
|
||
|
--- ghc-rpm-macros-1.3.91.orig/macros.ghc
|
||
|
+++ ghc-rpm-macros-1.3.91/macros.ghc
|
||
|
@@ -135,7 +135,7 @@ PDIR=$(pwd)\
|
||
|
for i in %*; do\
|
||
|
PROG=%{buildroot}%{_bindir}/$i\
|
||
|
if [ -x "$PROG" ]; then\
|
||
|
- RPATH=$(chrpath $PROG | sed -e "s@^$PROG: RPATH=@@")\
|
||
|
+ RPATH=$(chrpath $PROG | sed -e "s@^$PROG: R\\(UN\\)\\?PATH=@@")\
|
||
|
case $RPATH in\
|
||
|
*$PDIR*)\
|
||
|
NEWRPATH=$(echo $RPATH | sed -e "s@$PDIR/dist/build@%{ghclibdir}/%{pkg_name}-%{version}@g")\
|