Hi,
We know the RPM script (spec) has normally following sections auch as
%description
...
%pre
...
%install
...
%post
...
etc.
I have a spec file which looks just very simple as follow:
Code:
...
%definition
...
%pre
HOSTNAME=`hostname`
echo "Section %PRE"
...
%install
HOSTNAME=`hostname`
echo "Section %INSTALL"
...
%post
HOSTNAME=`hostname`
echo "Section %POST"
...
But I get after running this script:
Code:
...
HOSTNAME: s003ap19-test.proactiv.de
Section PRE
HOSTNAME: s003ap19-test.proactiv.de
Section: POST
...
One can see the section of %install is not shown here.
What could be the cause?