All pastes #925009 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-03-01 22:18 UTC
rendered paste body
%define version 5.2.5
%define _topdir         /home/r.user/rpm
%define _tmppath        %{_topdir}/tmp

Summary: PHP for RedWire 5.2.5
Name: php
Version: %{version}
Release: 1
License: GPL
Group: Applications/Internet
Source: php-5.2.5.tar.gz
BuildRoot:/var/tmp/davea/%{name}-root

%description
PHP RPM for me, built on February 27, 2008

%prep
%setup
./configure \
        --with-apxs2=/usr/local/apache/bin/apxs \
        --with-mysql=/usr/local/mysql \
        --prefix=/usr/local/apache/php \
        --with-config-file-path=/usr/local/apache/php \
        --enable-force-cgi-redirect \
        --enable-cgi \
        --with-zlib \
        --enable-magic-quotes \
        --enable-ftp \
        --with-gd \
        --with-jpeg-dir=/usr/lib \
        --with-mhash=/usr/local/mhash \
        --with-mcrypt=/usr/local/mcrypt \
        --with-png-dir=/usr/lib \
        --with-gettext \
        --enable-mbstring \
        --with-curl \
        --with-freetype-dir
%build
make
%install
make install
%clean

%files
%defattr(-,root,root)
/usr/local/apache/php
/usr/local/apache/modules/libphp5.so

%changelog