usage of %{name} in rpm spec file

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
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 .

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.

Are you making fun by asking obvious?

The variable definition is 6 lines before first reference to variable?
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

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
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.
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

From novice to tech pro — start learning today.