| td98esj 2005-01-06, 6:35 am |
| Hi,
I am developing an rpm to be installed on several different linux-distributions.
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 must 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. When i build the rpm using rpm -ba I notice that my script runs and also generates 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 older version of sh-utils installed.
I would appreciate any solution to this problem.
/Best Regards Erik |