[tools] dar-perl.py

Dag Wieers dag at wieers.com
Wed Sep 17 17:02:36 CEST 2008


On Wed, 27 Aug 2008, Bowie Bailey wrote:

> Second try...  I got no replies whatsoever the first time.
> Does anyone read this list?

There was a problem with the mailinglist.


> Anyway...
>
> I grabbed the file from here:
> http://svn.rpmforge.net/svn/trunk/tools/dar/dar-perl.py
> and tried it out to see what it would do.
>
> It dumped what looked like a spec file and then gave an error.
>
> $ ./dar-perl.py Compress::Zlib
>
> [normal spec information snipped]
>
> %files
> %defattr(-, root, root, 0755)
> %doc Changes MANIFEST META.yml README examples/
> %doc %{_mandir}/man3/Compress::Zlib.3pm*
> %dir %{perl_vendorlib}/Compress/
> #%{perl_vendorlib}/Compress/Zlib/
> %{perl_vendorlib}/Compress/Zlib.pm
>
> %changelog
> Traceback (most recent call last):
>  File "./dar-perl.py", line 679, in ?
>    print >>out, '* %s %s - %s-1' % (time.strftime('%a %b %d %Y',
> time.localtime()), authorities[logname], version)
> KeyError: 'bowieb'
> $
>
> Any idea what happened here?

Yes, it produced a SPEC file but when getting the information of your user 
it doesn't find the key in the list. So you have to add your own name to 
the authorities list.

I will add some code to add Anonymous Coward instead :-)


> What exactly is this program supposed to do?  Can someone give me an
> example of how to use it to install a Perl module and its dependencies?

It generates a SPEC file that can be used to create an RPM package.

-- 
--   dag wieers,  dag at wieers.com,  http://dag.wieers.com/   --
[Any errors in spelling, tact or fact are transmission errors]


More information about the tools mailing list