%global short_name commons-cli Name: apache-%{short_name} Version: 1.3.1 Release: 6%{?dist} Summary: Command Line Interface Library for Java License: ASL 2.0 URL: http://commons.apache.org/cli/ BuildArch: noarch Source0: http://www.apache.org/dist/commons/cli/source/%{short_name}-%{version}-src.tar.gz # workaround for https://issues.apache.org/jira/browse/CLI-253 Patch0: CLI-253-workaround.patch BuildRequires: maven-local BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.commons:commons-parent:pom:) BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) %description The CLI library provides a simple and easy to use API for working with the command line arguments and options. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n %{short_name}-%{version}-src %patch0 -p1 # Compatibility links %mvn_alias "%{short_name}:%{short_name}" "org.apache.commons:%{short_name}" %mvn_file :commons-cli %{short_name} %{name} %build %mvn_build %install %mvn_install %files -f .mfiles %doc LICENSE.txt NOTICE.txt README.md RELEASE-NOTES.txt %files javadoc -f .mfiles-javadoc %doc LICENSE.txt NOTICE.txt %changelog * Fri Feb 10 2017 Fedora Release Engineering - 1.3.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 01 2017 Michael Simacek - 1.3.1-5 - Remove BR on jacoco * Wed Jun 15 2016 Mikolaj Izdebski - 1.3.1-4 - Regenerate build-requires * Wed Feb 03 2016 Fedora Release Engineering - 1.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Jun 23 2015 Michal Srb - 1.3.1-2 - Add workaround for CLI-253 * Wed Jun 17 2015 Michal Srb - 1.3.1-1 - Update to upstream version 1.3.1 * Wed Jun 17 2015 Fedora Release Engineering - 1.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Jun 3 2015 Mikolaj Izdebski - 1.3-1 - Update to upstream version 1.3 * Sat Jun 07 2014 Fedora Release Engineering - 1.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Mar 04 2014 Stanislav Ochotnicky - 1.2-12 - Use Requires: java-headless rebuild (#1067528) * Mon Aug 05 2013 Mat Booth - 1.2-11 - Update for newer guidelines - Drop ancient obsoletes/provides on old jakarta name * Sat Aug 03 2013 Fedora Release Engineering - 1.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Feb 19 2013 Mat Booth - 1.2-9 - Add missing maven-local BuildRequires * Wed Feb 13 2013 Fedora Release Engineering - 1.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jul 18 2012 Fedora Release Engineering - 1.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jan 12 2012 Fedora Release Engineering - 1.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Nov 30 2011 Alexander Kurtakov 1.2-5 - Build with maven 3. - Adapt to current guidelines. * Mon Feb 07 2011 Fedora Release Engineering - 1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Nov 9 2010 Chris Spike 1.2-3 - Removed maven* BRs in favour of apache-commons-parent - Added deprecated groupId to depmap for compatibility reasons * Mon Oct 18 2010 Chris Spike 1.2-2 - Removed Epoch * Sun Oct 3 2010 Chris Spike 1.2-1 - Rename and rebase from jakarta-commons-cli