RE: [opensuse-buildservice] Mandriva 2006 check in spec file
Hi Daniel: I tried it, still doesn't work... %if %{?mandriva_release:1}0 BuildRequires: librrdtool2-devel, libpng3-devel, libfreetype6-static-devel %else BuildRequires: rrdtool-devel, libpng-devel, freetype-devel %endif The buildsystem tried to do substitution for me: < BuildRequires: rrdtool-devel, libpng-devel, freetype-devel ---
BuildRequires: freetype-devel libpng3-devel librrdtool2-devel
Thanks, Bernard
-----Original Message----- From: Daniel Bornkessel [mailto:dbornkessel@suse.de] Sent: Tuesday, May 30, 2006 6:46 To: opensuse-buildservice@opensuse.org Subject: Re: [opensuse-buildservice] Mandriva 2006 check in spec file
does
%if %_host_vendor = "mandriva"
work ?
try %if %{?mandriva_release:1}0
... I think the %if %_host_vendor = "mandriva" does not work when used for the BuildRequires (could be wrong though).
--
Adrian Schroeter SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany email: adrian@suse.de
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice-help@opensuse.org
-- Daniel Bornkessel Tel: +49 911 740 53 161 Novell :: SUSE R&D :: Internal Tools / Java Packaging ______________________________________________________________________ :wq
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice-help@opensuse.org
Am Friday 02 June 2006 01:24 schrieb Bernard Li:
Hi Daniel:
I tried it, still doesn't work...
The follow macros are defined now: %fedora_version %mandriva_version fedora_version can be either 4 or 5 atm (for Core 4 or Core 5). mandriva_version is always 2006 atm. http://en.opensuse.org/Build_Service/cross_distribution_package_how_to -- Adrian Schroeter SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany email: adrian@suse.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice-help@opensuse.org
On Sat 03 Jun 2006 10:05, Adrian Schröter wrote:
Am Friday 02 June 2006 01:24 schrieb Bernard Li:
Hi Daniel:
I tried it, still doesn't work...
The follow macros are defined now:
%fedora_version %mandriva_version
fedora_version can be either 4 or 5 atm (for Core 4 or Core 5). mandriva_version is always 2006 atm.
http://en.opensuse.org/Build_Service/cross_distribution_package_how_to
So are these macros not defined normally on Fedora and Mandriva? Can you give us an example conditional which can detect each distro which will work on both the build service AND a normal build on each of the distros?? TIA -- Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
Am Saturday 03 June 2006 11:07 schrieb Peter Nixon:
On Sat 03 Jun 2006 10:05, Adrian Schröter wrote:
Am Friday 02 June 2006 01:24 schrieb Bernard Li:
Hi Daniel:
I tried it, still doesn't work...
The follow macros are defined now:
%fedora_version %mandriva_version
fedora_version can be either 4 or 5 atm (for Core 4 or Core 5). mandriva_version is always 2006 atm.
http://en.opensuse.org/Build_Service/cross_distribution_package_how_to
So are these macros not defined normally on Fedora and Mandriva? Can you give us an example conditional which can detect each distro which will work on both the build service AND a normal build on each of the distros??
like on the wiki page or simply with %if %{?mandriva_version:1}0 # do something only on mandriva # BuildRequires: something-mdk %endif for example. Yes, they are only defined when you use the Mandriva repository. bye adrian -- Adrian Schroeter SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany email: adrian@suse.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice-help@opensuse.org
On Sat 03 Jun 2006 12:17, Adrian Schröter wrote:
Am Saturday 03 June 2006 11:07 schrieb Peter Nixon:
On Sat 03 Jun 2006 10:05, Adrian Schröter wrote:
Am Friday 02 June 2006 01:24 schrieb Bernard Li:
Hi Daniel:
I tried it, still doesn't work...
The follow macros are defined now:
%fedora_version %mandriva_version
fedora_version can be either 4 or 5 atm (for Core 4 or Core 5). mandriva_version is always 2006 atm.
http://en.opensuse.org/Build_Service/cross_distribution_package_how_to
So are these macros not defined normally on Fedora and Mandriva? Can you give us an example conditional which can detect each distro which will work on both the build service AND a normal build on each of the distros??
like on the wiki page or simply with
%if %{?mandriva_version:1}0 # do something only on mandriva # BuildRequires: something-mdk %endif
for example.
Yes, they are only defined when you use the Mandriva repository.
bye adrian
Can I use a comparison with that? For example: %if %{?suse_version:1}0 > 930 # do something only on SUSE 9.3 %endif Because in the FreeRADIUS package I have the following: %if %suse_version <= 920 --enable-heimdal-krb5 \ --with-rlm-krb5-include-dir=/usr/include/heimdal/ \ %endif I believe that this will cause the build to fail on other distros.. -- Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
Am Saturday 03 June 2006 11:31 schrieb Peter Nixon:
On Sat 03 Jun 2006 12:17, Adrian Schröter wrote:
Am Saturday 03 June 2006 11:07 schrieb Peter Nixon:
On Sat 03 Jun 2006 10:05, Adrian Schröter wrote:
Am Friday 02 June 2006 01:24 schrieb Bernard Li:
Hi Daniel:
I tried it, still doesn't work...
The follow macros are defined now:
%fedora_version %mandriva_version
fedora_version can be either 4 or 5 atm (for Core 4 or Core 5). mandriva_version is always 2006 atm.
http://en.opensuse.org/Build_Service/cross_distribution_package_how_t o
So are these macros not defined normally on Fedora and Mandriva? Can you give us an example conditional which can detect each distro which will work on both the build service AND a normal build on each of the distros??
like on the wiki page or simply with
%if %{?mandriva_version:1}0 # do something only on mandriva # BuildRequires: something-mdk %endif
for example.
Yes, they are only defined when you use the Mandriva repository.
bye adrian
Can I use a comparison with that? For example:
%if %{?suse_version:1}0 > 930 # do something only on SUSE 9.3 %endif
I think there is no other way than to stack this like this: %if %{?suse_version:1}0 %if %suse_version > 930 # do something only on SUSE 9.3 %endif %endif -- Adrian Schroeter SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany email: adrian@suse.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice-help@opensuse.org
Am Saturday 03 June 2006 11:33 schrieb Adrian Schröter:
Am Saturday 03 June 2006 11:31 schrieb Peter Nixon:
On Sat 03 Jun 2006 12:17, Adrian Schröter wrote:
Am Saturday 03 June 2006 11:07 schrieb Peter Nixon:
On Sat 03 Jun 2006 10:05, Adrian Schröter wrote:
Am Friday 02 June 2006 01:24 schrieb Bernard Li:
Hi Daniel:
I tried it, still doesn't work...
The follow macros are defined now:
%fedora_version %mandriva_version
fedora_version can be either 4 or 5 atm (for Core 4 or Core 5). mandriva_version is always 2006 atm.
http://en.opensuse.org/Build_Service/cross_distribution_package_how _t o
So are these macros not defined normally on Fedora and Mandriva? Can you give us an example conditional which can detect each distro which will work on both the build service AND a normal build on each of the distros??
like on the wiki page or simply with
%if %{?mandriva_version:1}0 # do something only on mandriva # BuildRequires: something-mdk %endif
for example.
Yes, they are only defined when you use the Mandriva repository.
bye adrian
Can I use a comparison with that? For example:
%if %{?suse_version:1}0 > 930 # do something only on SUSE 9.3 %endif
I think there is no other way than to stack this like this:
%if %{?suse_version:1}0 %if %suse_version > 930 # do something only on SUSE 9.3
this means of course, "do something only on SUSE after 9.3."
%endif %endif
-- Adrian Schroeter SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany email: adrian@suse.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice-help@opensuse.org
On Sat 03 Jun 2006 12:33, Adrian Schröter wrote:
Am Saturday 03 June 2006 11:31 schrieb Peter Nixon:
On Sat 03 Jun 2006 12:17, Adrian Schröter wrote:
Am Saturday 03 June 2006 11:07 schrieb Peter Nixon:
On Sat 03 Jun 2006 10:05, Adrian Schröter wrote:
Am Friday 02 June 2006 01:24 schrieb Bernard Li:
Hi Daniel:
I tried it, still doesn't work...
The follow macros are defined now:
%fedora_version %mandriva_version
fedora_version can be either 4 or 5 atm (for Core 4 or Core 5). mandriva_version is always 2006 atm.
http://en.opensuse.org/Build_Service/cross_distribution_package_how _t o
So are these macros not defined normally on Fedora and Mandriva? Can you give us an example conditional which can detect each distro which will work on both the build service AND a normal build on each of the distros??
like on the wiki page or simply with
%if %{?mandriva_version:1}0 # do something only on mandriva # BuildRequires: something-mdk %endif
for example.
Yes, they are only defined when you use the Mandriva repository.
bye adrian
Can I use a comparison with that? For example:
%if %{?suse_version:1}0 > 930 # do something only on SUSE 9.3 %endif
I think there is no other way than to stack this like this:
%if %{?suse_version:1}0 %if %suse_version > 930 # do something only on SUSE 9.3 %endif %endif
Thanks. That seems to work. -- Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
On Sat, Jun 03, 2006 at 11:33:43AM +0200, Adrian Schröter wrote:
I think there is no other way than to stack this like this:
%if %{?suse_version:1}0 %if %suse_version > 930 # do something only on SUSE 9.3 %endif %endif
Come on, be creative: %if 0%{?suse_version} >= 930 # do something only on SUSE 9.3 %endif (rpm uses "atoi" to convert to an integer, so there's no danger that it is interpreted as octal...) Cheers, Michael. -- Michael Schroeder mls@suse.de main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice-help@opensuse.org
participants (4)
-
Adrian Schröter
-
Bernard Li
-
Michael Schroeder
-
Peter Nixon