Building RPMs question
Matthew Carpenter
matt
Mon May 17 11:56:51 PDT 2004
Find the ".src.rpm" file of choice.
rpm -ivh apachexxxxx.src.rpm
cd /usr/src/<insert-redhats-directory-here>/
copy the new tar.gz file to ./SOURCES/
edit ./SPECS/apache*.spec (name will vary)
to include the new tar.gz file in place of the old one.
Here is where art comes in (no, not the guy down the street).
You may have to disable the application of patches (depends on the builders of the original package, etc...) This may include some bit-fiddling. The files section may need touching up as well since the new version may have new or get rid of old files...
Build the new RPM and SRPM:
# rpm -ba ./SPECS/apache*.spec
If it works, the last few lines should include something about the creation of the i386.rpm and src.rpm files... Good luck. For a better knowledge of RPM building, check out the HOWTO at tldp.org.
CheckInstall is great for many things. However, sometimes the .spec file is the only way to fly. Your choice...
On Sat, 13 Dec 2003 11:56:58 +0800
Chong Yu Meng <chongym at cymulacrum.net> wrote:
> Hi all !
>
> Need help with building RPM packages. Here's my problem:
>
> Previously, I used Apache RPMs from FalseHope, created by Henri Gomez.
> They're actually pretty good, but because of a bug in Apache 2.0.47, and
> the impending deployment of a web service I'm working on, I need the
> latest 2.0.48 version. I can get the latest from Fedora Core updates,
> but personally, I don't trust Red Hat's versions of Apache.
>
> I can get the tarballs and compile it, but I need an RPM package
> because someone else is going to maintain the server after I finish
> setting it up. So, I was wondering how I could build an RPM package
> specifically for Apache. I've been googling last night to search for
> tutorials on RPMs, but so far, the docs are either too old (RPM v3.x
> mostly), or for other distributions. Ideally, if there's a web tutorial
> on building RPMs, that would be great !
>
> So, my question is : does anybody know of any good resources for
> building rpm packages?
>
> Thanks in advance!
>
> Regards,
> pascal chong
>
>
>
> _______________________________________________
> Linux-users mailing list
> Linux-users at smtp.linux-sxs.org
> Unsubscribe/Suspend/Etc -> http://smtp.linux-sxs.org/mailman/listinfo/linux-users
>
>
More information about the Linux-users
mailing list