I am writing my first spec file and one thing I do not understand is how to make it dynamic. I am using other spec files as reference and noticed that many have name / version loaded dynamically. I am wondering how to do this? Here is an example:
http://svn.apache.org/repos/asf/hbase/branches/0.94/src/packages/rpm/spec/hbase.spec
Mainly I am wondering what these sections mean:
%define _source @package.name@
%define _final_name @final.name@
%define _prefix @package.prefix@
%define _bin_dir %{_prefix}/bin
%define _conf_dir @package.conf.dir@
%define _include_dir %{_prefix}/include
....
Also I'm wondering what exactly {_prefix} actually is?
Sorry for the newbie questions. I'm having an unusual amount of trouble finding info on this.