mariadb-java-client/mariadb-java-client.spec

250 lines
8.3 KiB
RPMSpec
Raw Normal View History

2016-11-28 08:32:27 +00:00
Name: mariadb-java-client
2021-08-18 12:12:59 +00:00
Version: 3.0.1
2021-07-23 08:16:57 +00:00
Release: 1%{?dist}
2016-11-28 08:32:27 +00:00
Summary: Connects applications developed in Java to MariaDB and MySQL databases
2016-03-29 10:13:38 +00:00
# added BSD license because of https://bugzilla.redhat.com/show_bug.cgi?id=1291558#c13
2016-11-28 08:32:27 +00:00
License: BSD and LGPLv2+
URL: https://mariadb.com/kb/en/mariadb/about-mariadb-connector-j/
Source0: https://github.com/MariaDB/mariadb-connector-j/archive/%{version}.tar.gz
# optional dependency not in Fedora
Patch0: remove_waffle-jna.patch
BuildArch: noarch
BuildRequires: maven-local
BuildRequires: mvn(net.java.dev.jna:jna)
BuildRequires: mvn(net.java.dev.jna:jna-platform)
BuildRequires: mvn(com.google.code.maven-replacer-plugin:replacer)
2016-06-21 15:23:34 +00:00
# fedora 25
2016-11-28 08:32:27 +00:00
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.osgi:osgi.cmpn)
BuildRequires: mvn(org.osgi:osgi.core)
2019-01-29 10:45:15 +00:00
# Since version 2.4.0
# removing coverage test because of dependencies
#BuildRequires: mvn(org.jacoco:jacoco-maven-plugin)
2017-06-26 12:11:37 +00:00
# since version 1.5.2 missing optional dependency (windows)
2016-11-28 08:32:27 +00:00
#BuildRequires: mvn(com.github.dblock.waffle:waffle-jna)
2016-03-29 10:13:38 +00:00
%description
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
JDBC connector for use with MySQL and MariaDB database servers.
2016-11-28 08:32:27 +00:00
%package javadoc
Summary: Javadoc for %{name}
2016-03-29 10:13:38 +00:00
%description javadoc
This package contains the API documentation for %{name}.
%prep
2021-08-18 12:12:59 +00:00
%setup -qn mariadb-connector-j-%{version}-beta
2016-03-29 10:13:38 +00:00
2016-09-14 10:49:59 +00:00
# remove missing optional dependency waffle-jna
2018-05-05 13:19:52 +00:00
%pom_remove_dep com.github.waffle:waffle-jna
2020-02-19 10:52:12 +00:00
%pom_remove_dep ch.qos.logback:logback-classic
%pom_remove_dep com.amazonaws:aws-java-sdk-rds
2021-07-23 08:16:57 +00:00
%pom_remove_dep com.amazonaws:aws-java-sdk-bom
%pom_remove_dep org.junit:junit-bom
%pom_add_dep net.java.dev.jna:jna
%pom_add_dep net.java.dev.jna:jna-platform
%pom_add_dep org.slf4j:slf4j-api
# use latest OSGi implementation
%pom_change_dep -r :org.osgi.core org.osgi:osgi.core
%pom_change_dep -r :org.osgi.compendium org.osgi:osgi.cmpn
2021-07-23 08:16:57 +00:00
rm -r src/main/java/org/mariadb/jdbc/plugin/credential/aws
sed -i 's/public void close() {/public void close() throws Exception {/' src/main/java/org/mariadb/jdbc/pool/Pool.java
2020-02-19 10:52:12 +00:00
2016-09-14 10:49:59 +00:00
# also remove the file using the removed plugin
2021-07-23 08:16:57 +00:00
rm -f src/main/java/org/mariadb/jdbc/plugin/authentication/addon/gssapi/WindowsNativeSspiAuthentication.java
2016-09-14 10:49:59 +00:00
# patch the sources so that the missing file is not making trouble
2017-06-26 12:11:37 +00:00
%patch0 -p1
2016-03-29 10:13:38 +00:00
%mvn_file org.mariadb.jdbc:%{name} %{name}
%mvn_alias org.mariadb.jdbc:%{name} mariadb:mariadb-connector-java
%pom_remove_plugin org.jacoco:jacoco-maven-plugin
2016-06-21 14:37:34 +00:00
%pom_remove_plugin org.apache.maven.plugins:maven-source-plugin
2017-06-26 12:11:37 +00:00
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin
2020-03-23 08:09:27 +00:00
%pom_remove_plugin com.coveo:fmt-maven-plugin
2018-05-05 13:07:27 +00:00
%pom_remove_plugin -r :maven-gpg-plugin
2021-05-12 11:52:48 +00:00
%pom_remove_plugin -r :maven-javadoc-plugin
2016-03-29 10:13:38 +00:00
%build
# tests are skipped, while they require running application server
2020-02-19 10:52:12 +00:00
%mvn_build -f
2016-03-29 10:13:38 +00:00
%install
%mvn_install
%files -f .mfiles
2021-07-23 08:16:57 +00:00
%doc README.md
2016-03-29 10:13:38 +00:00
%license LICENSE
%files javadoc -f .mfiles-javadoc
%license LICENSE
%changelog
2021-08-18 12:12:59 +00:00
* Wed Aug 18 2021 Ondrej Dubaj <odubaj@redhat.com> - 3.0.1-1
- Rebase to version 3.0.1
2021-07-23 08:16:57 +00:00
* Fri Jul 23 2021 Ondrej Dubaj <odubaj@redhat.com> - 3.0.0-1
- Rebase to version 3.0.0
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-07-09 10:52:20 +00:00
* Fri Jul 09 2021 Ondrej Dubaj <odubaj@redhat.com> - 2.7.3-1
- Rebase to version 2.7.3
2021-05-12 11:52:48 +00:00
* Wed May 12 2021 Ondrej Dubaj <odubaj@redhat.com> - 2.7.2-2
- Remove maven-javadoc-plugin dependency
2021-05-05 14:03:22 +00:00
* Wed May 05 2021 Ondrej Dubaj <odubaj@redhat.com> - 2.7.2-1
- Rebase to version 2.7.2
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2020-12-10 07:36:08 +00:00
* Thu Dec 10 2020 Ondrej Dubaj <odubaj@redhat.com> - 2.7.1-1
- Rebase to version 2.7.1 (#1906291)
2020-09-25 06:40:21 +00:00
* Fri Sep 25 2020 Ondrej Dubaj <odubaj@redhat.com> - 2.7.0-1
- Rebase to version 2.7.0 (#1882558)
* Sun Aug 30 2020 Fabio Valentini <decathorpe@gmail.com> - 2.6.2-2
- Remove unnecessary dependency on sonatype-oss-parent.
2020-08-19 12:39:32 +00:00
* Wed Aug 19 2020 Ondrej Dubaj <odubaj@redhat.com> - 2.6.2-1
- Rebase to version 2.6.2 (#1860212)
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2020-07-11 00:48:03 +00:00
* Sat Jul 11 2020 Jiri Vanek <jvanek@redhat.com> - 2.6.1-2
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
2020-06-24 06:41:28 +00:00
* Wed Jun 24 2020 Ondrej Dubaj <odubaj@redhat.com> - 2.6.1-1
- Rebase to version 2.6.1 (#1850111)
* Mon Mar 30 2020 Michal Schorm <mschorm@redhat.com> - 2.6.0-2
- Remove the dependency on mariadb (#1818814)
2020-03-23 08:09:27 +00:00
* Mon Mar 23 2020 Ondrej Dubaj <odubaj@redhat.com> - 2.6.0-1
- Rebase to version 2.6.0 (#1815696)
* Thu Feb 20 2020 Ondrej Dubaj <odubaj@redhat.com> - 2.5.4-1
- Rebase to version 2.5.4 (#1752069)
2020-02-19 10:52:12 +00:00
* Wed Feb 19 2020 Ondrej Dubaj <odubaj@redhat.com> - 2.4.3-3
- Resolved FTBFS (#1799633)
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2019-09-10 09:57:09 +00:00
* Tue Sep 10 2019 Michal Schorm <mschorm@redhat.com> - 2.4.3-1
- Rebase to version 2.4.3
2019-09-10 09:42:31 +00:00
* Tue Sep 10 2019 Michal Schorm <mschorm@redhat.com> - 2.4.1-3
- Remove dependency to orphaned HikariCP
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-03-27 08:58:04 +00:00
* Wed Mar 27 2019 Jakub Janco <jjanco@redhat.com> - 2.4.1-1
- new version
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2019-01-29 10:45:15 +00:00
* Tue Jan 29 2019 Jakub Janco <jjanco@redhat.com> - 2.4.0-1
- new version
2018-11-26 11:08:01 +00:00
* Mon Nov 26 2018 Jakub Janco <jjanco@redhat.com> - 2.3.0-1
- new version
2018-08-07 08:09:25 +00:00
* Tue Aug 07 2018 Jakub Janco <jjanco@redhat.com> - 2.2.6-1
- new version
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-06-04 13:57:07 +00:00
* Mon Jun 04 2018 Jakub Janco <jjanco@redhat.com> - 2.2.5-1
- new version
2018-05-15 13:57:46 +00:00
* Tue May 15 2018 Jakub Janco <jjanco@redhat.com> - 2.2.4-3
- remove unused aws-java-sdk dependency
2018-05-05 13:07:27 +00:00
* Sat May 05 2018 Jakub Janco <jjanco@redhat.com> - 2.2.4-2
- Refactor pom, add tests package
2018-05-05 13:19:52 +00:00
* Sat May 05 2018 Jakub Janco <jjanco@redhat.com> - 2.2.4-1
- new version
2018-03-13 10:47:37 +00:00
* Tue Mar 13 2018 Jakub Janco <jjanco@redhat.com> - 2.2.3-1
- update version
2018-02-26 14:12:59 +00:00
* Mon Feb 26 2018 Jakub Janco <jjanco@redhat.com> - 2.2.2-1
- update version
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2018-01-03 10:47:12 +00:00
* Wed Jan 03 2018 Jakub Janco <jjanco@redhat.com> - 2.2.1-1
- Update to 2.2.1
2017-11-22 11:15:50 +00:00
* Tue Nov 21 2017 Jakub Janco <jjanco@redhat.com> - 2.2.0-1
- Update to 2.2.0
2017-08-29 11:28:43 +00:00
* Tue Aug 29 2017 Tomas Repik <trepik@redhat.com> - 2.1.0-1
- Update to 2.1.0
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-06-26 12:11:37 +00:00
* Mon Jun 26 2017 Tomas Repik <trepik@redhat.com> - 2.0.2-1
- version update
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2016-11-28 08:32:27 +00:00
* Mon Nov 28 2016 Tomas Repik <trepik@redhat.com> - 1.5.5-1
- version update
2016-10-03 13:13:29 +00:00
* Mon Oct 03 2016 Tomas Repik <trepik@redhat.com> - 1.5.3-1
- version update
2016-09-14 10:49:59 +00:00
* Wed Sep 14 2016 Tomas Repik <trepik@redhat.com> - 1.5.2-1
- version update
2016-06-21 14:37:34 +00:00
* Tue Jun 21 2016 Tomas Repik <trepik@redhat.com> - 1.4.6-1
2016-09-14 10:49:59 +00:00
- version update
2016-06-21 14:37:34 +00:00
2016-04-18 12:59:04 +00:00
* Mon Apr 18 2016 Tomas Repik <trepik@redhat.com> - 1.4.2-1
- version update
2016-03-29 10:13:38 +00:00
* Wed Mar 23 2016 Tomas Repik <trepik@redhat.com> - 1.3.7-1
- version update
- BSD license added
- cosmetic updates in prep phase
* Thu Mar 10 2016 Tomas Repik <trepik@redhat.com> - 1.3.6-1
- version update
* Mon Feb 15 2016 Tomas Repik <trepik@redhat.com> - 1.3.5-1
- version update
* Wed Jan 20 2016 Tomáš Repík <trepik@redhat.com> - 1.3.3-3
- generating OSGi manifest file with maven-bundle-plugin
* Wed Dec 16 2015 Tomáš Repík <trepik@redhat.com> - 1.3.3-2
- installing LICENSE added
- conversion from dos to unix line encoding revised
- unnecessary tasks removed
* Wed Dec 9 2015 Tomáš Repík <trepik@redhat.com> - 1.3.3-1
- Initial package