From 67facd1283cf64d3ad0aaa40498bdafa15db09ba Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 6 Aug 2013 13:51:07 +0200 Subject: [PATCH] javadoc: add api docs package Version: 9.2.1002-4 --- postgresql-jdbc.spec | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/postgresql-jdbc.spec b/postgresql-jdbc.spec index e97c76d..6a13d98 100644 --- a/postgresql-jdbc.spec +++ b/postgresql-jdbc.spec @@ -60,6 +60,13 @@ PostgreSQL is an advanced Object-Relational database management system. The postgresql-jdbc package includes the .jar files needed for Java programs to access a PostgreSQL database. +%package javadoc +Summary: API docs for %{name} +Group: Documentation + +%description javadoc +This package contains the API Documentation for %{name}. + %prep %setup -c -q mv -f %{name}-%{upstreamver}.src/* . @@ -79,7 +86,7 @@ export CLASSPATH= # different platforms don't build in the same minute. For now, rely on # upstream to have updated the translations files before packaging. -ant +ant jar publicapi %install install -d $RPM_BUILD_ROOT%{_javadir} @@ -101,13 +108,24 @@ install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}/ install -m 644 JPP-%{name}.pom $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap +install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir} +cp -ra build/publicapi $RPM_BUILD_ROOT%{_javadocdir}/%{name} +install -d build/publicapi docs/%{name} + %files -f .mfiles %doc LICENSE README doc/* %{_javadir}/%{name}2.jar %{_javadir}/%{name}2ee.jar %{_javadir}/%{name}3.jar +%files javadoc +%doc LICENSE +%doc %{_javadocdir}/%{name} + %changelog +* Tue Aug 06 2013 Pavel Raiskup - 9.2.1002-4 +- add javadoc subpackage + * Tue Aug 06 2013 Pavel Raiskup - 9.2.1002-4 - don't use removed macro %%add_to_maven_depmap (#992816) - lint: trim-lines, reuse %%{name} macro, fedora-review fixes