Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

default variables used in rpm spec file

2,238 views
Skip to first unread message

Nagrik

unread,
Sep 8, 2010, 7:41:07 PM9/8/10
to
Hello Group,

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

Michal Jaegermann

unread,
Sep 8, 2010, 9:51:39 PM9/8/10
to
Nagrik <vna...@gmail.com> wrote:
>
> I am working on creating a rpm spec file and trying to learn about
> it.

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

Robert Heller

unread,
Sep 8, 2010, 10:31:04 PM9/8/10
to

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


0 new messages