Skip to content

Commit 4069cc6

Browse files
committed
Add man page
1 parent b01049e commit 4069cc6

File tree

3 files changed

+80
-1
lines changed

3 files changed

+80
-1
lines changed

CHANGELOG

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Upcoming (1.2)
2-
- Wrap whole runtime sections in "scl enable"
2+
- Wrap whole runtime sections in "scl enable" (issue #27)
3+
- Add a man page (issue #29)
34

45
1.1.4
56
- Add `set -e` and wrap whole section in a single "scl enable" (issue #17)

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
include CHANGELOG
22
include LICENSE
33
include README.rst
4+
include spec2scl.1
45
include spec2scl/templates/*
56
recursive-include tests *.py
7+
include tests/test_data/*
68
recursive-exclude tests *.pyc

spec2scl.1

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
.TH SPEC2SCL "1"
2+
.SH NAME
3+
spec2scl \- manual page for spec2scl
4+
.SH DESCRIPTION
5+
usage: spec2scl [\-h] [\-V] [\-i] [\-r] [\-b] [\-k SKIP_FUNCTIONS]
6+
[\-n | \fB\-l\fR SCL_CONTENTS_LIST]
7+
[\-\-meta\-specfile METAPACKAGE_NAME] [\-v VARIABLES]
8+
[ARGUMENT [ARGUMENT ...]]
9+
.PP
10+
Convert RPM specfile to be SCL ready.
11+
.SS "positional arguments:"
12+
.TP
13+
ARGUMENT
14+
Path(s) to the specfile(s).
15+
.SS "optional arguments:"
16+
.TP
17+
\fB\-h\fR, \fB\-\-help\fR
18+
show this help message and exit
19+
.TP
20+
\fB\-V\fR, \fB\-\-version\fR
21+
show spec2scl version
22+
.TP
23+
\fB\-i\fR
24+
Convert in place (replace old specfiles with the new
25+
generated ones). Mandatory when multiple specfiles are
26+
to be converted.
27+
.TP
28+
\fB\-r\fR, \fB\-\-no\-meta\-runtime\-dep\fR
29+
Don't add the runtime dependency on the scl runtime
30+
package.
31+
.TP
32+
\fB\-b\fR, \fB\-\-no\-meta\-buildtime\-dep\fR
33+
Don't add the buildtime dependency on the scl runtime
34+
package.
35+
.TP
36+
\fB\-k\fR SKIP_FUNCTIONS, \fB\-\-skip\-functions\fR SKIP_FUNCTIONS
37+
Comma separated list of transformer functions to skip.
38+
.TP
39+
\fB\-n\fR, \fB\-\-no\-deps\-convert\fR
40+
Don't convert dependency tags (mutually exclusive with
41+
\fB\-l\fR).
42+
.TP
43+
\fB\-l\fR SCL_CONTENTS_LIST, \fB\-\-list\-file\fR SCL_CONTENTS_LIST
44+
List of the packages/provides, that will be in the SCL
45+
(to convert Requires/BuildRequires properly). Lines in
46+
the file are in form of "pkg\-name %{?custom_prefix}",
47+
where the prefix part is optional.
48+
.SS "metapackage arguments:"
49+
.TP
50+
\fB\-\-meta\-specfile\fR METAPACKAGE_NAME
51+
Produce metapackage specfile based on the metapackage
52+
name provided, see SCL docs for metapackage naming.
53+
.TP
54+
\fB\-v\fR VARIABLES, \fB\-\-variables\fR VARIABLES
55+
List of variables separated with comma (used only with
56+
\fB\-\-meta\-specfile\fR option).
57+
58+
.SH EXAMPLES
59+
.TP
60+
.B spec2scl [SPECFILE_PATH]
61+
Convert an RPM specfile into an SCL specfile
62+
.TP
63+
.B spec2scl -i [SPECFILE_PATH [SPECFILE_PATH ...]]
64+
Convert one or more RPM specfiles into SCL specfiles and replace the original files
65+
.TP
66+
.B spec2scl --meta-specfile [METAPACKAGE_NAME]
67+
Create a specfile for a metapackage with a name METAPACKAGE_NAME
68+
69+
.SH LANGUAGE
70+
PYTHON
71+
72+
.SH LICENCE
73+
MIT
74+
75+
.SH AUTHOR
76+
Writen by Slavek Kabrda, Robert Kuska, Iryna Shcherbina

0 commit comments

Comments
 (0)