javadoc: add api docs package

Version: 9.2.1002-4
This commit is contained in:
Pavel Raiskup 2013-08-06 13:51:07 +02:00
parent 75b4c7ae19
commit 67facd1283

View File

@ -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 <praiskup@redhat.com> - 9.2.1002-4
- add javadoc subpackage
* Tue Aug 06 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.1002-4
- don't use removed macro %%add_to_maven_depmap (#992816)
- lint: trim-lines, reuse %%{name} macro, fedora-review fixes