Re: How to do rpmbuild with specified Macro value

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

 



On Thu, 2005-03-03 at 15:38 +0800, Linda wrote:
>Hi,
> 
>I am newer for rpmbuild. I try to build the php-src.rpm with oci8 and
>mssql. php.sec is as below:
>%define contentdir /var/www
>%define with_oci8 %{?_with_oci8:1}%{!?_with_oci8:0}
>%define with_mssql %{?_with_mssql:1}%{!?_with_mssql:0}
>%define with_mhash %{?_with_mhash:1}%{!?_with_mhash:0}
> 
>how to do that? I try to use rpmbuild -ba --define "with_oci8 1"
>php.spec, but it doesn't work.

The document that describes how this work is:

/usr/share/doc/$(rpm --qf 'rpm-%{version}' -q rpm)/conditionalbuilds

rpmbuild --with-oci8 -ba php.spec

The problem I think is your --define with_oci8 is being clobbered when
the conditional evaluates the _with_oci8 which is auto set from
--with-oci8 as described in the above document.

Paul


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux