From 41c1f176da43cfdf3669b04cb34a916cf9276a52 Mon Sep 17 00:00:00 2001 From: Didik Supriadi Date: Fri, 9 Jul 2021 16:53:59 +0700 Subject: Initial import (#1980117). --- .gitignore | 1 + picocli-4.6.1.pom | 31 +++++++++++++++++++++++++++++++ picocli.spec | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 88 insertions(+) create mode 100644 .gitignore create mode 100644 picocli-4.6.1.pom create mode 100644 picocli.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5a93443 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/picocli-4.6.1.tar.gz diff --git a/picocli-4.6.1.pom b/picocli-4.6.1.pom new file mode 100644 index 0000000..0dc6656 --- /dev/null +++ b/picocli-4.6.1.pom @@ -0,0 +1,31 @@ + + + 4.0.0 + info.picocli + picocli + 4.6.1 + jar + picocli - a mighty tiny Command Line Interface + Java command line parser with both an annotations API and a programmatic API. Usage help with ANSI styles and colors. Autocomplete. Nested subcommands. Easily included as source to avoid adding a dependency. + http://picocli.info + 2017 + + + The Apache Software License, version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + rpopma + Remko Popma + rpopma@apache.org + + + + https://github.com/remkop/picocli/tree/master + scm:git:https://github.com/remkop/picocli.git + scm:git:ssh://github.com:remkop/picocli.git + + diff --git a/picocli.spec b/picocli.spec new file mode 100644 index 0000000..12d300e --- /dev/null +++ b/picocli.spec @@ -0,0 +1,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 - 4.6.1-1 +- First picocli package diff --git a/sources b/sources new file mode 100644 index 0000000..1acfd26 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (picocli-4.6.1.tar.gz) = e2c6c6171c3ec9cbe35e7034e119dfe922993c9e7b8d81ea94faeb8b24c9c4c26023be1edb5d67041119c4bf73077d522fbe711e8c1af788063663e2bb06ab1f -- cgit