94 lines
3.0 KiB
RPMSpec
94 lines
3.0 KiB
RPMSpec
%global base_name cli
|
|
%global short_name commons-%{base_name}
|
|
|
|
Name: apache-%{short_name}
|
|
Version: 1.2
|
|
Release: 7%{?dist}
|
|
Summary: Command Line Interface Library for Java
|
|
Group: Development/Libraries
|
|
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: java-devel >= 1:1.6.0
|
|
BuildRequires: jpackage-utils
|
|
BuildRequires: apache-commons-parent
|
|
|
|
Requires: java >= 1:1.6.0
|
|
Requires: jpackage-utils
|
|
|
|
# This should go away with F-17
|
|
Provides: jakarta-%{short_name} = 0:%{version}-%{release}
|
|
Obsoletes: jakarta-%{short_name} < 0:1.1-6
|
|
|
|
%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}
|
|
Group: Documentation
|
|
Requires: jpackage-utils
|
|
# This should go away with F-17
|
|
Obsoletes: jakarta-%{short_name}-javadoc < 0:1.1-6
|
|
|
|
%description javadoc
|
|
This package contains the API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{short_name}-%{version}-src
|
|
|
|
%build
|
|
mvn-rpmbuild install javadoc:javadoc
|
|
|
|
%install
|
|
# jars
|
|
install -d -m 0755 %{buildroot}%{_javadir}
|
|
install -pm 644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
(cd %{buildroot}%{_javadir} && for jar in *%{name}*; do ln -sf ${jar} `echo $jar| sed "s|apache-||g"`; done)
|
|
|
|
# pom
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
|
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "%{short_name}:%{short_name}"
|
|
|
|
# javadoc
|
|
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
|
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/
|
|
|
|
%files
|
|
%doc LICENSE.txt NOTICE.txt README.txt RELEASE-NOTES.txt
|
|
%{_javadir}/*
|
|
%{_mavenpomdir}/*
|
|
%{_mavendepmapfragdir}/*
|
|
|
|
%files javadoc
|
|
%doc LICENSE.txt
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
%changelog
|
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Wed Nov 30 2011 Alexander Kurtakov <akurtako@redhat.com> 1.2-5
|
|
- Build with maven 3.
|
|
- Adapt to current guidelines.
|
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Tue Nov 9 2010 Chris Spike <chris.spike@arcor.de> 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 <chris.spike@arcor.de> 1.2-2
|
|
- Removed Epoch
|
|
|
|
* Sun Oct 3 2010 Chris Spike <chris.spike@arcor.de> 1.2-1
|
|
- Rename and rebase from jakarta-commons-cli
|