Disable javadoc build
Co-authored-by: mizdebsk@redhat.com Javadoc generation is disabled temporarily, because xmvn javadoc is not able to exclude packages from generating the javadocs. Because of this the javadoc build is failing. The javadoc build can be reenabled when this feature is implemented: https://github.com/fedora-java/xmvn/issues/161
This commit is contained in:
parent
2fd788a4bc
commit
946a93bf4c
@ -1,6 +1,8 @@
|
|||||||
|
%global build_javadoc 0
|
||||||
|
|
||||||
Name: mariadb-java-client
|
Name: mariadb-java-client
|
||||||
Version: 3.0.3
|
Version: 3.0.3
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Connects applications developed in Java to MariaDB and MySQL databases
|
Summary: Connects applications developed in Java to MariaDB and MySQL databases
|
||||||
# added BSD license because of https://bugzilla.redhat.com/show_bug.cgi?id=1291558#c13
|
# added BSD license because of https://bugzilla.redhat.com/show_bug.cgi?id=1291558#c13
|
||||||
License: BSD and LGPLv2+
|
License: BSD and LGPLv2+
|
||||||
@ -25,16 +27,22 @@ BuildRequires: mvn(org.osgi:osgi.core)
|
|||||||
# since version 1.5.2 missing optional dependency (windows)
|
# since version 1.5.2 missing optional dependency (windows)
|
||||||
#BuildRequires: mvn(com.github.dblock.waffle:waffle-jna)
|
#BuildRequires: mvn(com.github.dblock.waffle:waffle-jna)
|
||||||
|
|
||||||
|
%if %build_javadoc == 0
|
||||||
|
Obsoletes: %{name}-javadoc < 3.0.3
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
MariaDB Connector/J is a Type 4 JDBC driver, also known as the Direct to
|
MariaDB Connector/J is a Type 4 JDBC driver, also known as the Direct to
|
||||||
Database Pure Java Driver. It was developed specifically as a lightweight
|
Database Pure Java Driver. It was developed specifically as a lightweight
|
||||||
JDBC connector for use with MySQL and MariaDB database servers.
|
JDBC connector for use with MySQL and MariaDB database servers.
|
||||||
|
|
||||||
|
%if %build_javadoc
|
||||||
%package javadoc
|
%package javadoc
|
||||||
Summary: Javadoc for %{name}
|
Summary: Javadoc for %{name}
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
This package contains the API documentation for %{name}.
|
This package contains the API documentation for %{name}.
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn mariadb-connector-j-%{version}
|
%setup -qn mariadb-connector-j-%{version}
|
||||||
@ -82,8 +90,11 @@ rm -f src/main/java/org/mariadb/jdbc/plugin/authentication/addon/gssapi/WindowsN
|
|||||||
%pom_remove_plugin -r :maven-javadoc-plugin
|
%pom_remove_plugin -r :maven-javadoc-plugin
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %build_javadoc == 0
|
||||||
|
opts="-j"
|
||||||
|
%endif
|
||||||
# tests are skipped, while they require running application server
|
# tests are skipped, while they require running application server
|
||||||
%mvn_build -f
|
%mvn_build -f $opts
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%mvn_install
|
%mvn_install
|
||||||
@ -92,10 +103,15 @@ rm -f src/main/java/org/mariadb/jdbc/plugin/authentication/addon/gssapi/WindowsN
|
|||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
|
%if %build_javadoc
|
||||||
%files javadoc -f .mfiles-javadoc
|
%files javadoc -f .mfiles-javadoc
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jan 31 2022 Zuzana Miklankova <zmiklank@redhat.com> - 3.0.3-2
|
||||||
|
- Disable javadoc build, because xmvn is not able to build it
|
||||||
|
|
||||||
* Thu Jan 27 2022 Zuzana Miklankova <zmiklank@redhat.com> - 3.0.3-1
|
* Thu Jan 27 2022 Zuzana Miklankova <zmiklank@redhat.com> - 3.0.3-1
|
||||||
- Rebase to version 3.0.3
|
- Rebase to version 3.0.3
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user