47 lines
1.5 KiB
RPMSpec
47 lines
1.5 KiB
RPMSpec
Name: jopt-simple
|
|
Version: 5.0.4
|
|
Release: 1
|
|
Summary: A Java command line parser
|
|
License: MIT
|
|
URL: http://jopt-simple.github.io/jopt-simple
|
|
BuildArch: noarch
|
|
Source0: https://github.com/jopt-simple/jopt-simple/archive/jopt-simple-%{version}.tar.gz
|
|
BuildRequires: maven-local mvn(org.apache.felix:maven-bundle-plugin)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
|
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
|
|
%description
|
|
JOpt Simple is a Java library for parsing command line options, such as those
|
|
you might pass to an invocation of javac.
|
|
|
|
%package help
|
|
Summary: Javadoc for %{name}
|
|
Provides: %{name}-javadoc = %{version}-%{release}
|
|
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
|
%description help
|
|
This package contains the API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n jopt-simple-jopt-simple-%{version}
|
|
%pom_xpath_remove "pom:build/pom:extensions"
|
|
%pom_remove_dep org.infinitest:continuous-testing-toolkit
|
|
%pom_remove_plugin org.pitest:pitest-maven
|
|
%pom_remove_plugin org.codehaus.mojo:cobertura-maven-plugin
|
|
%pom_remove_plugin org.apache.maven.plugins:maven-pmd-plugin
|
|
%pom_remove_plugin :animal-sniffer-maven-plugin
|
|
|
|
%build
|
|
%mvn_build -f
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE.txt
|
|
|
|
%files help -f .mfiles-javadoc
|
|
%license LICENSE.txt
|
|
|
|
%changelog
|
|
* Mon Aug 24 2020 liyanan <liyanan32@huawei.com> - 5.0.4-1
|
|
- package init
|