I am working on creating a rpm spec file and trying to learn about
it. In one of my spec file I came across the following line
%define runsh %{jboss_path}/bin/run.sh
This is the top line in the spec file and thus
%{jboss_path}
is no where.
My question is where does spec file get this variable info.
Thanks in anticipation.
nagrik
http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/index.html
Chapter 9 in particular.
> In one of my spec file I came across the following line
>
> %define runsh %{jboss_path}/bin/run.sh
>
> This is the top line in the spec file and thus
>
> %{jboss_path}
>
> is no where.
Depends. Type 'man rpmbuild' and see what that says in FILES about
'rpmrc Configuration' and 'Macro Configuration'.
> My question is where does spec file get this variable info.
From where it was defined. You can check that value by typing
rpm --eval %{jboss_path}
and you can see "everything" with 'rpm --showrc'.
If this spec is not coming from your distro then it is possible that
you will find %{jboss_path} indeed not defined but that does not mean
that you cannot define it yourself in your own ~/.rpmmacros.
Michal
Command line and/or various macro files. The locations of the macro
files is shown in rpmbuild man page.
>
> Thanks in anticipation.
>
> nagrik
>
--
Robert Heller -- Get the Deepwoods Software FireFox Toolbar!
Deepwoods Software -- Linux Installation and Administration
http://www.deepsoft.com/ -- Web Hosting, with CGI and Database
hel...@deepsoft.com -- Contract Programming: C/C++, Tcl/Tk