cvs: peardoc /en/guide/developers package2.xml /en/guide/developers/package2 contents.xml release.xml
| From: | Greg Beaver | Date: | Sun, 06 Mar 2005 05:32:20 +0000 |
| Subject: | cvs: peardoc /en/guide/developers package2.xml /en/guide/developers/package2 contents.xml release.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-5623@lists.php.net to get a copy of this message | ||
cellog Sun Mar 6 00:32:20 2005 EDT
Added files:
/peardoc/en/guide/developers/package2 contents.xml release.xml
Modified files:
/peardoc/en/guide/developers package2.xml
Log:
add contents and release docs
http://cvs.php.net/diff.php/peardoc/en/guide/developers/package2.xml?r1=1.4&r2=1.5&ty=u Index: peardoc/en/guide/developers/package2.xml diff -u peardoc/en/guide/developers/package2.xml:1.4 peardoc/en/guide/developers/package2.xml:1.5 --- peardoc/en/guide/developers/package2.xml:1.4 Sat Mar 5 23:48:36 2005 +++ peardoc/en/guide/developers/package2.xml Sun Mar 6 00:32:19 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <chapter id="guide.developers.package2"> <title>The package definition file <filename>package.xml</filename>, version 2.0</title> <titleabbrev><filename>package.xml 2.0</filename></titleabbrev> @@ -89,7 +89,7 @@ Put release notes here. They can be multi-line </notes> - <contents> + <link linkend="guide.developers.package2.contents"><contents></link> <dir name="/"> <dir name="PEAR"> <dir name="ChannelFile"> @@ -215,7 +215,7 @@ </package> </group> </dependencies> - <phprelease> + <link linkend="guide.developers.package2.release"><phprelease></link> <installconditions> <os> <name>windows</name> @@ -313,6 +313,8 @@ &guide.developers.package2.version; &guide.developers.package2.stability; &guide.developers.package2.license; + &guide.developers.package2.contents; + &guide.developers.package2.release; </sect1> </chapter> http://cvs.php.net/co.php/peardoc/en/guide/developers/package2/contents.xml?r=1.1&p=1 Index: peardoc/en/guide/developers/package2/contents.xml +++ peardoc/en/guide/developers/package2/contents.xml <!-- $Revision: 1.1 $ --> <refentry id="guide.developers.package2.contents"> <refnamediv> <refname><contents></refname> <refpurpose>specifying the contents of a release</refpurpose> </refnamediv> <refsect1 id="guide.developers.package2.contents.purpose"> <title>Documenting release contents</title> <para> In package.xml 1.0, the contents tag was <filelist>. The purpose of the tag changed dramatically in package.xml 2.0, warranting a name change. Now, <filelist> can be found in the <link linkend="guide.developers.package2.release">release</link> section of the package.xml. </para> <para> <contents> is used to describe the contents of a tarball. Nothing further. All files in the contents tag will be placed into the tarball regardless of whether they eventually get installed by the PEAR installer. This fact can be used to create a very versatile tarball, one that can be directly unzipped and work out of the box as well as be installed by the PEAR installer and work out of the box. </para> <para> For most release types, contents contains a single <dir> tag that then either contains nested dir tags and/or <file> tags. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/guide/developers/package2/release.xml?r=1.1&p=1 Index: peardoc/en/guide/developers/package2/release.xml +++ peardoc/en/guide/developers/package2/release.xml <!-- $Revision: 1.1 $ --> <refentry id="guide.developers.package2.release"> <refnamediv> <refname><phprelease>, <extbinrelease>, <extsrcrelease>, <bundle></refname> <refpurpose>specifying the content type of a release</refpurpose> </refnamediv> <refsect1 id="guide.developers.package2.release.purpose"> <title>Documenting release type</title> <para> In package.xml 1.0, there was one release type. package.xml 2.0 provides much finer control over the kind of release in order to provide three new release types: extension binary release, extension source release, and package bundle release. </para> <para> All of the normal release tags (phprelease, extsrcrelease, extbinrelease) may contain two optional sections, <installconditions> and <filelist>. The purpose of these sections is to allow specification of different file install groups based on the target OS for installation, or other common install conditions. </para> <para> To be clear: in package.xml, there was 1 <release> tag. package.xml 2.0 allows several adjacent release tags, each specifying a different install set. This actually simplifies complex installation filesets by separating the contents listing of the tarball from how the installer should manipulate this listing. Debugging installation file sets should be much simpler with this change. </para> <para> The <filelist> tag can contain only two possible tags, <install> and <ignore>. install has two required attributes, "name" and "as". The install tag is used in the same manner as package.xml's install-as attribute for the <file>, to specify a new installation location for a file in the contents list. The ignore tag is used to completely ignore a file. </para> <para> The <installconditions> tag can contain 4 tags whose format can be found in the <dependencies> section: <php>, <extension>, <os>, and <arch>. Each tag can appear exactly once except for the extension tag, which can appear limitless times. </para> <para> The php tag is used to specify a php version or range of versions that an install set should be valid with. </para> <para> The extension tag is used to specify extensions that must be present for an install set to be valid. </para> <para> The os tag is used to specify an OS that must be present for an install set to be valid. Note that unix can be used to match all flavors, and linux can be used to match all linux-based OSes. Darwin should be used for Mac OS X, and * can be used to match all operating systems. </para> <para> The arch tag is used to specify a uname string or portion of a uname string that must match in order for the install set to be valid. </para> <refsect2 id="guide.developers.package2.release.phprelease"> <title><phprelease></title> <para> The phprelease release type is designed for PEAR-style PHP script package releases. It causes a few specific validation changes. First of all, the <link linkend="guide.developers.package2.contents"><contents></link> tag must contain <file> and <dir> tags. The only valid roles for files are role="php", role="data", role="doc", and role="test" plus any custom roles that the user has installed for use in php releases. </para> </refsect2> <refsect2 id="guide.developers.package2.release.extsrcrelease"> <title><extsrcrelease></title> <para> The extsrcrelease release type is for PECL-style PHP extension releases that must be compiled in order to be useable. It causes a few specific validation changes. First of all, the <link linkend="guide.developers.package2.contents"><contents></link> tag must contain <file> and <dir> tags. The only valid roles for files are role="src", role="data", role="doc", and role="test" plus any custom roles that the user has installed for use in extension source releases. </para> <para> In addition, the <providesextension> tag must be present in order to document the name of the extension this package provides must be in the package.xml as well. </para> </refsect2> <refsect2 id="guide.developers.package2.release.extbinrelease"> <title><extbinrelease></title> <para> The extbinrelease release type is for PECL-style PHP Extension binary releases that are pre-compiled. It causes a few specific validation changes. First of all, the <link linkend="guide.developers.package2.contents"><contents></link> tag must contain <file> and <dir> tags. The only valid roles for files are role="ext", role="data", role="doc", and role="test" plus any custom roles that the user has installed for use in extension binary releases. </para> <para> In addition, the <srcpackage> or <srcuri> and the <providesextension> tags must be present in order to document the package that provides extension source for this binary release, and the name of the extension this package provides must be in the package.xml as well. </para> </refsect2> <refsect2 id="guide.developers.package2.release.bundle"> <title><bundle></title> <para> The bundle release type is designed to allow packaging several other package releases into a single bundle of packages that will all be installed at the same time. This can be used to distribute a complete application as one tarball, or to distribute a library of packages in a single tarball. </para> <para> Unlike the other release types, a bundle release's <link linkend="guide.developers.package2.contents"><contents></link> tag must contain only the <bundledpackage> tag. The contents of the bundledpackage should be release names like "Foo-1.2.3.tgz" </para> <para> In addition, the <bundle/> tag must be empty. </para> </refsect2> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
http://cvs.php.net/diff.php/peardoc/en/guide/developers/package2.xml?r1=1.4&r2=1.5&ty=u Index: peardoc/en/guide/developers/package2.xml diff -u peardoc/en/guide/developers/package2.xml:1.4 peardoc/en/guide/developers/package2.xml:1.5 --- peardoc/en/guide/developers/package2.xml:1.4 Sat Mar 5 23:48:36 2005 +++ peardoc/en/guide/developers/package2.xml Sun Mar 6 00:32:19 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <chapter id="guide.developers.package2"> <title>The package definition file <filename>package.xml</filename>, version 2.0</title> <titleabbrev><filename>package.xml 2.0</filename></titleabbrev> @@ -89,7 +89,7 @@ Put release notes here. They can be multi-line </notes> - <contents> + <link linkend="guide.developers.package2.contents"><contents></link> <dir name="/"> <dir name="PEAR"> <dir name="ChannelFile"> @@ -215,7 +215,7 @@ </package> </group> </dependencies> - <phprelease> + <link linkend="guide.developers.package2.release"><phprelease></link> <installconditions> <os> <name>windows</name> @@ -313,6 +313,8 @@ &guide.developers.package2.version; &guide.developers.package2.stability; &guide.developers.package2.license; + &guide.developers.package2.contents; + &guide.developers.package2.release; </sect1> </chapter> http://cvs.php.net/co.php/peardoc/en/guide/developers/package2/contents.xml?r=1.1&p=1 Index: peardoc/en/guide/developers/package2/contents.xml +++ peardoc/en/guide/developers/package2/contents.xml <!-- $Revision: 1.1 $ --> <refentry id="guide.developers.package2.contents"> <refnamediv> <refname><contents></refname> <refpurpose>specifying the contents of a release</refpurpose> </refnamediv> <refsect1 id="guide.developers.package2.contents.purpose"> <title>Documenting release contents</title> <para> In package.xml 1.0, the contents tag was <filelist>. The purpose of the tag changed dramatically in package.xml 2.0, warranting a name change. Now, <filelist> can be found in the <link linkend="guide.developers.package2.release">release</link> section of the package.xml. </para> <para> <contents> is used to describe the contents of a tarball. Nothing further. All files in the contents tag will be placed into the tarball regardless of whether they eventually get installed by the PEAR installer. This fact can be used to create a very versatile tarball, one that can be directly unzipped and work out of the box as well as be installed by the PEAR installer and work out of the box. </para> <para> For most release types, contents contains a single <dir> tag that then either contains nested dir tags and/or <file> tags. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/guide/developers/package2/release.xml?r=1.1&p=1 Index: peardoc/en/guide/developers/package2/release.xml +++ peardoc/en/guide/developers/package2/release.xml <!-- $Revision: 1.1 $ --> <refentry id="guide.developers.package2.release"> <refnamediv> <refname><phprelease>, <extbinrelease>, <extsrcrelease>, <bundle></refname> <refpurpose>specifying the content type of a release</refpurpose> </refnamediv> <refsect1 id="guide.developers.package2.release.purpose"> <title>Documenting release type</title> <para> In package.xml 1.0, there was one release type. package.xml 2.0 provides much finer control over the kind of release in order to provide three new release types: extension binary release, extension source release, and package bundle release. </para> <para> All of the normal release tags (phprelease, extsrcrelease, extbinrelease) may contain two optional sections, <installconditions> and <filelist>. The purpose of these sections is to allow specification of different file install groups based on the target OS for installation, or other common install conditions. </para> <para> To be clear: in package.xml, there was 1 <release> tag. package.xml 2.0 allows several adjacent release tags, each specifying a different install set. This actually simplifies complex installation filesets by separating the contents listing of the tarball from how the installer should manipulate this listing. Debugging installation file sets should be much simpler with this change. </para> <para> The <filelist> tag can contain only two possible tags, <install> and <ignore>. install has two required attributes, "name" and "as". The install tag is used in the same manner as package.xml's install-as attribute for the <file>, to specify a new installation location for a file in the contents list. The ignore tag is used to completely ignore a file. </para> <para> The <installconditions> tag can contain 4 tags whose format can be found in the <dependencies> section: <php>, <extension>, <os>, and <arch>. Each tag can appear exactly once except for the extension tag, which can appear limitless times. </para> <para> The php tag is used to specify a php version or range of versions that an install set should be valid with. </para> <para> The extension tag is used to specify extensions that must be present for an install set to be valid. </para> <para> The os tag is used to specify an OS that must be present for an install set to be valid. Note that unix can be used to match all flavors, and linux can be used to match all linux-based OSes. Darwin should be used for Mac OS X, and * can be used to match all operating systems. </para> <para> The arch tag is used to specify a uname string or portion of a uname string that must match in order for the install set to be valid. </para> <refsect2 id="guide.developers.package2.release.phprelease"> <title><phprelease></title> <para> The phprelease release type is designed for PEAR-style PHP script package releases. It causes a few specific validation changes. First of all, the <link linkend="guide.developers.package2.contents"><contents></link> tag must contain <file> and <dir> tags. The only valid roles for files are role="php", role="data", role="doc", and role="test" plus any custom roles that the user has installed for use in php releases. </para> </refsect2> <refsect2 id="guide.developers.package2.release.extsrcrelease"> <title><extsrcrelease></title> <para> The extsrcrelease release type is for PECL-style PHP extension releases that must be compiled in order to be useable. It causes a few specific validation changes. First of all, the <link linkend="guide.developers.package2.contents"><contents></link> tag must contain <file> and <dir> tags. The only valid roles for files are role="src", role="data", role="doc", and role="test" plus any custom roles that the user has installed for use in extension source releases. </para> <para> In addition, the <providesextension> tag must be present in order to document the name of the extension this package provides must be in the package.xml as well. </para> </refsect2> <refsect2 id="guide.developers.package2.release.extbinrelease"> <title><extbinrelease></title> <para> The extbinrelease release type is for PECL-style PHP Extension binary releases that are pre-compiled. It causes a few specific validation changes. First of all, the <link linkend="guide.developers.package2.contents"><contents></link> tag must contain <file> and <dir> tags. The only valid roles for files are role="ext", role="data", role="doc", and role="test" plus any custom roles that the user has installed for use in extension binary releases. </para> <para> In addition, the <srcpackage> or <srcuri> and the <providesextension> tags must be present in order to document the package that provides extension source for this binary release, and the name of the extension this package provides must be in the package.xml as well. </para> </refsect2> <refsect2 id="guide.developers.package2.release.bundle"> <title><bundle></title> <para> The bundle release type is designed to allow packaging several other package releases into a single bundle of packages that will all be installed at the same time. This can be used to distribute a complete application as one tarball, or to distribute a library of packages in a single tarball. </para> <para> Unlike the other release types, a bundle release's <link linkend="guide.developers.package2.contents"><contents></link> tag must contain only the <bundledpackage> tag. The contents of the bundledpackage should be release names like "Foo-1.2.3.tgz" </para> <para> In addition, the <bundle/> tag must be empty. </para> </refsect2> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->