Blame SPECS/args4j.spec

825a53
Name:             args4j
825a53
Version:          2.0.16
825a53
Release:          13%{?dist}
825a53
Summary:          Small Java lib that makes it easy to parse command line options/args in CUI apps
825a53
License:          MIT and BSD
825a53
# http://args4j.java.net/
825a53
URL:              http://%{name}.java.net/
825a53
# Upload Your personal ssh key to java.net (otherwise the export fails)
825a53
# svn export https://svn.java.net/svn/args4j~svn/tags/args4j-site-2_0_16 args4j-2.0.16
825a53
# tar caf args4j-2.0.16.tar.xz args4j-2.0.16
825a53
Source0:          %{name}-%{version}.tar.xz
825a53
825a53
Patch0:           %{name}-wagon-svn-removal.patch
825a53
Patch1:           %{name}-ant-removal.patch
825a53
Patch2:           %{name}-osgi.patch
825a53
# https://github.com/kohsuke/args4j/commit/fc85e79 + some additions
825a53
Patch3:           %{name}-srcencoding.patch
825a53
825a53
BuildArch:        noarch
825a53
825a53
BuildRequires:    maven-local
825a53
825a53
%description
825a53
args4j is a small Java class library that makes it easy
825a53
to parse command line options/arguments in your CUI application.
825a53
- It makes the command line parsing very easy by using annotations.
825a53
- You can generate the usage screen very easily.
825a53
- You can generate HTML/XML that lists all options for your documentation.
825a53
- Fully supports localization.
825a53
- It is designed to parse javac like options (as opposed to GNU-style
825a53
  where ls -lR is considered to have two options l and R.)
825a53
825a53
args4j-tools are development-time tools for generating additional artifacits.
825a53
825a53
%package javadoc
825a53
Summary:          API documentation for %{name}
825a53
825a53
%description javadoc
825a53
This package contains the API documentation for %{name}.
825a53
825a53
%prep
825a53
%setup -q
825a53
825a53
%patch0 -p1
825a53
%patch1 -p1
825a53
%patch2 -p1
825a53
%patch3 -p1
825a53
825a53
# removing classpath addition
825a53
sed -i 's/<addClasspath>true/<addClasspath>false/g' %{name}-tools/pom.xml
825a53
825a53
# removing bundled stuff
825a53
rm -rf repo
825a53
rm -rf www
825a53
rm -rf %{name}/lib
825a53
825a53
# Remove system-scoped dependency on tools.jar
825a53
%pom_remove_dep jdk:tools args4j-tools
825a53
%pom_add_dep com.sun:tools args4j-tools
825a53
825a53
%mvn_file ":{*}" @1
825a53
825a53
%build
825a53
%mvn_build
825a53
825a53
%install
825a53
%mvn_install
825a53
825a53
%files -f .mfiles
825a53
%doc %{name}/LICENSE.txt
825a53
825a53
%files javadoc -f .mfiles-javadoc
825a53
%doc %{name}/LICENSE.txt
825a53
825a53
%changelog
825a53
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.0.16-13
825a53
- Mass rebuild 2013-12-27
825a53
825a53
* Wed Nov 13 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.16-12
825a53
- Build with XMvn
825a53
- Remove system-scoped dependency on tools.jar
825a53
- Update to current packaging guidelines
825a53
825a53
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.16-11
825a53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
825a53
825a53
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.0.16-10
825a53
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
825a53
- Replace maven BuildRequires with maven-local
825a53
825a53
* Thu Dec 13 2012 Roland Grunberg <rgrunber@redhat.com> - 2.0.16-9
825a53
- Update to conform with latest Java packaging guidelines.
825a53
825a53
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.16-8
825a53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
825a53
825a53
* Tue Jan 31 2012 Ville Skyttä <ville.skytta@iki.fi> - 2.0.16-7
825a53
- Apply upstream source encoding patch to fix build with java 1.7.
825a53
825a53
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.16-5
825a53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
825a53
825a53
* Mon Jun 13 2011 Jaromir Capik <jcapik@redhat.com> - 2.0.16-4
825a53
- OSGi metadata generated
825a53
825a53
* Mon May 30 2011 Jaromir Capik <jcapik@redhat.com> - 2.0.16-3
825a53
- Removal of bundled stuff in args4j/lib
825a53
825a53
* Wed May 25 2011 Jaromir Capik <jcapik@redhat.com> - 2.0.16-2
825a53
- Removal of unused ant dependency
825a53
825a53
* Tue May 24 2011 Jaromir Capik <jcapik@redhat.com> - 2.0.16-1
825a53
- Initial version of the package