As I presented it in another discussion, I wrote this php script to
create .spec/.src.rpm/.noarch.rpm from PEAR modules (a sort of CPAN for PHP)
http://pascal.terjan.free.fr/rpm/pear2rpm.php.txt (.txt is to avoid
server interpretation)
It can be called with
php pear2rpm.php <options> <module name>
e.g. php pear2rpm.php XML_RPC
or
php pear2rpm.php <options> <tarball>
e.g. php pear2rpm.php XML_RPC-1.0.4.tar.gz
Options:
-s, --spec Create a spec file (default)
-r, --rpm Create a source RPM
-b, --build Build the noarch RPM
-U, --update-from-installed Get the old ChangeLog from installed
version
-R, --update-from-rpm <file> Get the old ChangeLog from the given rpm
-S, --update-from-spec <file> Get the old ChangeLog from the given
spec file
-v, --release Specify the RPM release (default to 1mdk)
-n, --packager-name <name> Specify the name to put into ChangeLog
-e, --packager-email <email> Specify the address to put into ChangeLog
-h, --help Display this message
If someone has suggestions...
I'll try to run it on all modules soon and check the generated specs.
Cuurently the main thing to fix is the License which I get from the
package description. It's often "PHP Licence 2.02" and I should remove
the ' 2.02' :-)
Next step will be a configuration file with packager name and email so
we do not need to use the option everytime or edit the default values.
- Re: [Cooker] PEAR Modules packaging Pascal Terjan
- Re: [Cooker] PEAR Modules packaging Buchan Milne
- Re: [Cooker] PEAR Modules packaging Pascal Terjan
