The easiest thing to do is to take the existing Redhat EL3 php source rpm,
install and get the php spec file.

Edit that spec file and modify it for php5. Then copy the php 5.0 tar.gz
file over to /usr/src/redhat/SOURCES and then run rpmbuild -bb php.spec or
whatever you named your php spec file.

If you don't have a clue about the RPM build system, you may want to look at
the Maximum RPM online book available at redhat. Or search google for it.

-Brent

----- Original Message ----- 
From: "Chris Martin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 27, 2004 11:55 AM
Subject: [PHP] Re: Creating a PHP5 RPM


> Marcus Bointon wrote:
> > I normally compile PHP straight from the regular source, however, this
means
> > that RPM loses track of what PHP version is installed on RedHat Linux
(EL3),
> > causing dependency and version mismatch problems. So it appears that I
need
> > to build an RPM from the normal source, then install it with RPM.
However, I
> > have no idea how to do this - can anyone give me some pointers? Is it as
> > simple as adding a configure switch like --build-rpm?
> >
> > Thanks,
> >
> > Marcus
>
> I haven't done it myself yet, but I've been thinking about the same
> thing. I had bookmarked these "how to's" while searching google.
>
> http://user.cs.tu-berlin.de/~ccorn/software/rpm/build-rpm.html
> http://www3.sympatico.ca/sarrazip/dev/rpm-building-crash-course.html
> http://www-106.ibm.com/developerworks/library/l-rpm2/
>
> -- 
> Chris Martin
> Web Developer
> Open Source & Web Standards Advocate
> http://www.chriscodes.com/
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to