Use perl or csh or tcl from inside the spec file?

Steve Berg sberg at mississippi.com
Tue Feb 14 23:00:08 UTC 2012


On 02/14/2012 04:25 PM, Red Cricket wrote:
> I could of sworn there was a way to do something like this ...
>
> %install #!/usr/SD/perl/bin/perl
> my $DESTDIR=$ENV{'RPM_BUILD_ROOT');
> my $VAS_STOW_TOP        = ".";
> my $LICENSE_DIRNAME     = "/etc/opt/quest/vas/.licenses";
> my $LICENSE_FILENAME    = "QAS-100-813-787.txt";
>
> But obviously that is not right as rpmbuild fails with this message:
>
>
> /var/tmp/rpm-tmp.5HpWke: line 28: syntax error near unexpected token `)'
> error: Bad exit status from /var/tmp/rpm-tmp.5HpWke (%install)
>
> Isn't a way to use something besides /bin/sh inside the spec file?
>
Not that I know the answer but you have { followed by a ). That ain't 
gonna get it in any language.


More information about the Rpm-list mailing list