Easy Spec file question

Michael Schwendt mschwendt at gmail.com
Tue Mar 10 15:02:08 UTC 2009


On Tue, 10 Mar 2009 10:51:20 -0400 (EDT), Tom wrote:

> Hi,
> 
> I am trying to understand the following lines in a spec file.
> 
> The spec file is from the fedora postfix rpm and I would like to rebuild 
> the rpm with mysql enabled. I think that I can simply change the first
> line to say  %define MYSQL 1 but I am wondering if there is a parameter
> I can pass from the rpmbuild command line so that I do not have to modify
> the spec file.
> 
> Can someone please tell me how to get the srpm to build with mysql enabled
> without modifying the spec?
> 
> %{?!MYSQL: %define MYSQL 1}
> %{?!PGSQL: %define PGSQL 0}
> %define LDAP 2
> %define PCRE 1
> %define SASL 2

rpmbuild --define "MYSQL 1" ...




More information about the fedora-devel-list mailing list