Hello.
I'm trying to create a SPEC file for some program, that might be installed on "server", "client", "other" types of computers. Each type has it's own list of files and actions during installation and uninstallation.
SPEC file describes %install, %pre, %post, %preun, %postun scripts. I want %install script to define a value, that could be used by other scripts, even after reboot.
Example:
Code:
%install
type="server"
define _type "123${type}"
echo "%{_type}"
%pre
echo "%{_type}"
output:
Code:
install:
123server
pre:
123
Of course, %pre scipt does not know the value of ${type} variable. How can I put the
value of a local variable to defined one?
Thank you for your answers.