]> git.pld-linux.org Git - packages/expect.git/commitdiff
- some fixes in %install.
authorkloczek <kloczek@pld-linux.org>
Sun, 13 Sep 1998 14:24:07 +0000 (14:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    expect.spec -> 1.2

expect.spec

index ac62520285af1ff84e9dbf181829a44393b7f707..c05791577142ea96c75827be36ce43e91ccd9e81 100644 (file)
@@ -74,6 +74,14 @@ rm -rf $RPM_BUILD_ROOT
 LD_LIBRARY_PATH=$RPM_BUILD_ROOT/usr/lib \
 make prefix=$RPM_BUILD_ROOT/usr install
 
+for n in $RPM_BUILD_ROOT/usr/bin/* ; do
+       if head -1 $n | grep '#!'; then
+               cp -a $n $n.in
+               sed "s|$RPM_BUILD_ROOT||" < $n.in > $n
+               rm -f $n.in
+       fi
+done
+
 strip $RPM_BUILD_ROOT/usr/{bin/*,lib/libe*.so} || :
 
 %post   -p /sbin/ldconfig
This page took 0.044555 seconds and 4 git commands to generate.