|
|
1a3c4c |
%{?scl:%scl_package args4j}
|
|
|
1a3c4c |
%{!?scl:%global pkg_name %{name}}
|
|
|
36807a |
|
|
|
36807a |
%{?java_common_find_provides_and_requires}
|
|
|
1a3c4c |
|
|
|
1a3c4c |
Name: %{?scl_prefix}args4j
|
|
|
36807a |
Version: 2.0.30
|
|
|
36807a |
Release: 3%{?dist}
|
|
|
1a3c4c |
Summary: Java command line arguments parser
|
|
|
1a3c4c |
License: MIT
|
|
|
1a3c4c |
URL: http://args4j.kohsuke.org/
|
|
|
1a3c4c |
Source0: https://github.com/kohsuke/%{pkg_name}/archive/%{pkg_name}-site-%{version}.tar.gz
|
|
|
1a3c4c |
|
|
|
1a3c4c |
BuildArch: noarch
|
|
|
1a3c4c |
|
|
|
36807a |
BuildRequires: %{?scl_prefix_java_common}maven-local
|
|
|
36807a |
BuildRequires: %{?scl_prefix_java_common}mvn(com.sun:tools)
|
|
|
36807a |
BuildRequires: %{?scl_prefix_java_common}mvn(junit:junit)
|
|
|
36807a |
BuildRequires: %{?scl_prefix_maven}mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
36807a |
BuildRequires: %{?scl_prefix_maven}mvn(org.apache.maven.plugins:maven-shade-plugin)
|
|
|
36807a |
BuildRequires: %{?scl_prefix_maven}mvn(org.apache.maven.plugins:maven-site-plugin)
|
|
|
1a3c4c |
|
|
|
1a3c4c |
%description
|
|
|
1a3c4c |
args4j is a small Java class library that makes it easy
|
|
|
1a3c4c |
to parse command line options/arguments in your CUI application.
|
|
|
1a3c4c |
- It makes the command line parsing very easy by using annotations
|
|
|
1a3c4c |
- You can generate the usage screen very easily
|
|
|
1a3c4c |
- You can generate HTML/XML that lists all options for your documentation
|
|
|
1a3c4c |
- Fully supports localization
|
|
|
1a3c4c |
- It is designed to parse javac like options (as opposed to GNU-style
|
|
|
1a3c4c |
where ls -lR is considered to have two options l and R)
|
|
|
1a3c4c |
|
|
|
36807a |
%package tools
|
|
|
36807a |
Summary: Development-time tool for generating additional artifacits
|
|
|
36807a |
|
|
|
36807a |
%description tools
|
|
|
36807a |
This package contains args4j development-time tool for generating
|
|
|
36807a |
additional artifacits.
|
|
|
36807a |
|
|
|
36807a |
%package parent
|
|
|
36807a |
Summary: args4j parent POM
|
|
|
36807a |
|
|
|
36807a |
%description parent
|
|
|
36807a |
This package contains parent POM for args4j project.
|
|
|
36807a |
|
|
|
1a3c4c |
%package javadoc
|
|
|
36807a |
Summary: API documentation for %{pkg_name}
|
|
|
1a3c4c |
|
|
|
1a3c4c |
%description javadoc
|
|
|
36807a |
This package contains the API documentation for %{pkg_name}.
|
|
|
1a3c4c |
|
|
|
1a3c4c |
%prep
|
|
|
1a3c4c |
%setup -q -n %{pkg_name}-%{pkg_name}-site-%{version}
|
|
|
36807a |
|
|
|
1a3c4c |
# removing classpath addition
|
|
|
1a3c4c |
sed -i 's/<addClasspath>true/<addClasspath>false/g' %{pkg_name}-tools/pom.xml
|
|
|
1a3c4c |
|
|
|
1a3c4c |
# fix ant group id
|
|
|
1a3c4c |
sed -i 's/<groupId>ant/<groupId>org.apache.ant/g' %{pkg_name}-tools/pom.xml
|
|
|
1a3c4c |
|
|
|
1a3c4c |
# removing bundled stuff
|
|
|
1a3c4c |
find -name '*.class' -exec rm -f '{}' \;
|
|
|
1a3c4c |
find -name '*.jar' -exec rm -f '{}' \;
|
|
|
1a3c4c |
|
|
|
36807a |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
|
1a3c4c |
# XMvn cannot generate requires on dependecies with scope "system"
|
|
|
1a3c4c |
%pom_xpath_remove "pom:profile[pom:id[text()='jdk-tools-jar']]" %{pkg_name}-tools
|
|
|
1a3c4c |
%pom_add_dep com.sun:tools %{pkg_name}-tools
|
|
|
1a3c4c |
|
|
|
1a3c4c |
# we don't need these now
|
|
|
1a3c4c |
%pom_disable_module args4j-maven-plugin
|
|
|
1a3c4c |
%pom_disable_module args4j-maven-plugin-example
|
|
|
36807a |
|
|
|
36807a |
# Avoid koshuke-pom and mockito
|
|
|
36807a |
%pom_remove_dep org.mockito:mockito-all %{pkg_name}-tools
|
|
|
1a3c4c |
%pom_remove_parent
|
|
|
1a3c4c |
|
|
|
36807a |
# put args4j-tools and parent POM to separate subpackages
|
|
|
36807a |
%mvn_package :args4j-tools::{}: %{pkg_name}-tools
|
|
|
36807a |
%mvn_package :args4j-site::{}: %{pkg_name}-parent
|
|
|
36807a |
|
|
|
1a3c4c |
# install also compat symlinks
|
|
|
1a3c4c |
%mvn_file ":{*}" %{pkg_name}/@1 @1
|
|
|
1a3c4c |
%{?scl:EOF}
|
|
|
1a3c4c |
|
|
|
1a3c4c |
%build
|
|
|
36807a |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
|
36807a |
%mvn_build -- -Dmaven.test.skip=true
|
|
|
1a3c4c |
%{?scl:EOF}
|
|
|
1a3c4c |
|
|
|
1a3c4c |
%install
|
|
|
36807a |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
|
1a3c4c |
%mvn_install
|
|
|
1a3c4c |
%{?scl:EOF}
|
|
|
1a3c4c |
|
|
|
1a3c4c |
%files -f .mfiles
|
|
|
1a3c4c |
%dir %{_javadir}/%{pkg_name}
|
|
|
1a3c4c |
%doc %{pkg_name}/LICENSE.txt
|
|
|
1a3c4c |
|
|
|
36807a |
%files tools -f .mfiles-%{pkg_name}-tools
|
|
|
36807a |
|
|
|
36807a |
%files parent -f .mfiles-%{pkg_name}-parent
|
|
|
36807a |
%doc %{pkg_name}/LICENSE.txt
|
|
|
36807a |
|
|
|
1a3c4c |
%files javadoc -f .mfiles-javadoc
|
|
|
1a3c4c |
%doc %{pkg_name}/LICENSE.txt
|
|
|
1a3c4c |
|
|
|
1a3c4c |
%changelog
|
|
|
36807a |
* Thu Jan 15 2015 Roland Grunberg <rgrunber@redhat.com> - 2.0.30-3
|
|
|
36807a |
- SCL-ize.
|
|
|
36807a |
|
|
|
36807a |
* Mon Sep 22 2014 Michal Srb <msrb@redhat.com> - 2.0.30-2
|
|
|
36807a |
- Move args4j-tools and parent POM into subpackages (Resolves: #1144991)
|
|
|
36807a |
|
|
|
36807a |
* Mon Sep 01 2014 Michal Srb <msrb@redhat.com> - 2.0.30-1
|
|
|
36807a |
- Update to upstream version 2.0.30
|
|
|
36807a |
|
|
|
36807a |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.28-2
|
|
|
36807a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
36807a |
|
|
|
1a3c4c |
* Mon May 12 2014 Michal Srb <msrb@redhat.com> - 2.0.28-1
|
|
|
1a3c4c |
- Update to upstream version 2.0.28
|
|
|
1a3c4c |
|
|
|
1a3c4c |
* Wed May 07 2014 Michal Srb <msrb@redhat.com> - 2.0.27-1
|
|
|
1a3c4c |
- Update to upstream version 2.0.27
|
|
|
1a3c4c |
|
|
|
1a3c4c |
* Tue May 06 2014 Michal Srb <msrb@redhat.com> - 2.0.26-4
|
|
|
1a3c4c |
- Port to JSR-269
|
|
|
1a3c4c |
|
|
|
1a3c4c |
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0.26-3
|
|
|
1a3c4c |
- Use Requires: java-headless rebuild (#1067528)
|
|
|
1a3c4c |
|
|
|
1a3c4c |
* Thu Feb 20 2014 Michal Srb <msrb@redhat.com> - 2.0.26-2
|
|
|
1a3c4c |
- Adapt to current guidelines
|
|
|
1a3c4c |
|
|
|
1a3c4c |
* Thu Feb 20 2014 Michal Srb <msrb@redhat.com> - 2.0.26-1
|
|
|
1a3c4c |
- Update to latest upstream 2.0.26
|
|
|
1a3c4c |
|
|
|
1a3c4c |
* Sat Aug 10 2013 Mat Booth <fedora@matbooth.co.uk> - 2.0.25-1
|
|
|
1a3c4c |
- Update to latest upstream, fixes #981339
|
|
|
1a3c4c |
|
|
|
1a3c4c |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.23-2
|
|
|
1a3c4c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
1a3c4c |
|
|
|
1a3c4c |
* Thu Jun 27 2013 Mat Booth <fedora@matbooth.co.uk> - 2.0.23-1
|
|
|
1a3c4c |
- Update to latest upstream, fixes #808703
|
|
|
1a3c4c |
- Also drop unneeded patches
|
|
|
1a3c4c |
|
|
|
1a3c4c |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.16-11
|
|
|
1a3c4c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
1a3c4c |
|
|
|
1a3c4c |
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.0.16-10
|
|
|
1a3c4c |
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
|
|
1a3c4c |
- Replace maven BuildRequires with maven-local
|
|
|
1a3c4c |
|
|
|
1a3c4c |
* Thu Dec 13 2012 Roland Grunberg <rgrunber@redhat.com> - 2.0.16-9
|
|
|
1a3c4c |
- Update to conform with latest Java packaging guidelines.
|
|
|
1a3c4c |
|
|
|
1a3c4c |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.16-8
|
|
|
1a3c4c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
1a3c4c |
|
|
|
1a3c4c |
* Tue Jan 31 2012 Ville Skyttä <ville.skytta@iki.fi> - 2.0.16-7
|
|
|
1a3c4c |
- Apply upstream source encoding patch to fix build with java 1.7.
|
|
|
1a3c4c |
|
|
|
1a3c4c |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.16-5
|
|
|
1a3c4c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
1a3c4c |
|
|
|
1a3c4c |
* Mon Jun 13 2011 Jaromir Capik <jcapik@redhat.com> - 2.0.16-4
|
|
|
1a3c4c |
- OSGi metadata generated
|
|
|
1a3c4c |
|
|
|
1a3c4c |
* Mon May 30 2011 Jaromir Capik <jcapik@redhat.com> - 2.0.16-3
|
|
|
1a3c4c |
- Removal of bundled stuff in args4j/lib
|
|
|
1a3c4c |
|
|
|
1a3c4c |
* Wed May 25 2011 Jaromir Capik <jcapik@redhat.com> - 2.0.16-2
|
|
|
1a3c4c |
- Removal of unused ant dependency
|
|
|
1a3c4c |
|
|
|
1a3c4c |
* Tue May 24 2011 Jaromir Capik <jcapik@redhat.com> - 2.0.16-1
|
|
|
1a3c4c |
- Initial version of the package
|