01-06-05 11:35 AM
Hi,
I am developing an rpm to be installed on several different linux-distributi
ons.
In my rpm I have these files among others:
7.rc.a
7.rc.b
7.rc.c
rc.a
rc.b
rc.c
I have written my own script that checks for a specific version of sh-utils
or if coreutils is installed.
If the version of sh-utils is older than a specific version, then my rpm mus
t install the 7.*-files and rename them to rc.*.
The renaming is done in my script by using the move command.
Something like this below.
# mv 7.rc.a /installDIR/rc.a
My script is launched from within the %install-section in the spec-file. Whe
n i build the rpm using rpm -ba I notice that my script runs and also genera
tes a log file, but when I install the rpm I get no output to my log file so
I am not sure that my script is actually executed during installation of my
rpm.
I dont want to have 2 different rpm:s just because some RH-systems have olde
r version of sh-utils installed.
I would appreciate any solution to this problem.
/Best Regards Erik
[ Post a follow-up to this message ]
|