[packagers] Perl package tools

Dag Wieers dag at wieers.com
Tue Nov 6 20:26:12 CET 2007


Hi all,

I have written a few tools to help with perl package building. Here is an
overview of what you can do now:

	dar-list-perl.py
		list (new, missing all) perl distributions

	dar-perl.py
		generate an RPMforge SPEC file

	dar-diff-perl.sh
		diff an existing SPEC file with a generated one

So here we go:

	[dag at lisse rpms]# dar-list-perl.py --new | wc -l
	369

	[dag at lisse rpms]# /dar/tools/dar/dar-list-perl.py --missing | wc -l
	11269

	[dag at lisse rpms]# /dar/tools/dar/dar-list-perl.py --all | wc -l
	13274

	[dag at lisse rpms]$ ls -d perl-* | wc -l
	2055

You can see from the missing number we have still a lot of work to do :)
Dont ask me about the difference between all and missing. There are some
packages in CPAN that are build with a different name and vice versa.

So imagine you want to create a new SPEC file, you do:

	[dag at lisse rpms]# dar-perl.py -c perl-Compress-Zlib

If you want to compare an existing SPEC file with an autogenerated, do:

	[dag at lisse rpms]# dar-diff-perl.sh perl-Compress-Zlib

You can use dar-list-perl.py to automatically iterate over the updated
packages, and fix those packages in another terminal, like:

	for pkg in $(dar-list-perl.py --new | cut -f1 -d' '); do
		dar-diff-perl.sh $pkg
	done

You can find these tools at:

	http://svn.rpmforge.net/svn/trunk/tools/dar/

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


More information about the packagers mailing list