[eclipse-m2e-core] Add javadoc subpackage

Gerard Ryan galileo at fedoraproject.org
Wed Jan 23 19:39:26 UTC 2013


commit 45905b0e41c5c24a93385b298279951a99c386d5
Author: Mikolaj Izdebski <mizdebsk at redhat.com>
Date:   Tue Dec 11 14:50:31 2012 +0100

    Add javadoc subpackage

 eclipse-m2e-core.spec |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/eclipse-m2e-core.spec b/eclipse-m2e-core.spec
index 5bd2ce9..1eecb2d 100644
--- a/eclipse-m2e-core.spec
+++ b/eclipse-m2e-core.spec
@@ -176,6 +176,13 @@ additional Maven plugins (e.g. Android, web development, etc.), and facilitates
 the distribution of those extensions through the m2e marketplace.
 
 
+%package javadoc
+Summary:        API documentation for %{name}
+
+%description javadoc
+This package contains %{summary}.
+
+
 %prep
 %setup -q -n %{release_dir}
 
@@ -246,11 +253,12 @@ find -name MANIFEST.MF \
 %build
 repo=localrepo
 mvn-rpmbuild -f m2e-maven-runtime/pom.xml install -Dmaven.local.repo=${repo} -X -Dmaven.local.debug=true
-mvn-rpmbuild install -Dmaven.local.repo=${repo} -X -Dmaven.local.debug=true
+mvn-rpmbuild install javadoc:aggregate -Dmaven.local.repo=${repo} -X -Dmaven.local.debug=true
 
 %install
 install -d -m 0755 %{buildroot}%{install_loc_plugins}
 install -d -m 0755 %{buildroot}%{install_loc_features}
+install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
 
 # Install normal plugins as packed jars
 for dir in `find -name target|grep -v feature|grep -v m2e-maven-runtime|grep -v lifecyclemapping`; do
@@ -367,12 +375,19 @@ popd
 unzip -q -d %{buildroot}%{install_loc_features}/org.eclipse.m2e.feature-%{version}-SNAPSHOT \
   org.eclipse.m2e.feature/target/org.eclipse.m2e.feature-%{version}-SNAPSHOT.jar
 
+# Javadocs
+cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
 
 %files
 %{eclipse_dropins}/%{name}
 %doc org.eclipse.m2e.core/about.html
 %doc org.eclipse.m2e.feature/epl-v10.html
 
+%files javadoc
+%{_javadocdir}/%{name}
+%doc org.eclipse.m2e.feature/epl-v10.html
+
 
 %changelog
 * Tue Dec 11 2012 Gerard Ryan <galileo at fedoraproject.org> - 1.2.0-0.2


More information about the scm-commits mailing list