forked from aidandenlinger/autocopr
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathusage.spec
More file actions
38 lines (29 loc) · 1.05 KB
/
Copy pathusage.spec
File metadata and controls
38 lines (29 loc) · 1.05 KB
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
%global debug_package %{nil}
Name: usage
Version: 3.5.2
Release: 1%{?dist}
Summary: A specification for CLIs
License: MIT
URL: https://github.com/jdx/usage
Source: %{url}/releases/download/v%{version}/%{name}-x86_64-unknown-linux-musl.tar.gz
Source1: https://raw.githubusercontent.com/jdx/usage/v%{version}/README.md
%description
Usage is a spec and CLI for defining CLI tools.
Arguments, flags, environment variables, and config files can all be defined in a Usage spec.
It can be thought of like OpenAPI (swagger) for CLIs.
Here are some potential reasons for defining your CLI with a Usage spec:
- Generate autocompletion scripts
- Generate markdown documentation
- Generate man pages
- Use an advanced arg parser in any language
- Scaffold one spec into different CLI frameworks—even different languages
%prep
%autosetup -c -n %{name}
cp %{SOURCE1} CONFIGURATION.md
%build
%install
# Ensure the source binary is in the expected location
install -p -D %{name} %{buildroot}%{_bindir}/%{name}
%files
%doc CONFIGURATION.md
%{_bindir}/%{name}