You can use bash code in the %pre or %post sections. Generally what we do in this situation is to build the same srpm on multiple os's. If the rpm contains binary code, you have to beware of the auto-requires for shared libs, etc.
And yes, really on a CrackBerry :-)
--------------------------
Sent from my BlackBerry Wireless Handheld
-----Original Message-----
From: rpm-list-bounces@xxxxxxxxxx
To: RPM Package Manager
Sent: Wed Jun 07 19:26:14 2006
Subject: Re: Determining RHEL3 or RHEL4 in a .spec file
Nice Idea.
Can I use bash code in the .spec file?
Will read a litle more about the .spec file ...
Thanks
Oliver
P.D.: are you really on a Blackberry? cooool
Stanley, Jon wrote:
>
> Check /etc/redhat-release or the version of redhat-release
> --------------------------
> Sent from my BlackBerry Wireless Handheld
>
--
Oliver Schulze L.
<oliver@xxxxxxxxxxxxx>
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list