|
|
6b9fe1 |
Name: mariadb-java-client
|
|
|
6b9fe1 |
Version: 2.2.5
|
|
|
fd0bb4 |
Release: 3%{?dist}
|
|
|
6b9fe1 |
Summary: Connects applications developed in Java to MariaDB and MySQL databases
|
|
|
6b9fe1 |
# added BSD license because of https://bugzilla.redhat.com/show_bug.cgi?id=1291558#c13
|
|
|
6b9fe1 |
License: BSD and LGPLv2+
|
|
|
6b9fe1 |
URL: https://mariadb.com/kb/en/mariadb/about-mariadb-connector-j/
|
|
|
6b9fe1 |
Source0: https://github.com/MariaDB/mariadb-connector-j/archive/%{version}.tar.gz
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
# optional dependency not in Fedora
|
|
|
6b9fe1 |
Patch0: remove_waffle-jna.patch
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
BuildArch: noarch
|
|
|
6b9fe1 |
BuildRequires: maven-local
|
|
|
6b9fe1 |
BuildRequires: mvn(net.java.dev.jna:jna)
|
|
|
6b9fe1 |
BuildRequires: mvn(net.java.dev.jna:jna-platform)
|
|
|
6b9fe1 |
BuildRequires: mvn(com.google.code.maven-replacer-plugin:replacer)
|
|
|
6b9fe1 |
# fedora 25
|
|
|
6b9fe1 |
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
6b9fe1 |
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
|
|
|
6b9fe1 |
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
|
|
6b9fe1 |
# since version 1.5.2 missing optional dependency (windows)
|
|
|
6b9fe1 |
#BuildRequires: mvn(com.github.dblock.waffle:waffle-jna)
|
|
|
6b9fe1 |
|
|
|
fd0bb4 |
Suggests: mariadb-server
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
%description
|
|
|
6b9fe1 |
MariaDB Connector/J is a Type 4 JDBC driver, also known as the Direct to
|
|
|
6b9fe1 |
Database Pure Java Driver. It was developed specifically as a lightweight
|
|
|
6b9fe1 |
JDBC connector for use with MySQL and MariaDB database servers.
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
%package javadoc
|
|
|
6b9fe1 |
Summary: Javadoc for %{name}
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
%description javadoc
|
|
|
6b9fe1 |
This package contains the API documentation for %{name}.
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
%prep
|
|
|
6b9fe1 |
%setup -qn mariadb-connector-j-%{version}
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
# convert files from dos to unix line encoding
|
|
|
6b9fe1 |
for file in README.md documentation/*.creole; do
|
|
|
6b9fe1 |
sed -i.orig 's|\r||g' $file
|
|
|
6b9fe1 |
touch -r $file.orig $file
|
|
|
6b9fe1 |
rm $file.orig
|
|
|
6b9fe1 |
done
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
# remove missing optional dependency waffle-jna
|
|
|
6b9fe1 |
%pom_remove_dep com.github.waffle:waffle-jna
|
|
|
6b9fe1 |
%pom_remove_dep com.zaxxer:HikariCP
|
|
|
6b9fe1 |
%pom_remove_dep ch.qos.logback:logback-classic
|
|
|
6b9fe1 |
# also remove the file using the removed plugin
|
|
|
6b9fe1 |
rm -f src/main/java/org/mariadb/jdbc/internal/com/send/gssapi/WindowsNativeSspiAuthentication.java
|
|
|
6b9fe1 |
# patch the sources so that the missing file is not making trouble
|
|
|
6b9fe1 |
%patch0 -p1
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
%mvn_file org.mariadb.jdbc:%{name} %{name}
|
|
|
6b9fe1 |
%mvn_alias org.mariadb.jdbc:%{name} mariadb:mariadb-connector-java
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
%pom_remove_plugin org.apache.maven.plugins:maven-checkstyle-plugin
|
|
|
6b9fe1 |
%pom_remove_plugin org.apache.maven.plugins:maven-source-plugin
|
|
|
6b9fe1 |
%pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin
|
|
|
6b9fe1 |
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin
|
|
|
6b9fe1 |
%pom_remove_plugin pl.project13.maven:git-commit-id-plugin
|
|
|
6b9fe1 |
%pom_remove_plugin -r :maven-gpg-plugin
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
# remove preconfigured OSGi manifest file and generate OSGi manifest file
|
|
|
6b9fe1 |
# with maven-bundle-plugin instead of using maven-jar-plugin
|
|
|
6b9fe1 |
rm src/main/resources/META-INF/MANIFEST.MF
|
|
|
6b9fe1 |
%pom_xpath_set "pom:packaging" bundle
|
|
|
6b9fe1 |
%pom_xpath_set "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration/pom:archive/pom:manifestFile" '${project.build.outputDirectory}/META-INF/MANIFEST.MF'
|
|
|
6b9fe1 |
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration/pom:archive/pom:manifestEntries"
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 . '
|
|
|
6b9fe1 |
<extensions>true</extensions>
|
|
|
6b9fe1 |
<configuration>
|
|
|
6b9fe1 |
<instructions>
|
|
|
6b9fe1 |
<Bundle-SymbolicName>${project.groupId}</Bundle-SymbolicName>
|
|
|
6b9fe1 |
<Bundle-Name>MariaDB JDBC Client</Bundle-Name>
|
|
|
6b9fe1 |
<Bundle-Version>${project.version}.0</Bundle-Version>
|
|
|
6b9fe1 |
<Export-Package>org.mariadb.jdbc.*</Export-Package>
|
|
|
6b9fe1 |
<Import-Package>
|
|
|
6b9fe1 |
!com.sun.jna.*,
|
|
|
6b9fe1 |
javax.net;resolution:=optional,
|
|
|
6b9fe1 |
javax.net.ssl;resolution:=optional,
|
|
|
6b9fe1 |
javax.sql;resolution:=optional,
|
|
|
6b9fe1 |
javax.transaction.xa;resolution:=optional
|
|
|
6b9fe1 |
</Import-Package>
|
|
|
6b9fe1 |
</instructions>
|
|
|
6b9fe1 |
</configuration>
|
|
|
6b9fe1 |
<executions>
|
|
|
6b9fe1 |
<execution>
|
|
|
6b9fe1 |
<id>bundle-manifest</id>
|
|
|
6b9fe1 |
<phase>process-classes</phase>
|
|
|
6b9fe1 |
<goals>
|
|
|
6b9fe1 |
<goal>manifest</goal>
|
|
|
6b9fe1 |
</goals>
|
|
|
6b9fe1 |
</execution>
|
|
|
6b9fe1 |
</executions>'
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
%build
|
|
|
6b9fe1 |
# tests are skipped, while they require running application server
|
|
|
6b9fe1 |
%mvn_build -- -Dmaven.test.skip
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
%install
|
|
|
6b9fe1 |
%mvn_install
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
%files -f .mfiles
|
|
|
6b9fe1 |
%doc documentation/* README.md
|
|
|
6b9fe1 |
%license LICENSE
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
%files javadoc -f .mfiles-javadoc
|
|
|
6b9fe1 |
%license LICENSE
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
%changelog
|
|
|
fd0bb4 |
* Fri Jun 26 2020 Michal Schorm <mschorm@redhat.com> - 2.2.5-3
|
|
|
fd0bb4 |
- Fix requirement on MariaDB
|
|
|
fd0bb4 |
Resolves: #1797057
|
|
|
fd0bb4 |
|
|
|
6b9fe1 |
* Thu Jun 14 2018 Jakub Janco <jjanco@redhat.com> - 2.2.5-1
|
|
|
6b9fe1 |
- update version
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
* Mon May 28 2018 Michael Simacek <msimacek@redhat.com> - 2.2.3-2
|
|
|
6b9fe1 |
- Remove BR on maven-javadoc-plugin
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
* Tue Mar 13 2018 Jakub Janco <jjanco@redhat.com> - 2.2.3-1
|
|
|
6b9fe1 |
- update version
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
* Mon Feb 26 2018 Jakub Janco <jjanco@redhat.com> - 2.2.2-1
|
|
|
6b9fe1 |
- update version
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-2
|
|
|
6b9fe1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
* Wed Jan 03 2018 Jakub Janco <jjanco@redhat.com> - 2.2.1-1
|
|
|
6b9fe1 |
- Update to 2.2.1
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
* Tue Nov 21 2017 Jakub Janco <jjanco@redhat.com> - 2.2.0-1
|
|
|
6b9fe1 |
- Update to 2.2.0
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
* Tue Aug 29 2017 Tomas Repik <trepik@redhat.com> - 2.1.0-1
|
|
|
6b9fe1 |
- Update to 2.1.0
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-2
|
|
|
6b9fe1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
* Mon Jun 26 2017 Tomas Repik <trepik@redhat.com> - 2.0.2-1
|
|
|
6b9fe1 |
- version update
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.5-2
|
|
|
6b9fe1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
* Mon Nov 28 2016 Tomas Repik <trepik@redhat.com> - 1.5.5-1
|
|
|
6b9fe1 |
- version update
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
* Mon Oct 03 2016 Tomas Repik <trepik@redhat.com> - 1.5.3-1
|
|
|
6b9fe1 |
- version update
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
* Wed Sep 14 2016 Tomas Repik <trepik@redhat.com> - 1.5.2-1
|
|
|
6b9fe1 |
- version update
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
* Tue Jun 21 2016 Tomas Repik <trepik@redhat.com> - 1.4.6-1
|
|
|
6b9fe1 |
- version update
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
* Mon Apr 18 2016 Tomas Repik <trepik@redhat.com> - 1.4.2-1
|
|
|
6b9fe1 |
- version update
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
* Wed Mar 23 2016 Tomas Repik <trepik@redhat.com> - 1.3.7-1
|
|
|
6b9fe1 |
- version update
|
|
|
6b9fe1 |
- BSD license added
|
|
|
6b9fe1 |
- cosmetic updates in prep phase
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
* Thu Mar 10 2016 Tomas Repik <trepik@redhat.com> - 1.3.6-1
|
|
|
6b9fe1 |
- version update
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
* Mon Feb 15 2016 Tomas Repik <trepik@redhat.com> - 1.3.5-1
|
|
|
6b9fe1 |
- version update
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
* Wed Jan 20 2016 Tomáš Repík <trepik@redhat.com> - 1.3.3-3
|
|
|
6b9fe1 |
- generating OSGi manifest file with maven-bundle-plugin
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
* Wed Dec 16 2015 Tomáš Repík <trepik@redhat.com> - 1.3.3-2
|
|
|
6b9fe1 |
- installing LICENSE added
|
|
|
6b9fe1 |
- conversion from dos to unix line encoding revised
|
|
|
6b9fe1 |
- unnecessary tasks removed
|
|
|
6b9fe1 |
|
|
|
6b9fe1 |
* Wed Dec 9 2015 Tomáš Repík <trepik@redhat.com> - 1.3.3-1
|
|
|
6b9fe1 |
- Initial package
|