|
|
52fb2b |
|
|
|
52fb2b |
Name: args4j
|
|
|
52fb2b |
%global tools_name %{name}-tools
|
|
|
52fb2b |
%global site_name %{name}-site
|
|
|
52fb2b |
|
|
|
52fb2b |
Version: 2.0.16
|
|
|
52fb2b |
Release: 11%{?dist}
|
|
|
52fb2b |
Summary: Small Java lib that makes it easy to parse command line options/args in CUI apps
|
|
|
52fb2b |
License: MIT and BSD
|
|
|
52fb2b |
Group: Development/Libraries
|
|
|
52fb2b |
# http://args4j.java.net/
|
|
|
52fb2b |
URL: http://%{name}.java.net/
|
|
|
52fb2b |
# Upload Your personal ssh key to java.net (otherwise the export fails)
|
|
|
52fb2b |
# svn export https://svn.java.net/svn/args4j~svn/tags/args4j-site-2_0_16 args4j-2.0.16
|
|
|
52fb2b |
# tar caf args4j-2.0.16.tar.xz args4j-2.0.16
|
|
|
52fb2b |
Source0: %{name}-%{version}.tar.xz
|
|
|
52fb2b |
|
|
|
52fb2b |
Patch0: %{name}-wagon-svn-removal.patch
|
|
|
52fb2b |
Patch1: %{name}-ant-removal.patch
|
|
|
52fb2b |
Patch2: %{name}-osgi.patch
|
|
|
52fb2b |
# https://github.com/kohsuke/args4j/commit/fc85e79 + some additions
|
|
|
52fb2b |
Patch3: %{name}-srcencoding.patch
|
|
|
52fb2b |
|
|
|
52fb2b |
BuildArch: noarch
|
|
|
52fb2b |
|
|
|
52fb2b |
BuildRequires: java-devel
|
|
|
52fb2b |
BuildRequires: jpackage-utils
|
|
|
52fb2b |
BuildRequires: maven-local
|
|
|
52fb2b |
BuildRequires: maven-surefire-provider-junit
|
|
|
52fb2b |
|
|
|
52fb2b |
Requires: java
|
|
|
52fb2b |
Requires: jpackage-utils
|
|
|
52fb2b |
|
|
|
52fb2b |
%description
|
|
|
52fb2b |
args4j is a small Java class library that makes it easy
|
|
|
52fb2b |
to parse command line options/arguments in your CUI application.
|
|
|
52fb2b |
- It makes the command line parsing very easy by using annotations.
|
|
|
52fb2b |
- You can generate the usage screen very easily.
|
|
|
52fb2b |
- You can generate HTML/XML that lists all options for your documentation.
|
|
|
52fb2b |
- Fully supports localization.
|
|
|
52fb2b |
- It is designed to parse javac like options (as opposed to GNU-style
|
|
|
52fb2b |
where ls -lR is considered to have two options l and R.)
|
|
|
52fb2b |
|
|
|
52fb2b |
args4j-tools are development-time tools for generating additional artifacits.
|
|
|
52fb2b |
|
|
|
52fb2b |
%package javadoc
|
|
|
52fb2b |
Summary: API documentation for %{name}
|
|
|
52fb2b |
Group: Documentation
|
|
|
52fb2b |
Requires: jpackage-utils
|
|
|
52fb2b |
|
|
|
52fb2b |
%description javadoc
|
|
|
52fb2b |
This package contains the API documentation for %{name}.
|
|
|
52fb2b |
|
|
|
52fb2b |
%prep
|
|
|
52fb2b |
%setup -q
|
|
|
52fb2b |
|
|
|
52fb2b |
%patch0 -p1
|
|
|
52fb2b |
%patch1 -p1
|
|
|
52fb2b |
%patch2 -p1
|
|
|
52fb2b |
%patch3 -p1
|
|
|
52fb2b |
|
|
|
52fb2b |
# removing classpath addition
|
|
|
52fb2b |
sed -i 's/<addClasspath>true/<addClasspath>false/g' %{tools_name}/pom.xml
|
|
|
52fb2b |
|
|
|
52fb2b |
# removing bundled stuff
|
|
|
52fb2b |
rm -rf repo
|
|
|
52fb2b |
rm -rf www
|
|
|
52fb2b |
rm -rf %{name}/lib
|
|
|
52fb2b |
|
|
|
52fb2b |
%build
|
|
|
52fb2b |
mvn-rpmbuild install javadoc:aggregate
|
|
|
52fb2b |
|
|
|
52fb2b |
%install
|
|
|
52fb2b |
# jars
|
|
|
52fb2b |
install -d -m 755 %{buildroot}%{_javadir}
|
|
|
52fb2b |
install -p -m 644 %{name}/target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
|
52fb2b |
install -p -m 644 %{tools_name}/target/%{tools_name}-%{version}.jar %{buildroot}%{_javadir}/%{tools_name}.jar
|
|
|
52fb2b |
|
|
|
52fb2b |
# pom
|
|
|
52fb2b |
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
|
|
52fb2b |
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{site_name}.pom
|
|
|
52fb2b |
install -pm 644 %{name}/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|
|
52fb2b |
install -pm 644 %{tools_name}/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{tools_name}.pom
|
|
|
52fb2b |
|
|
|
52fb2b |
%add_maven_depmap JPP-%{site_name}.pom
|
|
|
52fb2b |
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
|
|
52fb2b |
%add_maven_depmap JPP-%{tools_name}.pom %{tools_name}.jar
|
|
|
52fb2b |
|
|
|
52fb2b |
# javadoc
|
|
|
52fb2b |
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
52fb2b |
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
|
|
52fb2b |
|
|
|
52fb2b |
%files
|
|
|
52fb2b |
%doc %{name}/LICENSE.txt
|
|
|
52fb2b |
%{_javadir}/%{name}.jar
|
|
|
52fb2b |
%{_javadir}/%{tools_name}.jar
|
|
|
52fb2b |
%{_mavenpomdir}/JPP-%{site_name}.pom
|
|
|
52fb2b |
%{_mavenpomdir}/JPP-%{name}.pom
|
|
|
52fb2b |
%{_mavenpomdir}/JPP-%{tools_name}.pom
|
|
|
52fb2b |
%{_mavendepmapfragdir}/%{name}
|
|
|
52fb2b |
|
|
|
52fb2b |
%files javadoc
|
|
|
52fb2b |
%doc %{name}/LICENSE.txt
|
|
|
52fb2b |
%doc %{_javadocdir}/%{name}
|
|
|
52fb2b |
|
|
|
52fb2b |
%changelog
|
|
|
52fb2b |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.16-11
|
|
|
52fb2b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
52fb2b |
|
|
|
52fb2b |
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.0.16-10
|
|
|
52fb2b |
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
|
|
52fb2b |
- Replace maven BuildRequires with maven-local
|
|
|
52fb2b |
|
|
|
52fb2b |
* Thu Dec 13 2012 Roland Grunberg <rgrunber@redhat.com> - 2.0.16-9
|
|
|
52fb2b |
- Update to conform with latest Java packaging guidelines.
|
|
|
52fb2b |
|
|
|
52fb2b |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.16-8
|
|
|
52fb2b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
52fb2b |
|
|
|
52fb2b |
* Tue Jan 31 2012 Ville Skyttä <ville.skytta@iki.fi> - 2.0.16-7
|
|
|
52fb2b |
- Apply upstream source encoding patch to fix build with java 1.7.
|
|
|
52fb2b |
|
|
|
52fb2b |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.16-5
|
|
|
52fb2b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
52fb2b |
|
|
|
52fb2b |
* Mon Jun 13 2011 Jaromir Capik <jcapik@redhat.com> - 2.0.16-4
|
|
|
52fb2b |
- OSGi metadata generated
|
|
|
52fb2b |
|
|
|
52fb2b |
* Mon May 30 2011 Jaromir Capik <jcapik@redhat.com> - 2.0.16-3
|
|
|
52fb2b |
- Removal of bundled stuff in args4j/lib
|
|
|
52fb2b |
|
|
|
52fb2b |
* Wed May 25 2011 Jaromir Capik <jcapik@redhat.com> - 2.0.16-2
|
|
|
52fb2b |
- Removal of unused ant dependency
|
|
|
52fb2b |
|
|
|
52fb2b |
* Tue May 24 2011 Jaromir Capik <jcapik@redhat.com> - 2.0.16-1
|
|
|
52fb2b |
- Initial version of the package
|