|
|
325e9ed |
%global base_name cli
|
|
|
325e9ed |
%global short_name commons-%{base_name}
|
|
|
325e9ed |
|
|
|
325e9ed |
Name: apache-%{short_name}
|
|
|
325e9ed |
Version: 1.2
|
|
Mat Booth |
31f9aa1 |
Release: 9%{?dist}
|
|
|
325e9ed |
Summary: Command Line Interface Library for Java
|
|
|
325e9ed |
Group: Development/Libraries
|
|
|
325e9ed |
License: ASL 2.0
|
|
|
325e9ed |
URL: http://commons.apache.org/%{base_name}/
|
|
|
325e9ed |
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
|
|
325e9ed |
BuildArch: noarch
|
|
|
325e9ed |
|
|
|
325e9ed |
BuildRequires: java-devel >= 1:1.6.0
|
|
|
325e9ed |
BuildRequires: jpackage-utils
|
|
Mat Booth |
31f9aa1 |
BuildRequires: maven-local
|
|
|
325e9ed |
|
|
|
325e9ed |
Requires: java >= 1:1.6.0
|
|
|
325e9ed |
Requires: jpackage-utils
|
|
|
325e9ed |
|
|
|
325e9ed |
# This should go away with F-17
|
|
|
325e9ed |
Provides: jakarta-%{short_name} = 0:%{version}-%{release}
|
|
|
325e9ed |
Obsoletes: jakarta-%{short_name} < 0:1.1-6
|
|
|
325e9ed |
|
|
|
325e9ed |
%description
|
|
|
325e9ed |
The CLI library provides a simple and easy to use API for working with the
|
|
|
325e9ed |
command line arguments and options.
|
|
|
325e9ed |
|
|
|
325e9ed |
%package javadoc
|
|
|
325e9ed |
Summary: Javadoc for %{name}
|
|
|
325e9ed |
Group: Documentation
|
|
|
325e9ed |
Requires: jpackage-utils
|
|
|
325e9ed |
# This should go away with F-17
|
|
|
325e9ed |
Obsoletes: jakarta-%{short_name}-javadoc < 0:1.1-6
|
|
|
325e9ed |
|
|
|
325e9ed |
%description javadoc
|
|
|
325e9ed |
This package contains the API documentation for %{name}.
|
|
|
325e9ed |
|
|
|
325e9ed |
%prep
|
|
|
325e9ed |
%setup -q -n %{short_name}-%{version}-src
|
|
|
325e9ed |
|
|
|
325e9ed |
%build
|
|
|
15512b5 |
mvn-rpmbuild install javadoc:javadoc
|
|
|
325e9ed |
|
|
|
325e9ed |
%install
|
|
|
325e9ed |
# jars
|
|
|
325e9ed |
install -d -m 0755 %{buildroot}%{_javadir}
|
|
|
15512b5 |
install -pm 644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
|
15512b5 |
(cd %{buildroot}%{_javadir} && for jar in *%{name}*; do ln -sf ${jar} `echo $jar| sed "s|apache-||g"`; done)
|
|
|
325e9ed |
|
|
|
325e9ed |
# pom
|
|
|
325e9ed |
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
|
|
15512b5 |
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|
Mat Booth |
31f9aa1 |
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "org.apache.commons:%{short_name}"
|
|
|
f0f9749 |
|
|
|
325e9ed |
# javadoc
|
|
|
15512b5 |
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
15512b5 |
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/
|
|
|
325e9ed |
|
|
|
325e9ed |
%files
|
|
|
325e9ed |
%doc LICENSE.txt NOTICE.txt README.txt RELEASE-NOTES.txt
|
|
|
325e9ed |
%{_javadir}/*
|
|
|
325e9ed |
%{_mavenpomdir}/*
|
|
|
325e9ed |
%{_mavendepmapfragdir}/*
|
|
|
325e9ed |
|
|
|
325e9ed |
%files javadoc
|
|
|
325e9ed |
%doc LICENSE.txt
|
|
|
325e9ed |
%{_javadocdir}/%{name}
|
|
|
325e9ed |
|
|
|
325e9ed |
|
|
|
325e9ed |
%changelog
|
|
Mat Booth |
31f9aa1 |
* Tue Feb 19 2013 Mat Booth <fedora@matbooth.co.uk> - 1.2-9
|
|
Mat Booth |
31f9aa1 |
- Add missing maven-local BuildRequires
|
|
Mat Booth |
31f9aa1 |
|
|
|
e51c233 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-8
|
|
|
e51c233 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
e51c233 |
|
|
|
9ea3afa |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-7
|
|
|
9ea3afa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
9ea3afa |
|
|
|
01c7fee |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-6
|
|
|
01c7fee |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
01c7fee |
|
|
|
15512b5 |
* Wed Nov 30 2011 Alexander Kurtakov <akurtako@redhat.com> 1.2-5
|
|
|
15512b5 |
- Build with maven 3.
|
|
|
15512b5 |
- Adapt to current guidelines.
|
|
|
15512b5 |
|
|
|
59f2904 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
|
|
|
59f2904 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
59f2904 |
|
|
|
f0f9749 |
* Tue Nov 9 2010 Chris Spike <chris.spike@arcor.de> 1.2-3
|
|
|
f0f9749 |
- Removed maven* BRs in favour of apache-commons-parent
|
|
|
f0f9749 |
- Added deprecated groupId to depmap for compatibility reasons
|
|
|
f0f9749 |
|
|
|
325e9ed |
* Mon Oct 18 2010 Chris Spike <chris.spike@arcor.de> 1.2-2
|
|
|
325e9ed |
- Removed Epoch
|
|
|
325e9ed |
|
|
|
325e9ed |
* Sun Oct 3 2010 Chris Spike <chris.spike@arcor.de> 1.2-1
|
|
|
325e9ed |
- Rename and rebase from jakarta-commons-cli
|