perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe M. Chiasson" <>
Subject [mp2 patch] RPM friendly build
Date Wed, 22 Jun 2005 19:40:48 GMT
Here is a suggested patch to add rpm building bits to our build process.

Basically, this patch achieves 2 things.

1. It makes sure that distribution tarballs contains a mod_perl.spec file
   so anybody can just do:
 $> wget
 $> rpmbuild -ta mod_perl.2.x.tar.gz

And they'll have nice RPMs for whatever RPM-based distro they run

2. It adds the 'rpm' make target, so that developers can quickly publish RPMs
   if they want (basically does make dist && rpmbuild -ta like above) :

 $> perl Makefile.PL
 $> make rpm
 perl build/make_rpm_spec
 perl -Ilib "-MModPerl::Manifest=mkmanifest" -e mkmanifest
 rm -rf mod_perl-2.0.2-dev
 gzip -9f mod_perl-2.0.2-dev.tar
 rpmbuild -ta [...] mod_perl-2.0.2-dev.tar.gz
 $> ls rpm/

The bulk of the RPM spec file was grabbed from Fedora's

Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5     F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5

View raw message