Update for newer guidelines
- Drop ancient obsoletes/provides on old jakarta name
This commit is contained in:
parent
c912e2471e
commit
7281a2e828
@ -1,14 +1,13 @@
|
|||||||
%global base_name cli
|
%global short_name commons-cli
|
||||||
%global short_name commons-%{base_name}
|
|
||||||
|
|
||||||
Name: apache-%{short_name}
|
Name: apache-%{short_name}
|
||||||
Version: 1.2
|
Version: 1.2
|
||||||
Release: 10%{?dist}
|
Release: 11%{?dist}
|
||||||
Summary: Command Line Interface Library for Java
|
Summary: Command Line Interface Library for Java
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: http://commons.apache.org/%{base_name}/
|
URL: http://commons.apache.org/cli/
|
||||||
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
Source0: http://www.apache.org/dist/commons/cli/source/%{short_name}-%{version}-src.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: java-devel >= 1:1.6.0
|
BuildRequires: java-devel >= 1:1.6.0
|
||||||
@ -18,10 +17,6 @@ BuildRequires: maven-local
|
|||||||
Requires: java >= 1:1.6.0
|
Requires: java >= 1:1.6.0
|
||||||
Requires: jpackage-utils
|
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
|
%description
|
||||||
The CLI library provides a simple and easy to use API for working with the
|
The CLI library provides a simple and easy to use API for working with the
|
||||||
command line arguments and options.
|
command line arguments and options.
|
||||||
@ -30,8 +25,6 @@ command line arguments and options.
|
|||||||
Summary: Javadoc for %{name}
|
Summary: Javadoc for %{name}
|
||||||
Group: Documentation
|
Group: Documentation
|
||||||
Requires: jpackage-utils
|
Requires: jpackage-utils
|
||||||
# This should go away with F-17
|
|
||||||
Obsoletes: jakarta-%{short_name}-javadoc < 0:1.1-6
|
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
This package contains the API documentation for %{name}.
|
This package contains the API documentation for %{name}.
|
||||||
@ -39,36 +32,27 @@ This package contains the API documentation for %{name}.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{short_name}-%{version}-src
|
%setup -q -n %{short_name}-%{version}-src
|
||||||
|
|
||||||
|
# Compatibility links
|
||||||
|
%mvn_alias "%{short_name}:%{short_name}" "org.apache.commons:%{short_name}"
|
||||||
|
%mvn_file :commons-cli %{short_name} %{name}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mvn-rpmbuild install javadoc:javadoc
|
%mvn_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# jars
|
%mvn_install
|
||||||
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
|
%files -f .mfiles
|
||||||
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 "org.apache.commons:%{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
|
%doc LICENSE.txt NOTICE.txt README.txt RELEASE-NOTES.txt
|
||||||
%{_javadir}/*
|
|
||||||
%{_mavenpomdir}/*
|
|
||||||
%{_mavendepmapfragdir}/*
|
|
||||||
|
|
||||||
%files javadoc
|
|
||||||
%doc LICENSE.txt
|
|
||||||
%{_javadocdir}/%{name}
|
|
||||||
|
|
||||||
|
%files javadoc -f .mfiles-javadoc
|
||||||
|
%doc LICENSE.txt NOTICE.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 05 2013 Mat Booth <fedora@matbooth.co.uk> - 1.2-11
|
||||||
|
- Update for newer guidelines
|
||||||
|
- Drop ancient obsoletes/provides on old jakarta name
|
||||||
|
|
||||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-10
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-10
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user