Re: Easy Spec file question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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" ...

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux