{
    "mode": "perldoc",
    "parameter": "CPAN::Plugin::Specfile",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/CPAN%3A%3APlugin%3A%3ASpecfile/json",
    "generated": "2026-06-13T00:53:28Z",
    "synopsis": "# once in the cpan shell\no conf pluginlist push CPAN::Plugin::Specfile\n# make permanent\no conf commit\n# any time in the cpan shell to write a spec file\ntest Acme::Meta\n# disable\n# if it is the last in pluginlist:\no conf pluginlist pop\n# otherwise, determine the index to splice:\no conf pluginlist\n# and then use splice, e.g. to splice position 3:\no conf pluginlist splice 3 1",
    "sections": {
        "NAME": {
            "content": "CPAN::Plugin::Specfile - Proof of concept implementation of a trivial CPAN::Plugin\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "# once in the cpan shell\no conf pluginlist push CPAN::Plugin::Specfile\n\n# make permanent\no conf commit\n\n# any time in the cpan shell to write a spec file\ntest Acme::Meta\n\n# disable\n# if it is the last in pluginlist:\no conf pluginlist pop\n# otherwise, determine the index to splice:\no conf pluginlist\n# and then use splice, e.g. to splice position 3:\no conf pluginlist splice 3 1\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Implemented as a post-test hook, this plugin writes a specfile after every successful test run.\nThe content is also written to the terminal.\n\nAs a side effect, the timestamps of the written specfiles reflect the linear order of all\ndependencies.\n\nWARNING: This code is just a small demo how to use the plugin system of the CPAN shell, not a\nfull fledged spec file writer. Do not expect new features in this plugin.\n\nOPTIONS\nThe target directory to store the spec files in can be set using \"dir\" as in\n\no conf pluginlist push CPAN::Plugin::Specfile=dir,/tmp/specfiles-000042\n\nThe default directory for this is the \"plugins/CPAN::Plugin::Specfile\" directory in the\n*cpanhome* directory.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Andreas Koenig <andk@cpan.org>, Branislav Zahradnik <barney@cpan.org>\n",
            "subsections": []
        }
    },
    "summary": "CPAN::Plugin::Specfile - Proof of concept implementation of a trivial CPAN::Plugin",
    "flags": [],
    "examples": [],
    "see_also": []
}