SPECS: gtk+2.spec - %bcond_with debug

Jakub Bogusz qboosh at pld-linux.org
Wed Nov 17 11:31:45 CET 2004


On Wed, Nov 17, 2004 at 11:24:30AM +0100, Marcin Krzyzanowski wrote:
> Użytkownik Adam Gołębiowski napisał:
> >On Wed, Nov 17, 2004 at 10:11:53AM +0000, krzak wrote:
> >
> >>+%bcond_with	debug
> >>#
> >>Summary:	The Gimp Toolkit
> >>Summary(cs):	Sada nástrojů pro Gimp
> >>@@ -155,7 +156,7 @@
> >>	--with-xinput=xfree \
> >>	--with-gdktarget=x11 \
> >>	--with-html-dir=%{_gtkdocdir} \
> >>-	--enable-debug=%{?debug:yes}%{!?debug:minimum} \
> >>+	--enable-debug=%{?with_debug:yes}%{?without_debug:minium} \
> >
> >
> >What's this change for?
> >Isn't 
> >$ ./builder --opts --debug file.spec
> >sufficient?
> >
> 
> well, I did it to clarify there is debug switch, isn't it more clear ?
> if it's a problem you can change it back, just leave notify about that 
> on top of the file.

All C/C++-compiled packages support[1] --debug switch. It's standard,
not package-specific, like all --with/--without switches.


[1] or at least should, in some packages it's still broken by not passing
    rpmcflags or unconditional stripping

-- 
Jakub Bogusz    http://cyber.cs.net.pl/~qboosh/




More information about the pld-devel-en mailing list