# once in the cpan shell o conf plugin_list push CPAN::Plugin::Specfile # make permanent o conf commit # any time in the cpan shell to write a spec file test Acme::Meta # disable o conf plugin_list pop
As a side effect, the timestamps of the written specfiles reflect the linear order of all dependencies.
WARNING: This code is just a small demo how to use the plugin system of the CPAN shell, not a full fledged spec file writer. Do not expect new features in this plugin.
o conf plugin_list push CPAN::Plugin::Specfile=dir,/tmp/specfiles-000042
The default directory for this is the "plugins/CPAN::Plugin::Specfile" directory in the cpan_home directory.