[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpm 4.0.2 (pld) and nested macros



Hi,

I have problem with nested macros. Example spec:

%define	abc	0
Summary:	xyz
Name:		lol
Version:	1.0
Release:	1
License:	GPL
Group:		Applications/System
Source0:	/dev/null
Buildarch:	noarch

%description

%prep

%build
%if !%{abc}

%if %{?_with_lids:1}%{!?_with_lids:0}
echo "without lids"

%if%{?_without_smp:0}%{!?_without_smp:1}
echo "without_smp"
%endif 

%endif 

%install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)

%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <pld-list@pld.org.pl>
All persons listed below can be reached at <cvs_login>@pld.org.pl

$Log: alien.spec,v $

And now:

[misiek@arm misiek]$ rpm -bb test.spec
error: parse error in expression
error: /home/users/misiek/test.spec:23: parseExpressionBoolean returns -1
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.61949
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.61949
+ umask 022
+ cd /home/users/misiek/rpm/BUILD
+ exit 0

First of all rpm build process doesn't fail while IMO it should.
Also %install and %clean section aren't processed. 23 line is
,,%if%{?_without_smp:0}%{!?_without_smp:1}''.

Any hints?

ps. can someone test it on rpm 4.0.3 final?
-- 
Arkadiusz Miśkiewicz   IPv6 ready PLD Linux at http://www.pld.org.pl
misiek(at)pld.org.pl   AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PWr





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []