Help with compiling/building RPM
I am trying to re-compile the version of PHP distributed with Fedora Core 3 to enable support with Oracle 10g (OCI8). I've downloaded and installed all packages necessary to compile and build RPMs into /usr/src/redhat/......
Actually I am able to compile everything with using under /usr/src/redhat/SPECS
%rmpbuild -ba php.spec
My problem is that I know I have to setup the --with-oci8=$ORACLE_HOME flag, however, I have no clue how to do this.
My spec file reads something like:
%define with_oci8 %{?_with_oci8:1}%{!?_with_oci8:0}
..........
%{?_with_oci8:--with-oci8=shared} \
.......
I've tried to replace the %{?_with_oci8:--with-oci8=shared} \ line with
--with-oci8=/usr/local/oracle/product/10.1.0/Db_1 \
But it doesn't seem to work. No RPM is built.
Thanks!
|