OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mysql-connector-java?expand=0&rev=1
This commit is contained in:
commit
3b17c3f2b0
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
mysql-connector-java-3.1.12.tar.gz
Normal file
3
mysql-connector-java-3.1.12.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a23c73462260c6fad956c60ad814e3a48891ee601ae3cbeb0b9d94a2dd0ad726
|
||||
size 8014757
|
58
mysql-connector-java-java14compat.patch
Normal file
58
mysql-connector-java-java14compat.patch
Normal file
@ -0,0 +1,58 @@
|
||||
diff -Naur ../mysql-connector-java-3.1.12.orig/build.xml ./build.xml
|
||||
--- ../mysql-connector-java-3.1.12.orig/build.xml 2005-12-01 03:02:01.000000000 +0100
|
||||
+++ ./build.xml 2006-09-27 15:39:20.000000000 +0200
|
||||
@@ -536,7 +536,9 @@
|
||||
debug="${debug.enable}"
|
||||
excludes="testsuite/**,
|
||||
com/mysql/jdbc/integration/**,
|
||||
- com/mysql/jdbc/log/Log4JLogger.java">
|
||||
+ com/mysql/jdbc/log/Log4JLogger.java"
|
||||
+ source="1.4"
|
||||
+ target="1.4" >
|
||||
<classpath refid="project.build.classpath" />
|
||||
</javac>
|
||||
</target>
|
||||
@@ -578,7 +580,9 @@
|
||||
destdir="${buildDir}/${fullProdName}"
|
||||
deprecation="off"
|
||||
debug="${debug.enable}"
|
||||
- includes="com/mysql/jdbc/integration/c3p0/**">
|
||||
+ includes="com/mysql/jdbc/integration/c3p0/**"
|
||||
+ source="1.4"
|
||||
+ target="1.4" >
|
||||
<classpath refid="project.build.classpath" />
|
||||
</javac>
|
||||
</target>
|
||||
@@ -590,7 +594,9 @@
|
||||
destdir="${buildDir}/${fullProdName}"
|
||||
deprecation="off"
|
||||
debug="${debug.enable}"
|
||||
- includes="com/mysql/jdbc/integration/jboss/**">
|
||||
+ includes="com/mysql/jdbc/integration/jboss/**"
|
||||
+ source="1.4"
|
||||
+ target="1.4">
|
||||
<classpath refid="project.build.classpath" />
|
||||
</javac>
|
||||
</target>
|
||||
@@ -602,7 +608,9 @@
|
||||
destdir="${buildDir}/${fullProdName}"
|
||||
deprecation="off"
|
||||
debug="${debug.enable}"
|
||||
- includes="com/mysql/jdbc/log/Log4JLogger.java">
|
||||
+ includes="com/mysql/jdbc/log/Log4JLogger.java"
|
||||
+ source="1.4"
|
||||
+ target="1.4">
|
||||
<classpath refid="project.build.classpath" />
|
||||
</javac>
|
||||
</target>
|
||||
@@ -616,7 +624,9 @@
|
||||
deprecation="off"
|
||||
debug="${debug.enable}"
|
||||
includes="testsuite/**"
|
||||
- excludes="testsuite/requiresNonRedists/**">
|
||||
+ excludes="testsuite/requiresNonRedists/**"
|
||||
+ source="1.4"
|
||||
+ target="1.4">
|
||||
<classpath refid="project.build.classpath"/>
|
||||
</javac>
|
||||
</target>
|
37
mysql-connector-java.changes
Normal file
37
mysql-connector-java.changes
Normal file
@ -0,0 +1,37 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 27 15:50:56 CEST 2006 - skh@suse.de
|
||||
|
||||
- don't use icecream
|
||||
- use source="1.4" and target="1.4" for build with java 1.5
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 7 09:54:31 CET 2006 - jsmeix@suse.de
|
||||
|
||||
- Current version 3.1.12 from JPackage.org
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 25 21:47:09 CET 2006 - mls@suse.de
|
||||
|
||||
- converted neededforbuild to BuildRequires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 28 16:49:05 CEST 2005 - jsmeix@suse.de
|
||||
|
||||
- Adjustments in the spec file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 18 16:52:27 CEST 2005 - jsmeix@suse.de
|
||||
|
||||
- Current version 3.1.8 from JPackage.org
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 18 18:03:35 CET 2005 - skh@suse.de
|
||||
|
||||
- update to version 3.1.6
|
||||
- don't use icecream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 2 18:26:14 CEST 2004 - skh@suse.de
|
||||
|
||||
- Initial package created with version 3.0.11 (JPackage 1.5)
|
||||
|
93
mysql-connector-java.spec
Normal file
93
mysql-connector-java.spec
Normal file
@ -0,0 +1,93 @@
|
||||
#
|
||||
# spec file for package mysql-connector-java (Version 3.1.12)
|
||||
#
|
||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
# icecream 0
|
||||
|
||||
Name: mysql-connector-java
|
||||
%define builddir build-mysql-jdbc
|
||||
%define distdir dist-mysql-jdbc
|
||||
Summary: Official JDBC Driver for MySQL
|
||||
BuildRequires: ant java2-devel-packages jta junit log4j
|
||||
Version: 3.1.12
|
||||
Release: 19
|
||||
License: GPL
|
||||
Group: Development/Libraries/Java
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Patch0: patch-build.xml
|
||||
Patch1: %{name}-java14compat.patch
|
||||
URL: http://www.mysql.com/downloads/api-jdbc-stable.html
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
Requires: jta >= 1.0.1-0.a.1
|
||||
Requires: log4j
|
||||
#BuildRequires: ant >= 1.6.0
|
||||
#BuildRequires: ant-contrib
|
||||
#BuildRequires: java-devel >= 1.4.0
|
||||
#BuildRequires: jpackage-utils >= 1.6
|
||||
#BuildRequires: jta >= 1.0.1-0.a.1
|
||||
#BuildRequires: junit
|
||||
#BuildRequires: log4j
|
||||
Provides: mm.mysql
|
||||
Obsoletes: mm.mysql
|
||||
|
||||
%description
|
||||
MySQL Connector/J is a native Java driver that converts JDBC (Java
|
||||
Database Connectivity) calls into the network protocol used by the
|
||||
MySQL database. It lets developers working with the Java programming
|
||||
language easily build programs and applets that interact with MySQL and
|
||||
connect all corporate data, even in a heterogeneous environment. MySQL
|
||||
Connector/J is a Type IV JDBC driver and has a complete JDBC feature
|
||||
set that supports the capabilities of MySQL.
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
%patch0
|
||||
%patch1
|
||||
# remove all binary libs
|
||||
find . \( -name "*.jar" -o -name "*.class" \) | xargs -t rm -f
|
||||
|
||||
%build
|
||||
export CLASSPATH=$(build-classpath ant-contrib jdbc-stdext jta junit log4j)
|
||||
ant -DbuildDir=%{builddir} -DdistDir=%{distdir}
|
||||
|
||||
%install
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
||||
install -m 644 %{builddir}/%{name}-%{version}/%{name}-%{version}-bin.jar \
|
||||
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
||||
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc CHANGES COPYING EXCEPTIONS-CONNECTOR-J README README.txt docs
|
||||
%attr(0644,root,root) %{_javadir}/*.jar
|
||||
|
||||
%changelog -n mysql-connector-java
|
||||
* Wed Sep 27 2006 - skh@suse.de
|
||||
- don't use icecream
|
||||
- use source="1.4" and target="1.4" for build with java 1.5
|
||||
* Tue Feb 07 2006 - jsmeix@suse.de
|
||||
- Current version 3.1.12 from JPackage.org
|
||||
* Wed Jan 25 2006 - mls@suse.de
|
||||
- converted neededforbuild to BuildRequires
|
||||
* Thu Jul 28 2005 - jsmeix@suse.de
|
||||
- Adjustments in the spec file.
|
||||
* Mon Jul 18 2005 - jsmeix@suse.de
|
||||
- Current version 3.1.8 from JPackage.org
|
||||
* Fri Feb 18 2005 - skh@suse.de
|
||||
- update to version 3.1.6
|
||||
- don't use icecream
|
||||
* Thu Sep 02 2004 - skh@suse.de
|
||||
- Initial package created with version 3.0.11 (JPackage 1.5)
|
13
patch-build.xml
Normal file
13
patch-build.xml
Normal file
@ -0,0 +1,13 @@
|
||||
--- build.xml.orig 2006-01-31 15:27:27.000000000 -0800
|
||||
+++ build.xml 2006-01-31 15:28:05.000000000 -0800
|
||||
@@ -60,10 +60,6 @@
|
||||
</path>
|
||||
|
||||
<path id="project.build.classpath">
|
||||
- <fileset dir="${buildDir}/${fullProdName}/lib-nodist">
|
||||
- <include name="**/*.jar"/>
|
||||
- </fileset>
|
||||
-
|
||||
<fileset dir="${buildDir}/${fullProdName}/lib">
|
||||
<include name="**/*.jar"/>
|
||||
</fileset>
|
Loading…
Reference in New Issue
Block a user