RPM2LSM(1)

NAME
rpm2lsm - generate Linux Software Map entries from RPMs

SYNOPSIS
rpm2lsm [-a author] [-k keywords] [-p platforms] [-m maintainer]
        rpmfile

DESCRIPTION

This tool extracts tag information from an RPM file to generate a Linux Software Map (version 3) entry on standard output. Command-line switches support adding LSM fields that have no equivalents in RPMs. Here are the field-generation rules:

Title:
    Taken straight from the RPM Name field.

Version:
    Taken straight from the RPM Version field.

Entered-Date:
    LSM-generation time in YYYY-MM-DD format.

Description:
    Taken straight from the RPM Description field.

Keywords:
    Taken from the value of the -k command-line option. If no such option is given, it is omitted.

Author:
    Taken from the value of the -a command-line option. If no such option is given, it looks for an AUTHORS file in the current directory (GNU convention) and uses that. If no AUTHORS file is present, your email addess and full name from the password file

Maintained-By:
    Taken from the value of the -m command-line option. If that was not given, taken from the RPM Packager field. If that was not given, fill in the Author name.

Primary-Site:
    The first (site) line is taken from the RPM URL field. Second and subsequent lines list tarballs and RPMs that match on name, version number, and release number with the RPM algument. For each file, size in 1K blocks is filled in.

Alternate-Site:
    This field is not generated.

Original-Site:
    This field is not generated.

Platforms:
    Taken from the value of the -p command-line option. If no such option is given, 'All' is filled in.

Copying-Policy:
    Taken straight from the RPM License field.

These are all the fields supported in LSM version 3. You can see the : LSM template http://ibiblio.org/pub/Linux/LSM-TEMPLATE for full details.

AUTHOR

Eric S. Raymond <esr@thyrsus.com>. For updates, see : http://www.catb.org/~esr/software.htmlhttp://www.catb.org/~esr/software.html.

SEE ALSO

rpm(8).