[PlanetCCRMA] jack prelink

Lawrie Abbott lawrieabbott@iinet.net.au
Wed Apr 21 19:36:02 2004


Hi Fernando,
Just a reminder in case you have forgotten.
Back in Feb I mentioned that  the prelink.patch can be done away with if 
prelink >= 0.3.0-17 is used.
I added  the following to  my jack.spec (tested on rh9 and fc1 ).

%define distro %(awk '/Red Hat/ {print "rh"};/Fedora/ {print "fc"} ' 
2>/dev/null </etc/redhat-release) 

%if %{distro} == "fc"
Requires:       prelink >= 0.3.0-17
%endif

%post
%if %{distro} == "fc"
grep 'b /usr/bin/jackd' /etc/prelink.conf > /dev/null 2>&1
  if [ "$?" == "1" ]; then
     echo '-b /usr/bin/jackd' >> /etc/prelink.conf
  fi
%endif

Cheers
Lawrie Abbott