usage of %{name} in rpm spec file

HI,
Following is a portion of an rpm spec file :
Summary: UDP Echo Server
Name: uecho
Version: 0.4.3
Release: 1
License: Commercial
Group: System Environment/Daemons
URL: 
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: x86_64
BuildRequires: libevent-devel
Requires: libevent
Requires(pre): shadow-utils
Requires(post): chkconfig, initscripts
Requires(preun): chkconfig, initscripts

Open in new window


what does this line means : Source0: %{name}-%{version}.tar.gz
where does the name gets passed from .

Thanks
Rohit BajajAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gheistCommented:
Are you making fun by asking obvious?

The variable definition is 6 lines before first reference to variable?
0
Rohit BajajAuthor Commented:
no i got it now... it was generated using maven rpm plugin. if you notice that has a capital N .
but in pom.xml i saw a name tag... thats where its coming from
didnt notice that in pom before
its actually generated using maven plugin
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rohit BajajAuthor Commented:
I've requested that this question be deleted for the following reason:

There were no specific answers given. Infact i only answered my question to some extent
0
gheistCommented:
You got accurate answer. You did not mention entire context (that you use maven on OSX, if I trust other questions) which qualifies question for much more topic areas.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.