Hello Clayton,
On Wed, May 08, 2013 at 11:13:04AM -0500, Clayton Keller wrote:
> Is this along the lines of what you had in mind:
>
> %define full_version 1.5-dev18
> %define version %(echo %{full_version} | awk -F "-" '{print $1}')
> %define release %(echo %{full_version} | awk -F "-" '{print $2}')
> <snip>
> Version: %{version}
> Release: %{release}
Yes I didn't know this was possible. Seems a little bit dirty but is
handy. You can even use "cut -d- -f1" / "cut -d- -f2".
> Here is my current diff containing this and the previous discussed
> changes in comparison to the existing haproxy.spec in examples/:
(...)
I'm seeing one issue here :
> -BuildRoot: %{_tmppath}/%{name}-%{version}-root
> +BuildRoot: %{_tmppath}/%{name}-%{version}.root
I think you wanted to use ".../%{name}-%{version}-%{release}-root" instead.
Thanks,
Willy