CPAN::Plugin::Specfile(3p)

CPAN::Plugin::Specfile3p

Proof of concept implementation of a trivial cpan::plugin

Usage

  # 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
  # if it is the last in plugin_list:
  o conf plugin_list pop
  # otherwise, determine the index to splice:
  o conf plugin_list
  # and then use splice, e.g. to splice position 3:
  o conf plugin_list splice 3 1

Overview

Implemented as a post-test hook, this plugin writes a specfile after every successful test run. The content is also written to the terminal.

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.

Options

The target directory to store the spec files in can be set using "dir" as in

  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.

Releases

21 releases since OpenBSD 6.1; the text changed 14 times.

  1. 6.1
  2. 6.2
  3. 6.3–6.4
  4. 6.5
  5. 6.6
  6. 6.7
  7. 6.8
  8. 6.9–7.2
  9. 7.3
  10. 7.4
  11. 7.5
  12. 7.6
  13. 7.7–7.8
  14. 7.9
  15. 8.0

Author

Andreas Koenig <[email protected]>, Branislav Zahradnik <[email protected]>

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's man source.