aboutsummaryrefslogtreecommitdiffstats
path: root/shipper/rpm2lsm.1
blob: d11df03e76cc964854e1035e61a03caa8dfa74fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
.\"Generated by db2man.xsl. Don't modify this, modify the source.
.de Sh \" Subsection
.br
.if t .Sp
.ne 5
.PP
\fB\\$1\fR
.PP
..
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Ip \" List item
.br
.ie \\n(.$>=3 .ne \\$3
.el .ne 3
.IP "\\$1" \\$2
..
.TH "RPM2LSM" 1 "" "" ""
.SH NAME
rpm2lsm \- generate Linux Software Map entries from RPMs
.SH "SYNOPSIS"

.nf
\fBrpm2lsm\fR [-a \fIauthor\fR] [-k \fIkeywords\fR] [-p \fIplatforms\fR] [-m \fImaintainer\fR]
        \fIrpmfile\fR
.fi

.SH "DESCRIPTION"

.PP
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:

.TP
Title:
Taken straight from the RPM Name field.

.TP
Version:
Taken straight from the RPM Version field.

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

.TP
Description:
Taken straight from the RPM Description field.

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

.TP
Author:
Taken from the value of the \fB-a\fR 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

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

.TP
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.

.TP
Alternate-Site:
This field is not generated.

.TP
Original-Site:
This field is not generated.

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

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

.PP
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.

.SH "AUTHOR"

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

.SH "SEE ALSO"

.PP
\fBrpm\fR(8).