Mailinglist Archive: opensuse-packaging (138 mails)
< Previous | Next > |
Re: [opensuse-packaging] Trouble with the neededforbuild macro
- From: "Ladislav Michnovič" <ladislav.michnovic@xxxxxxxxx>
- Date: Wed, 21 Mar 2007 14:34:56 +0100
- Message-id: <202bcdd90703210634w2ce67354oeb05e36fd9a951e2@xxxxxxxxxxxxxx>
2007/3/21, Jules Colding <colding@xxxxxxxxx>:
If the suseversion macro is defined it returns 1 otherwise 0.
IMHO it should be
%if %suse_version > 1000
BuildRequires: ...
%else
# neededforbuild ...
%endif
But AFAIK in Build Service is Buildrequires macro always used also for
older distributions e.g. 9.3
So forgot the # neededforbuild and use always BuildRequires: .
Regards Ladislav.
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
> %if 0%{?suse_version}
> BuildRequires: ...
> %endif
What does 0%{?suse_version} do? Does it only evaluates to true if
suse_version is defined or something like that??
If the suseversion macro is defined it returns 1 otherwise 0.
IMHO it should be
%if %suse_version > 1000
BuildRequires: ...
%else
# neededforbuild ...
%endif
But AFAIK in Build Service is Buildrequires macro always used also for
older distributions e.g. 9.3
So forgot the # neededforbuild and use always BuildRequires: .
Regards Ladislav.
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
< Previous | Next > |