To compile the RPM for PHP4 I had to modify the SPEC to this: %{?!_without_php: [ -d "%{buildroot}/php4" ] && mv %{buildroot}/php4 %{buildroot}%{_datadir}/php} Because the build is still sticking xapian.php into /php4/xapian.php All the best, Tim.
On 7/26/07, Tim Brody <tdb01r@ecs.soton.ac.uk> wrote:> To compile the RPM for PHP4 I had to modify the SPEC to this: > > %{?!_without_php: [ -d "%{buildroot}/php4" ] && mv %{buildroot}/php4 > %{buildroot}%{_datadir}/php} > > Because the build is still sticking xapian.php into /php4/xapian.php >Is this with the vanilla spec file, or with the patch I sent on Sat, 7 Jul 2007 ? Fabrice
Using the 1.0.2 SRPMS from xapian.org/RPM/fc7/. Tim. Fabrice Colin wrote:> On 7/26/07, Tim Brody <tdb01r@ecs.soton.ac.uk> wrote: >> To compile the RPM for PHP4 I had to modify the SPEC to this: >> >> %{?!_without_php: [ -d "%{buildroot}/php4" ] && mv %{buildroot}/php4 >> %{buildroot}%{_datadir}/php} >> >> Because the build is still sticking xapian.php into /php4/xapian.php >> > Is this with the vanilla spec file, or with the patch I sent on Sat, 7 > Jul 2007 ? > > Fabrice > > _______________________________________________ > Xapian-discuss mailing list > Xapian-discuss@lists.xapian.org > http://lists.xapian.org/mailman/listinfo/xapian-discuss >
On 7/27/07, Tim Brody <tdb01r@ecs.soton.ac.uk> wrote:> Using the 1.0.2 SRPMS from xapian.org/RPM/fc7/. >Really ? I am surprised. This SRPM's spec installs xapian.php in /usr/share/php/ with : ... %{?!_without_php: [ -d "%{buildroot}%{_datadir}/php5" ] && mv \ %{buildroot}%{_datadir}/php5 %{buildroot}%{_datadir}/php} %{?!_without_php: [ -d "%{buildroot}%{_datadir}/php4" ] && mv \ %{buildroot}%{_datadir}/php4 %{buildroot}%{_datadir}/php} ... The "%files" section lists "%{_datadir}/php/xapian.php" explicitely. Fabrice