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
Regards,
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" ...
On Tue, 10 Mar 2009, Michael Schwendt wrote:
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" ...
Thanks for the help.
Regards,
On Tuesday 10 March 2009 14:51:20 Tom Diehl wrote:
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.
Common options for all rpm modes and executables: -D, --define='MACRO EXPR' define MACRO with value EXPR