Initial import (#1291558).
This commit is contained in:
parent
98ad063530
commit
73e237391b
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
|||||||
|
/1.3.7.tar.gz
|
117
mariadb-java-client.spec
Normal file
117
mariadb-java-client.spec
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
Name: mariadb-java-client
|
||||||
|
Version: 1.3.7
|
||||||
|
Release: 1%{?dist}
|
||||||
|
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
|
||||||
|
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
|
||||||
|
|
||||||
|
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)
|
||||||
|
|
||||||
|
Requires: mariadb
|
||||||
|
|
||||||
|
%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.
|
||||||
|
|
||||||
|
%package javadoc
|
||||||
|
Summary: Javadoc for %{name}
|
||||||
|
|
||||||
|
%description javadoc
|
||||||
|
This package contains the API documentation for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -qn mariadb-connector-j-%{version}
|
||||||
|
|
||||||
|
# convert files from dos to unix line encoding
|
||||||
|
for file in README.md documentation/*.md; do
|
||||||
|
sed -i.orig 's|\r||g' $file
|
||||||
|
touch -r $file.orig $file
|
||||||
|
rm $file.orig
|
||||||
|
done
|
||||||
|
|
||||||
|
# Fix BR
|
||||||
|
# net.java.dev.jna:jna:jar:platform:3.3.0
|
||||||
|
%pom_xpath_remove "pom:dependency[pom:classifier = 'platform']"
|
||||||
|
%pom_add_dep net.java.dev.jna:jna-platform:'${jna.version}' . "<optional>true</optional>"
|
||||||
|
|
||||||
|
%mvn_file org.mariadb.jdbc:%{name} %{name}
|
||||||
|
%mvn_alias org.mariadb.jdbc:%{name} mariadb:mariadb-connector-java
|
||||||
|
|
||||||
|
%pom_remove_plugin org.apache.maven.plugins:maven-checkstyle-plugin
|
||||||
|
|
||||||
|
# remove preconfigured OSGi manifest file and generate OSGi manifest file
|
||||||
|
# with maven-bundle-plugin instead of using maven-jar-plugin
|
||||||
|
rm src/main/resources/META-INF/MANIFEST.MF
|
||||||
|
%pom_remove_plugin :maven-jar-plugin
|
||||||
|
%pom_xpath_set "pom:packaging" bundle
|
||||||
|
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 . '
|
||||||
|
<extensions>true</extensions>
|
||||||
|
<configuration>
|
||||||
|
<instructions>
|
||||||
|
<Bundle-SymbolicName>${project.groupId}</Bundle-SymbolicName>
|
||||||
|
<Bundle-Name>MariaDB JDBC Client</Bundle-Name>
|
||||||
|
<Bundle-Version>${project.version}.0</Bundle-Version>
|
||||||
|
<Export-Package>org.mariadb.jdbc.*</Export-Package>
|
||||||
|
<Import-Package>
|
||||||
|
!com.sun.jna.*,
|
||||||
|
javax.net;resolution:=optional,
|
||||||
|
javax.net.ssl;resolution:=optional,
|
||||||
|
javax.sql;resolution:=optional,
|
||||||
|
javax.transaction.xa;resolution:=optional
|
||||||
|
</Import-Package>
|
||||||
|
</instructions>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>bundle-manifest</id>
|
||||||
|
<phase>process-classes</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>manifest</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>'
|
||||||
|
|
||||||
|
%build
|
||||||
|
# tests are skipped, while they require running application server
|
||||||
|
%mvn_build -f
|
||||||
|
|
||||||
|
%install
|
||||||
|
%mvn_install
|
||||||
|
|
||||||
|
%files -f .mfiles
|
||||||
|
%doc documentation/* README.md
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
|
%files javadoc -f .mfiles-javadoc
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* 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
|
Loading…
Reference in New Issue
Block a user