[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [rpm-list] Setting binary rpm name according to a condition
- From: Erez Zilber <erezz voltaire com>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: [rpm-list] Setting binary rpm name according to a condition
- Date: Wed, 25 Oct 2006 17:05:17 +0200
Hi,
I still have some problems. Here's the piece of code that sets the name
of the binary rpm:
if [ "%_vendor" = "suse" ] ; then
my_build_name_fmt=suse_name
echo "suse"
else if [ "%_vendor" = "redhat" ] ; then
my_build_name_fmt=redhat-name
echo "redhat"
else
echo "This version is not supported"
fi
fi
%define _build_name_fmt $my_build_name_fmt.%_arch.rpm
echo "_build_name_fmt = %_build_name_fmt"
When I run it, it does print the _build_name_fmt that I expect to see:
+ echo '_build_name_fmt = suse_name.x86_64.rpm'
_build_name_fmt = suse_name.x86_64.rpm
However, later it prints the following:
Wrote: /usr/src/packages/RPMS/$my_build_name_fmt.x86_64.rpm
Why doesn't it treat my_build_name_fmt as a variable?
Thanks,
Erez
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]