RFC: spec preprocessor

Artur Frysiak wiget at pld.org.pl
Tue May 20 17:07:05 CEST 2003


W liście z wto, 20-05-2003, godz. 15:44, Michal Moskal pisze: 
> On Tue, May 20, 2003 at 02:59:32PM +0200, Artur Frysiak wrote:
> Maybe something like:
> 
> %define bcond_with()	%{expand:%%{?_with_%{1}:%%define %{1} 1}}
> %define bcond_without()	%{expand:%%{!?_without_%{1}:%%define %{1} 1}}
> 
> And then:
> 
> %bcond_with	foo	# foo inc. support
> %bcond_without	bar	# bar fonts support

%define bcond_with()	%{expand:%%{?_with_%{1}:%%global %{1} 1}}

And works.

Any volunteer to describe this in some documentation and implement in
/usr/lib/rpm/macros ?

Regards
-- 
Artur Frysiak <wiget at pld.org.pl>



More information about the pld-devel-en mailing list