SPECS: pike.spec - make GL optional

Adam Gołębiowski adamg at biomerieux.pl
Wed Apr 14 20:29:16 CEST 2004


On Wed, Apr 14, 2004 at 12:19:04PM -0600, Aredridel wrote:
> > aredridel wrote:
> > > - make GL optional
> > [...]
> > > +%bcond_without	GL
> > [...]
> > > -BuildRequires:	OpenGL-devel
> > > +#BuildRequires:	OpenGL-devel
> > 
> > Are you sure that it builds with_GL and *without* OpenGL headers ?
> > I doubt.
> 
> Whoops, thank you.
> 
> qboosh fixed it neatly.
> 
> Which way is the preferred way to use bconds? %{with name}, or
> with_name? Different uses?

Well, if you have two or more lines to be enclosed within bcond,
preferred way is:

	%if %{with foo}
	BuildRequires: foo-devel
	BuildRequires: shmoo-devel
	%endif

But if you have only one line:
	%{?with_foo:BuildRequires: foo-devel}
Or
	%if %{with foo}
	BuildRequires: foo-devel
	%endif

Personally, I prefer first method, even though it is probably less
readable. 

-- 
http://www.mysza.eu.org/ | Everybody needs someone sure, someone true,
   PLD Linux developer   | Everybody needs some solid rock, I know I do.



More information about the pld-devel-en mailing list