%global pkg_name apache-commons-cli %{?scl:%scl_package %{pkg_name}} %{?java_common_find_provides_and_requires} %global base_name cli %global short_name commons-%{base_name} Name: %{?scl_prefix}%{pkg_name} Version: 1.2 Release: 13.12%{?dist} Summary: Command Line Interface Library for Java License: ASL 2.0 URL: http://commons.apache.org/%{base_name}/ Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz BuildArch: noarch BuildRequires: %{?scl_prefix}javapackages-tools BuildRequires: %{?scl_prefix}maven-local BuildRequires: %{?scl_prefix_maven}apache-commons-parent >= 26-7 # This should go away with F-17 %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 %{pkg_name} # This should go away with F-17 %description javadoc This package contains the API documentation for %{pkg_name}. %prep %setup -q -n %{short_name}-%{version}-src %{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"} set -e -x # Compatibility links %mvn_alias "%{short_name}:%{short_name}" "org.apache.commons:%{short_name}" %mvn_file :commons-cli %{short_name} %{pkg_name} %{?scl:EOF} %build %{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"} set -e -x %mvn_build %{?scl:EOF} %install %{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"} set -e -x %mvn_install %{?scl:EOF} %files -f .mfiles %doc LICENSE.txt NOTICE.txt README.txt RELEASE-NOTES.txt %files javadoc -f .mfiles-javadoc %doc LICENSE.txt NOTICE.txt %changelog * Tue Jan 13 2015 Michael Simacek - 1.2-13.12 - Mass rebuild 2015-01-13 * Fri Jan 09 2015 Michal Srb - 1.2-13.11 - Mass rebuild 2015-01-09 * Tue Dec 16 2014 Mikolaj Izdebski - 1.2-13.10 - Migrate requires and build-requires to rh-java-common * Mon Dec 15 2014 Mikolaj Izdebski - 1.2-13.9 - Mass rebuild 2014-12-15 * Mon Dec 15 2014 Mikolaj Izdebski - 1.2-13.8 - Rebuild for rh-java-common collection * Mon May 26 2014 Mikolaj Izdebski - 1.2-13.7 - Mass rebuild 2014-05-26 * Wed Feb 19 2014 Mikolaj Izdebski - 1.2-13.6 - Mass rebuild 2014-02-19 * Tue Feb 18 2014 Mikolaj Izdebski - 1.2-13.5 - Mass rebuild 2014-02-18 * Tue Feb 18 2014 Mikolaj Izdebski - 1.2-13.4 - Remove requires on java * Mon Feb 17 2014 Mikolaj Izdebski - 1.2-13.3 - SCL-ize build-requires * Thu Feb 13 2014 Mikolaj Izdebski - 1.2-13.2 - Rebuild to regenerate auto-requires * Tue Feb 11 2014 Mikolaj Izdebski - 1.2-13.1 - First maven30 software collection build * Fri Dec 27 2013 Daniel Mach - 1.2-13 - Mass rebuild 2013-12-27 * Fri Sep 20 2013 Mikolaj Izdebski - 1.2-12 - Add BuildRequires on apache-commons-parent >= 26-7 * Thu Aug 22 2013 Michal Srb - 1.2-11 - Migrate away from mvn-rpmbuild (Resolves: #997473) * Fri Jun 28 2013 Mikolaj Izdebski - 1.2-10 - Rebuild to regenerate API documentation - Resolves: CVE-2013-1571 * 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