summaryrefslogtreecommitdiffstats
path: root/picocli.spec
blob: 12d300ecb8d176adba2dfcb060f2cf990eb7b0dd (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
Name:           picocli
Version:        4.6.1
Release:        1%{?dist}
Summary:        Java command line parser with both an annotations API and a programmatic API

License:        ASL 2.0
URL:            https://github.com/remkop/picocli

Source0:        https://github.com/remkop/picocli/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:        https://repo1.maven.org/maven2/info/picocli/%{name}/%{version}/%{name}-%{version}.pom

BuildArch:      noarch

BuildRequires:  maven-local

%description
Picocli is a modern library and framework, written in Java, that contains both
an annotations API and a programmatic API. It features usage help with ANSI
colors and styles, TAB auto-completion and nested sub-commands. In a single
file, so you can include it in source form. This lets users run picocli-based
applications without requiring picocli as an external dependency.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains the API documentation for %{name}

%prep
%autosetup

# remove bundled jar/class files from source
rm -rf %{_builddir}/%{name}-%{version}/gradle/wrapper/gradle-wrapper.jar

# remove test folder since they require a lot of deps, i.e. spring, asciidoc, etc.
rm -rf %{_builddir}/%{name}-%{version}/src/test

# replace pom.xml with the one in maven repo, since the source is not updated.
cp -p %{SOURCE1} pom.xml

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE

%changelog
* Tue Jul 06 2021 Didik Supriadi <didiksupriadi41@gmail.com> - 4.6.1-1
- First picocli package