| … | |
… | |
| 6 | PEP, see http://www.python.org/peps/pep-0001.html for instructions and links |
6 | PEP, see http://www.python.org/peps/pep-0001.html for instructions and links |
| 7 | to templates. DO NOT USE THIS HTML FILE AS YOUR TEMPLATE! |
7 | to templates. DO NOT USE THIS HTML FILE AS YOUR TEMPLATE! |
| 8 | --> |
8 | --> |
| 9 | <head> |
9 | <head> |
| 10 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
10 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 11 | <meta name="generator" content="Docutils 0.3.3: http://docutils.sourceforge.net/" /> |
11 | <meta name="generator" content="Docutils 0.3.9: http://docutils.sourceforge.net/" /> |
| 12 | <title>GLEP 34 -- Per-Category metadata.xml Files</title> |
12 | <title>GLEP 34 -- Per-Category metadata.xml Files</title> |
| 13 | <link rel="stylesheet" href="tools/glep.css" type="text/css" /> |
13 | <link rel="stylesheet" href="tools/glep.css" type="text/css" /> |
| 14 | </head> |
14 | </head> |
| 15 | <body bgcolor="white"> |
15 | <body bgcolor="white"> |
| 16 | <table class="navigation" cellpadding="0" cellspacing="0" |
16 | <table class="navigation" cellpadding="0" cellspacing="0" |
| … | |
… | |
| 22 | <td class="textlinks" align="left"> |
22 | <td class="textlinks" align="left"> |
| 23 | [<b><a href="http://www.gentoo.org/">Gentoo Linux Home</a></b>] |
23 | [<b><a href="http://www.gentoo.org/">Gentoo Linux Home</a></b>] |
| 24 | [<b><a href="http://www.gentoo.org/proj/en/glep">GLEP Index</a></b>] |
24 | [<b><a href="http://www.gentoo.org/proj/en/glep">GLEP Index</a></b>] |
| 25 | [<b><a href="./glep-0034.txt">GLEP Source</a></b>] |
25 | [<b><a href="./glep-0034.txt">GLEP Source</a></b>] |
| 26 | </td></tr></table> |
26 | </td></tr></table> |
| 27 | <div class="document"> |
|
|
| 28 | <table class="rfc2822 field-list" frame="void" rules="none"> |
27 | <table class="rfc2822 docutils field-list" frame="void" rules="none"> |
| 29 | <col class="field-name" /> |
28 | <col class="field-name" /> |
| 30 | <col class="field-body" /> |
29 | <col class="field-body" /> |
| 31 | <tbody valign="top"> |
30 | <tbody valign="top"> |
| 32 | <tr class="field"><th class="field-name">GLEP:</th><td class="field-body">34</td> |
31 | <tr class="field"><th class="field-name">GLEP:</th><td class="field-body">34</td> |
| 33 | </tr> |
32 | </tr> |
| 34 | <tr class="field"><th class="field-name">Title:</th><td class="field-body">Per-Category metadata.xml Files</td> |
33 | <tr class="field"><th class="field-name">Title:</th><td class="field-body">Per-Category metadata.xml Files</td> |
| 35 | </tr> |
34 | </tr> |
| 36 | <tr class="field"><th class="field-name">Version:</th><td class="field-body">1.3</td> |
35 | <tr class="field"><th class="field-name">Version:</th><td class="field-body">1.4</td> |
| 37 | </tr> |
36 | </tr> |
| 38 | <tr class="field"><th class="field-name">Author:</th><td class="field-body">Ciaran McCreesh <ciaranm at gentoo.org></td> |
37 | <tr class="field"><th class="field-name">Author:</th><td class="field-body">Ciaran McCreesh <ciaranm at gentoo.org></td> |
| 39 | </tr> |
38 | </tr> |
| 40 | <tr class="field"><th class="field-name">Last-Modified:</th><td class="field-body"><a class="reference" href="http://www.gentoo.org/cgi-bin/viewcvs/xml/htdocs/proj/en/glep/glep-0034.txt?cvsroot=gentoo">2005/03/17 23:57:56</a></td> |
39 | <tr class="field"><th class="field-name">Last-Modified:</th><td class="field-body"><a class="reference" href="http://www.gentoo.org/cgi-bin/viewcvs/xml/htdocs/proj/en/glep/glep-0034.txt?cvsroot=gentoo">2005/05/02 20:30:24</a></td> |
| 41 | </tr> |
40 | </tr> |
| 42 | <tr class="field"><th class="field-name">Status:</th><td class="field-body">Accepted</td> |
41 | <tr class="field"><th class="field-name">Status:</th><td class="field-body">Final</td> |
| 43 | </tr> |
42 | </tr> |
| 44 | <tr class="field"><th class="field-name">Type:</th><td class="field-body">Standards Track</td> |
43 | <tr class="field"><th class="field-name">Type:</th><td class="field-body">Standards Track</td> |
| 45 | </tr> |
44 | </tr> |
| 46 | <tr class="field"><th class="field-name">Content-Type:</th><td class="field-body"><a class="reference" href="glep-0012.html">text/x-rst</a></td> |
45 | <tr class="field"><th class="field-name">Content-Type:</th><td class="field-body"><a class="reference" href="http://www.python.org/peps/glep-0012.html">text/x-rst</a></td> |
| 47 | </tr> |
46 | </tr> |
| 48 | <tr class="field"><th class="field-name">Created:</th><td class="field-body">11-March-2005</td> |
47 | <tr class="field"><th class="field-name">Created:</th><td class="field-body">11-Mar-2005</td> |
| 49 | </tr> |
48 | </tr> |
| 50 | <tr class="field"><th class="field-name">Post-Date:</th><td class="field-body">11-March-2005, 13-March-2005</td> |
49 | <tr class="field"><th class="field-name">Post-History:</th><td class="field-body">11-Mar-2005, 13-Mar-2005, 2-May-2005</td> |
| 51 | </tr> |
50 | </tr> |
| 52 | </tbody> |
51 | </tbody> |
| 53 | </table> |
52 | </table> |
| 54 | <hr /> |
53 | <hr /> |
| 55 | <div class="contents topic" id="contents"> |
54 | <div class="contents topic" id="contents"> |
| … | |
… | |
| 67 | <li><a class="reference" href="#copyright" id="id16" name="id16">Copyright</a></li> |
66 | <li><a class="reference" href="#copyright" id="id16" name="id16">Copyright</a></li> |
| 68 | </ul> |
67 | </ul> |
| 69 | </div> |
68 | </div> |
| 70 | <div class="section" id="abstract"> |
69 | <div class="section" id="abstract"> |
| 71 | <h1><a class="toc-backref" href="#id9" name="abstract">Abstract</a></h1> |
70 | <h1><a class="toc-backref" href="#id9" name="abstract">Abstract</a></h1> |
| 72 | <p>A <tt class="literal"><span class="pre">metadata.xml</span></tt> file <a class="footnote-reference" href="#id6" id="id1" name="id1">[1]</a> is currently used to provide extra metadata |
71 | <p>A <tt class="docutils literal"><span class="pre">metadata.xml</span></tt> file <a class="footnote-reference" href="#id6" id="id1" name="id1">[1]</a> is currently used to provide extra metadata |
| 73 | (long descriptions, herd and maintainer information) about a package. It |
72 | (long descriptions, herd and maintainer information) about a package. It |
| 74 | is proposed that these files also be used to describe the purpose of a |
73 | is proposed that these files also be used to describe the purpose of a |
| 75 | category.</p> |
74 | category.</p> |
| 76 | </div> |
75 | </div> |
| 77 | <div class="section" id="motivation"> |
76 | <div class="section" id="motivation"> |
| … | |
… | |
| 79 | <p>Category names are short and not entirely clear. Adding arbitrary length |
78 | <p>Category names are short and not entirely clear. Adding arbitrary length |
| 80 | long descriptions to categories would provide several advantages:</p> |
79 | long descriptions to categories would provide several advantages:</p> |
| 81 | <ul class="simple"> |
80 | <ul class="simple"> |
| 82 | <li>It would clarify the meaning of categories for users, who may not be |
81 | <li>It would clarify the meaning of categories for users, who may not be |
| 83 | aware of some of the abbreviations or acronyms we use.</li> |
82 | aware of some of the abbreviations or acronyms we use.</li> |
| 84 | <li>With the use of XML <tt class="literal"><span class="pre">lang=""</span></tt> attributes, it would allow for |
83 | <li>With the use of XML <tt class="docutils literal"><span class="pre">lang=""</span></tt> attributes, it would allow for |
| 85 | additional non-English descriptions (simply using longer category names |
84 | additional non-English descriptions (simply using longer category names |
| 86 | would not allow this).</li> |
85 | would not allow this).</li> |
| 87 | <li>It would help developers better select a relevant category for their |
86 | <li>It would help developers better select a relevant category for their |
| 88 | package, rather than dumping everything into <tt class="literal"><span class="pre">sys-apps</span></tt> and |
87 | package, rather than dumping everything into <tt class="docutils literal"><span class="pre">sys-apps</span></tt> and |
| 89 | <tt class="literal"><span class="pre">app-misc</span></tt> as is done currently.</li> |
88 | <tt class="docutils literal"><span class="pre">app-misc</span></tt> as is done currently.</li> |
| 90 | <li>It would help illustrate which categories are too broad or badly defined |
89 | <li>It would help illustrate which categories are too broad or badly defined |
| 91 | in scope, making any future category splits easier.</li> |
90 | in scope, making any future category splits easier.</li> |
| 92 | </ul> |
91 | </ul> |
| 93 | </div> |
92 | </div> |
| 94 | <div class="section" id="specification"> |
93 | <div class="section" id="specification"> |
| 95 | <h1><a class="toc-backref" href="#id11" name="specification">Specification</a></h1> |
94 | <h1><a class="toc-backref" href="#id11" name="specification">Specification</a></h1> |
| 96 | <p>It is proposed that the existing <tt class="literal"><span class="pre">metadata.xml</span></tt> format <a class="footnote-reference" href="#id6" id="id2" name="id2">[1]</a> be used. |
95 | <p>It is proposed that the existing <tt class="docutils literal"><span class="pre">metadata.xml</span></tt> format <a class="footnote-reference" href="#id6" id="id2" name="id2">[1]</a> be used. |
| 97 | Even though XML sucks, there is already a framework in place for these |
96 | Even though XML sucks, there is already a framework in place for these |
| 98 | files. The filename will be <tt class="literal"><span class="pre">blah-misc/metadata.xml</span></tt>. The character set |
97 | files. The filename will be <tt class="docutils literal"><span class="pre">blah-misc/metadata.xml</span></tt>. The character set |
| 99 | used shall be UTF-8 for consistency with GLEP 31 <a class="footnote-reference" href="#id7" id="id3" name="id3">[2]</a>.</p> |
98 | used shall be UTF-8 for consistency with GLEP 31 <a class="footnote-reference" href="#id7" id="id3" name="id3">[2]</a>.</p> |
| 100 | <p>A new top level <tt class="literal"><span class="pre"><catmetadata></span></tt> element shall be added to the DTD. This |
99 | <p>A new top level <tt class="docutils literal"><span class="pre"><catmetadata></span></tt> element shall be added to the DTD. This |
| 101 | is necessary because the existing <tt class="literal"><span class="pre"><pkgmetadata></span></tt> element is not |
100 | is necessary because the existing <tt class="docutils literal"><span class="pre"><pkgmetadata></span></tt> element is not |
| 102 | appropriately named, and doing a global rename would be impractical. Using |
101 | appropriately named, and doing a global rename would be impractical. Using |
| 103 | a different element would also permit additional category-specific data to |
102 | a different element would also permit additional category-specific data to |
| 104 | be added at a later date.</p> |
103 | be added at a later date.</p> |
| 105 | <p>The existing <tt class="literal"><span class="pre"><longdescription></span></tt> elements shall be used for |
104 | <p>The existing <tt class="docutils literal"><span class="pre"><longdescription></span></tt> elements shall be used for |
| 106 | descriptions. The <tt class="literal"><span class="pre">lang</span></tt> attribute shall be used to indicate the human |
105 | descriptions. The <tt class="docutils literal"><span class="pre">lang</span></tt> attribute shall be used to indicate the human |
| 107 | language of the description -- all categories must have at least an |
106 | language of the description -- all categories must have at least an |
| 108 | English (<tt class="literal"><span class="pre">en</span></tt>) description.</p> |
107 | English (<tt class="docutils literal"><span class="pre">en</span></tt>) description.</p> |
| 109 | <p>The <tt class="literal"><span class="pre"><herd></span></tt> and <tt class="literal"><span class="pre"><maintainer></span></tt> elements are not generally relevant at |
108 | <p>The <tt class="docutils literal"><span class="pre"><herd></span></tt> and <tt class="docutils literal"><span class="pre"><maintainer></span></tt> elements are not generally relevant at |
| 110 | the category level. They may be specified as a fall-back "assume that |
109 | the category level. They may be specified as a fall-back "assume that |
| 111 | everything in this category is maintained by these people", but this must |
110 | everything in this category is maintained by these people", but this must |
| 112 | not be used as a replacement for proper per-package metadata.</p> |
111 | not be used as a replacement for proper per-package metadata.</p> |
| 113 | <div class="section" id="examples"> |
112 | <div class="section" id="examples"> |
| 114 | <h2><a class="toc-backref" href="#id12" name="examples">Examples</a></h2> |
113 | <h2><a class="toc-backref" href="#id12" name="examples">Examples</a></h2> |
| 115 | <p>The <tt class="literal"><span class="pre">app-vim</span></tt> category could use a <tt class="literal"><span class="pre">metadata.xml</span></tt> file like the |
114 | <p>The <tt class="docutils literal"><span class="pre">app-vim</span></tt> category could use a <tt class="docutils literal"><span class="pre">metadata.xml</span></tt> file like the |
| 116 | following:</p> |
115 | following:</p> |
| 117 | <pre class="literal-block"> |
116 | <pre class="literal-block"> |
| 118 | <?xml version="1.0" encoding="UTF-8"?> |
117 | <?xml version="1.0" encoding="UTF-8"?> |
| 119 | <!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
118 | <!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
| 120 | <catmetadata> |
119 | <catmetadata> |
| … | |
… | |
| 129 | </catmetadata> |
128 | </catmetadata> |
| 130 | </pre> |
129 | </pre> |
| 131 | </div> |
130 | </div> |
| 132 | <div class="section" id="implementation-requirements"> |
131 | <div class="section" id="implementation-requirements"> |
| 133 | <h2><a class="toc-backref" href="#id13" name="implementation-requirements">Implementation Requirements</a></h2> |
132 | <h2><a class="toc-backref" href="#id13" name="implementation-requirements">Implementation Requirements</a></h2> |
| 134 | <p>The DTD file would need to be updated to include the <tt class="literal"><span class="pre"><catmetadata></span></tt> |
133 | <p>The DTD file would need to be updated to include the <tt class="docutils literal"><span class="pre"><catmetadata></span></tt> |
| 135 | element.</p> |
134 | element.</p> |
| 136 | <p>A metadata file would have to be added to every category in the tree. This |
135 | <p>A metadata file would have to be added to every category in the tree. This |
| 137 | could be done over a period of time.</p> |
136 | could be done over a period of time.</p> |
| 138 | <p><tt class="literal"><span class="pre">repoman</span></tt> would need a few small changes to be able to handle |
137 | <p><tt class="docutils literal"><span class="pre">repoman</span></tt> would need a few small changes to be able to handle |
| 139 | per-category metadata files.</p> |
138 | per-category metadata files.</p> |
| 140 | <p>The "packages.gentoo.org metadata" bug <a class="footnote-reference" href="#id8" id="id4" name="id4">[3]</a> would need to be |
139 | <p>The "packages.gentoo.org metadata" bug <a class="footnote-reference" href="#id8" id="id4" name="id4">[3]</a> would need to be |
| 141 | updated to ask for category descriptions as well.</p> |
140 | updated to ask for category descriptions as well.</p> |
| 142 | <p>The metadata documentation <a class="footnote-reference" href="#id6" id="id5" name="id5">[1]</a> would require some additions.</p> |
141 | <p>The metadata documentation <a class="footnote-reference" href="#id6" id="id5" name="id5">[1]</a> would require some additions.</p> |
| 143 | </div> |
142 | </div> |
| … | |
… | |
| 148 | <p>The category metadata files will need to be considered "optional until |
147 | <p>The category metadata files will need to be considered "optional until |
| 149 | implemented" rather than immediately becoming mandatory.</p> |
148 | implemented" rather than immediately becoming mandatory.</p> |
| 150 | </div> |
149 | </div> |
| 151 | <div class="section" id="references"> |
150 | <div class="section" id="references"> |
| 152 | <h1><a class="toc-backref" href="#id15" name="references">References</a></h1> |
151 | <h1><a class="toc-backref" href="#id15" name="references">References</a></h1> |
| 153 | <table class="footnote" frame="void" id="id6" rules="none"> |
152 | <table class="docutils footnote" frame="void" id="id6" rules="none"> |
| 154 | <colgroup><col class="label" /><col /></colgroup> |
153 | <colgroup><col class="label" /><col /></colgroup> |
| 155 | <tbody valign="top"> |
154 | <tbody valign="top"> |
| 156 | <tr><td class="label"><a name="id6">[1]</a></td><td><em>(<a class="fn-backref" href="#id1">1</a>, <a class="fn-backref" href="#id2">2</a>, <a class="fn-backref" href="#id5">3</a>)</em> Gentoo Metadata, |
155 | <tr><td class="label"><a name="id6">[1]</a></td><td><em>(<a class="fn-backref" href="#id1">1</a>, <a class="fn-backref" href="#id2">2</a>, <a class="fn-backref" href="#id5">3</a>)</em> Gentoo Metadata, |
| 157 | (<a class="reference" href="http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=4">http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=4</a>)</td></tr> |
156 | (<a class="reference" href="http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=4">http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=4</a>)</td></tr> |
| 158 | </tbody> |
157 | </tbody> |
| 159 | </table> |
158 | </table> |
| 160 | <table class="footnote" frame="void" id="id7" rules="none"> |
159 | <table class="docutils footnote" frame="void" id="id7" rules="none"> |
| 161 | <colgroup><col class="label" /><col /></colgroup> |
160 | <colgroup><col class="label" /><col /></colgroup> |
| 162 | <tbody valign="top"> |
161 | <tbody valign="top"> |
| 163 | <tr><td class="label"><a class="fn-backref" href="#id3" name="id7">[2]</a></td><td>GLEP 31: Character Sets for Portage Tree Items |
162 | <tr><td class="label"><a class="fn-backref" href="#id3" name="id7">[2]</a></td><td>GLEP 31: Character Sets for Portage Tree Items |
| 164 | (<a class="reference" href="http://www.gentoo.org/proj/en/glep/glep-0031.html">http://www.gentoo.org/proj/en/glep/glep-0031.html</a>)</td></tr> |
163 | (<a class="reference" href="http://www.gentoo.org/proj/en/glep/glep-0031.html">http://www.gentoo.org/proj/en/glep/glep-0031.html</a>)</td></tr> |
| 165 | </tbody> |
164 | </tbody> |
| 166 | </table> |
165 | </table> |
| 167 | <table class="footnote" frame="void" id="id8" rules="none"> |
166 | <table class="docutils footnote" frame="void" id="id8" rules="none"> |
| 168 | <colgroup><col class="label" /><col /></colgroup> |
167 | <colgroup><col class="label" /><col /></colgroup> |
| 169 | <tbody valign="top"> |
168 | <tbody valign="top"> |
| 170 | <tr><td class="label"><a class="fn-backref" href="#id4" name="id8">[3]</a></td><td>Gentoo bug 66917 |
169 | <tr><td class="label"><a class="fn-backref" href="#id4" name="id8">[3]</a></td><td>Gentoo bug 66917 |
| 171 | (<a class="reference" href="http://bugs.gentoo.org/show_bug.cgi?id=66917">http://bugs.gentoo.org/show_bug.cgi?id=66917</a>)</td></tr> |
170 | (<a class="reference" href="http://bugs.gentoo.org/show_bug.cgi?id=66917">http://bugs.gentoo.org/show_bug.cgi?id=66917</a>)</td></tr> |
| 172 | </tbody> |
171 | </tbody> |
| … | |
… | |
| 175 | <div class="section" id="copyright"> |
174 | <div class="section" id="copyright"> |
| 176 | <h1><a class="toc-backref" href="#id16" name="copyright">Copyright</a></h1> |
175 | <h1><a class="toc-backref" href="#id16" name="copyright">Copyright</a></h1> |
| 177 | <p>This document has been placed in the public domain.</p> |
176 | <p>This document has been placed in the public domain.</p> |
| 178 | <!-- vim: set tw=74 fileencoding=utf-8 : --> |
177 | <!-- vim: set tw=74 fileencoding=utf-8 : --> |
| 179 | </div> |
178 | </div> |
|
|
179 | |
| 180 | </div> |
180 | </div> |
|
|
181 | <div class="footer"> |
|
|
182 | <hr class="footer" /> |
|
|
183 | <a class="reference" href="glep-0034.txt">View document source</a>. |
|
|
184 | Generated on: 2005-11-07 22:15 UTC. |
|
|
185 | Generated by <a class="reference" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source. |
| 181 | |
186 | |
| 182 | <hr class="footer" /> |
|
|
| 183 | <div class="footer"> |
|
|
| 184 | <a class="reference" href="glep-0034.txt">View document source</a>. |
|
|
| 185 | Generated on: 2005-03-17 23:58 UTC. |
|
|
| 186 | Generated by <a class="reference" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source. |
|
|
| 187 | </div> |
187 | </div> |
| 188 | </body> |
188 | </body> |
| 189 | </html> |
189 | </html> |
| 190 | |
190 | |