# Note: Release Focus is no longer a real Freshmeat field; we'll remap it later.
freshmeat_field_map = (
- ("Project", "p", "name"),
- ("Version", "v", "version"),
- ("Changes", "c", "changelog"),
- ("Hide", "x", "hidden_from_frontpage"),
- ("Release-Focus", "r", "release_focus"),
- ("Tag-List", "t", "tag_list"),
- ("License-List", "l", "license_list"),
+ ("Project", "P", "name"), # Project
+ ("Description", "D", "description"), # Project
+ ("License-List", "L", "license_list"), # Project
+ ("Version", "v", "version"), # Release
+ ("Changes", "c", "changelog"), # Release
+ ("Hide", "x", "hidden_from_frontpage"), # Release
+ ("Release-Focus", "r", "release_focus"), # Release
+ ("Tag-List", "t", "tag_list"), # Release
)
def get_rpm_field(fld, rpm):
# Some fields can be copied literally if present.
if not "name" in meta:
meta["name"] = get_rpm_field("name", rpm)
+ if not "description" in meta:
+ meta["description"] = get_rpm_field("description", rpm)
if not "version" in meta:
meta["version"] = get_rpm_field("version", rpm)
# This doesn't work. The values don't map over.
corresponding command-line switches:</para>
<informaltable>
-<tgroup cols='5' rowsep='1'>
+<tgroup cols='6' rowsep='1'>
<thead>
<row>
<entry>Message field</entry>
+ <entry>Scope</entry>
<entry>RPM tag</entry>
<entry>Short switch</entry>
<entry>Long switch</entry>
<tbody>
<row>
-<entry>Project:</entry> <entry>NAME</entry>
+<entry>Project:</entry> <entry>Project</entry> <entry>NAME</entry>
<entry>-p</entry><entry>--project</entry>
<entry>
<para>Name of the project (freshmeat shortname) to operate on.</para>
</row>
<row>
-<entry>Version:</entry> <entry>VERSION</entry>
+<entry>Description:</entry> <entry>Project</entry> <entry>DESCRIPTION</entry>
+<entry>-p</entry><entry>--description</entry>
+<entry>
+<para>Description of the project.</para>
+</entry>
+</row>
+
+<row>
+<entry>License-List:</entry> <entry>Project</entry> <entry>-</entry>
+<entry>-l</entry><entry>--license-list</entry>
+<entry>
+<para>Specify the licenses under which the release is issued. This
+may be a comma-separated list. Note that this is not copied from the
+RPM License field, because the values don't map.</para>
+</entry>
+</row>
+
+<row>
+<entry>Version:</entry> <entry>Release</entry> <entry>VERSION</entry>
<entry>-v</entry><entry>--version</entry>
<entry>
<para>Version string to be associated with the release.
</row>
<row>
-<entry>Changes:</entry> <entry>CHANGELOGTEXT</entry>
+<entry>Changes:</entry> <entry>Release</entry> <entry>CHANGELOGTEXT</entry>
<entry>-c</entry><entry>--changes</entry>
<entry>
<para>The Changes field. Plain text, no more than 600 characters.
</row>
<row>
-<entry>Release-Focus:</entry> <entry>-</entry>
+<entry>Release-Focus:</entry><entry>Release</entry> <entry>-</entry>
<entry>-r</entry><entry>--release-focus</entry>
<entry>
<para>Purpose of this release. See the table of release-focus types
</row>
<row>
-<entry>Tag-List:</entry> <entry>-</entry>
+<entry>Tag-List:</entry> <entry>Release</entry> <entry>-</entry>
<entry>-t</entry><entry>--tag-list</entry>
<entry>
<para>Tags to attach to this release. May be a comma-separated list.</para>
</row>
<row>
-<entry>Hide:</entry> <entry>-</entry>
+<entry>Hide:</entry> <entry>Release</entry> <entry>-</entry>
<entry>-x</entry><entry>--hide</entry>
<entry>
<para>If this field is present and has the value “Y”, this
</row>
<row>
-<entry>License-List:</entry> <entry>-</entry>
-<entry>-l</entry><entry>--license-list</entry>
-<entry>
-<para>Specify the licenses under which the release is issued. This
-may be a comma-separated list. Note that this is not copied from the
-RPM License field, because the values don't map.</para>
-</entry>
-</row>
-
-<row>
-<entry>Website-URL:</entry> <entry>URL</entry>
+<entry>Website-URL:</entry> <entry>Project</entry> <entry>URL</entry>
<entry>-H</entry><entry>--home-page-url</entry><entry>
<para>Specify the project home page.</para>
</entry>
</row>
<row>
-<entry>Tar/GZ-URL:</entry> <entry>SOURCE</entry>
+<entry>Tar/GZ-URL:</entry> <entry>Project</entry> <entry>SOURCE</entry>
<entry>-G</entry><entry>--gzipped-tar-url</entry>
<entry>
<para>Specify the URL where a gzipped tarball of source can be found.</para>