On Mon, 23 Dec 2002, Pascal Terjan wrote:

> 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

Looks cool ...

>
> If someone has suggestions...


I still want a script that builds rpms from Mandrake/cooker CVS, but alas,
too little time ...
>
> 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.
>

Just remove them from the files, they don't belong there anyway. RPM will
pick up the right values from the user's ~/.rpmmacros.

But, if you really need to, you could use:

%packager:
[bgmilne@bgmilne bgmilne]$ rpm --eval %packager
Buchan Milne <bgmilne@bgmilne>

FYI, you might want to take a look at this file for a ~/.rpmmacros:
http://ranger.dnsalias.com/mandrake/configs/rpmmacros
(explains why my address is given as bgmilne@bgmilne, for mdk packagees
it's automatically [EMAIL PROTECTED]

Regards,
Buchan

-- 
|----------------Registered Linux User #182071-----------------|
Buchan Milne                Mechanical Engineer, Network Manager
Cellphone * Work            +27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering         http://www.cae.co.za
GPG Key                   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7


Reply via email to