diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | picocli-4.6.1.pom | 31 | ||||
-rw-r--r-- | picocli.spec | 55 | ||||
-rw-r--r-- | sources | 1 |
4 files changed, 88 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>info.picocli</groupId>
+ <artifactId>picocli</artifactId>
+ <version>4.6.1</version>
+ <packaging>jar</packaging>
+ <name>picocli - a mighty tiny Command Line Interface</name>
+ <description>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.</description>
+ <url>http://picocli.info</url>
+ <inceptionYear>2017</inceptionYear>
+ <licenses>
+ <license>
+ <name>The Apache Software License, version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <developers>
+ <developer>
+ <id>rpopma</id>
+ <name>Remko Popma</name>
+ <email>rpopma@apache.org</email>
+ </developer>
+ </developers>
+ <scm>
+ <url>https://github.com/remkop/picocli/tree/master</url>
+ <connection>scm:git:https://github.com/remkop/picocli.git</connection>
+ <developerConnection>scm:git:ssh://github.com:remkop/picocli.git</developerConnection>
+ </scm>
+</project>
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 <didiksupriadi41@gmail.com> - 4.6.1-1 +- First picocli package @@ -0,0 +1 @@ +SHA512 (picocli-4.6.1.tar.gz) = e2c6c6171c3ec9cbe35e7034e119dfe922993c9e7b8d81ea94faeb8b24c9c4c26023be1edb5d67041119c4bf73077d522fbe711e8c1af788063663e2bb06ab1f |