Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
53d376e93d | ||
|
|
c009565a9a | ||
|
|
ecf8c6fabf | ||
|
|
b7ed348425 |
6 changed files with 82 additions and 121 deletions
0
.cvsignore → .gitignore
vendored
0
.cvsignore → .gitignore
vendored
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
||||||
# Makefile for source rpm: mysql-connector-java
|
|
||||||
# $Id$
|
|
||||||
NAME := mysql-connector-java
|
|
||||||
SPECFILE = $(firstword $(wildcard *.spec))
|
|
||||||
|
|
||||||
define find-makefile-common
|
|
||||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
||||||
|
|
||||||
ifeq ($(MAKEFILE_COMMON),)
|
|
||||||
# attept a checkout
|
|
||||||
define checkout-makefile-common
|
|
||||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(MAKEFILE_COMMON)
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
--- src/testsuite/regression/AppletRegressionTest.java.orig 2006-05-31 11:43:13.000000000 -0400
|
|
||||||
+++ src/testsuite/regression/AppletRegressionTest.java 2006-05-31 11:44:23.000000000 -0400
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
|
|
||||||
import java.util.Properties;
|
|
||||||
|
|
||||||
-import sun.applet.AppletSecurity;
|
|
||||||
+//import sun.applet.AppletSecurity;
|
|
||||||
import testsuite.BaseTestCase;
|
|
||||||
|
|
||||||
/**
|
|
||||||
@@ -66,9 +66,9 @@
|
|
||||||
* @throws Exception
|
|
||||||
* if the test fails
|
|
||||||
*/
|
|
||||||
- public void testAppletSecurityManager() throws Exception {
|
|
||||||
+ public void testSecurityManagerManager() throws Exception {
|
|
||||||
if ("true".equalsIgnoreCase(System.getProperty(TOGGLE_RUN_PROPERTY))) {
|
|
||||||
- System.setSecurityManager(new CustomAppletSecurity());
|
|
||||||
+ System.setSecurityManager(new CustomSecurityManager());
|
|
||||||
|
|
||||||
getConnectionWithProps(new Properties());
|
|
||||||
}
|
|
||||||
@@ -78,7 +78,7 @@
|
|
||||||
* We need to customize the security manager a 'bit', so that JUnit still
|
|
||||||
* works (and we can connect to various databases).
|
|
||||||
*/
|
|
||||||
- class CustomAppletSecurity extends AppletSecurity {
|
|
||||||
+ class CustomSecurityManager extends SecurityManager {
|
|
||||||
/*
|
|
||||||
* (non-Javadoc)
|
|
||||||
*
|
|
||||||
|
|
@ -1,55 +1,66 @@
|
||||||
%define builddir build-mysql-jdbc
|
%global builddir build-mysql-jdbc
|
||||||
%define distdir dist-mysql-jdbc
|
%global distdir dist-mysql-jdbc
|
||||||
%define gcj_support 1
|
%global gcj_support 1
|
||||||
|
%global java6_rtpath /usr/lib/jvm/java-1.6.0/jre/lib/rt.jar
|
||||||
|
%global java6_javacpath /usr/lib/jvm/java-1.6.0/bin/javac
|
||||||
|
%global java6_javapath /usr/lib/jvm/java-1.6.0/bin/javac
|
||||||
|
|
||||||
|
Summary: Official JDBC driver for MySQL
|
||||||
|
Name: mysql-connector-java
|
||||||
|
Version: 5.1.8
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Epoch: 1
|
||||||
|
|
||||||
Summary: Official JDBC driver for MySQL
|
|
||||||
Name: mysql-connector-java
|
|
||||||
Version: 3.1.12
|
|
||||||
Release: 6%{?dist}
|
|
||||||
Epoch: 1
|
|
||||||
# MySQL FLOSS Exception
|
# MySQL FLOSS Exception
|
||||||
License: GPLv2 with exceptions
|
License: GPLv2 with exceptions
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
# ************ NOTE ************
|
# Mysql has a mirror redirector for its downloads
|
||||||
# The following files have been removed from the tarball to avoid licensing
|
# You can get this tarball by following a link from:
|
||||||
# issues due to the fact that they are not distributed with their source.
|
# http://dev.mysql.com/get/Downloads/Connector-J/%{name}-%{version}.tar.gz/from/pick#mirrors
|
||||||
#
|
#
|
||||||
# src/lib/ant-contrib.jar
|
# Following prebuilt jars have been removed from the tarball:
|
||||||
# src/lib/jta-spec1_0_1.jar
|
#
|
||||||
|
# %{name}-%{version}-bin.jar
|
||||||
|
# src/lib/ant-contrib.jar
|
||||||
|
# src/lib/commons-logging.jar
|
||||||
|
# src/lib/Commons-Logging-LICENSE.txt
|
||||||
|
# src/lib/c3p0-LICENSE
|
||||||
|
# src/lib/c3p0-0.9.1-pre6.jar
|
||||||
|
# src/lib/jboss-common-jdbc-wrapper.jar
|
||||||
|
# src/lib/jboss-lgpl.txt
|
||||||
|
# src/lib/jdbc2_0-stdext.jar
|
||||||
|
# src/lib/jta-spec1_0_1.jar
|
||||||
# src/lib/junit.jar
|
# src/lib/junit.jar
|
||||||
|
# src/lib/LICENSE-AspectJ.html
|
||||||
# src/lib/log4j-1.2.9.jar
|
# src/lib/log4j-1.2.9.jar
|
||||||
# src/lib/aspectjrt.jar
|
#
|
||||||
# src/lib/aspectjtools.jar
|
# See http://bugs.mysql.com/bug.php?id=28512 for details.
|
||||||
# src/lib/c3p0-0.8.5-pre8.jar
|
|
||||||
# src/lib/jboss-common-jdbc-wrapper.jar
|
Source0: %{name}-%{version}.tar.gz
|
||||||
# src/lib/jboss-lgpl.txt
|
URL: http://dev.mysql.com/downloads/connector/j/5.1.html
|
||||||
# src/lib/jdbc2_0-stdext.jar
|
BuildRoot: %{_tmppath}/%{name}-%{epoch}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
# mysql-connector-java-3.1.12-bin.jar
|
|
||||||
# debug/mysql-connector-java-3.1.12-bin-g.jar
|
|
||||||
Source0: %{name}-%{version}.tar.gz
|
|
||||||
Patch0: patch-build.xml
|
|
||||||
Patch1: mysql-connector-java-noSunAppletSecurity.patch
|
|
||||||
URL: http://dev.mysql.com/downloads/connector/j/3.1.html
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{epoch}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
%if %{gcj_support}
|
%if %{gcj_support}
|
||||||
BuildRequires: java-gcj-compat-devel >= 1.0.31
|
BuildRequires: java-gcj-compat-devel >= 1.0.31
|
||||||
Requires(post): java-gcj-compat >= 1.0.31
|
Requires(post): java-gcj-compat >= 1.0.31
|
||||||
Requires(postun): java-gcj-compat >= 1.0.31
|
Requires(postun): java-gcj-compat >= 1.0.31
|
||||||
%else
|
%else
|
||||||
BuildRequires: java-devel >= 1.4.2
|
BuildRequires: java-devel >= 1.4.2
|
||||||
Requires: java >= 1.4.2
|
Requires: java >= 1.4.2
|
||||||
%endif
|
%endif
|
||||||
Requires: jta >= 1.0
|
Requires: jta >= 1.0
|
||||||
Requires: log4j
|
Requires: log4j
|
||||||
BuildRequires: ant >= 1.6.0
|
BuildRequires: ant >= 1.6.0
|
||||||
BuildRequires: ant-contrib >= 1.0
|
BuildRequires: ant-contrib >= 1.0
|
||||||
BuildRequires: java-devel >= 1.4.0
|
BuildRequires: java-devel >= 1.4.0
|
||||||
BuildRequires: jpackage-utils >= 1.6
|
BuildRequires: jpackage-utils >= 1.6
|
||||||
BuildRequires: jta >= 1.0
|
BuildRequires: jta >= 1.0
|
||||||
BuildRequires: junit
|
BuildRequires: junit
|
||||||
BuildRequires: log4j
|
BuildRequires: log4j
|
||||||
Provides: mm.mysql
|
BuildRequires: java-1.6.0-openjdk-devel
|
||||||
Obsoletes: mm.mysql
|
BuildRequires: java-1.5.0-gcj-devel
|
||||||
|
BuildRequires: jakarta-commons-logging
|
||||||
|
Provides: mm.mysql
|
||||||
|
Obsoletes: mm.mysql
|
||||||
|
|
||||||
%description
|
%description
|
||||||
MySQL Connector/J is a native Java driver that converts JDBC (Java Database
|
MySQL Connector/J is a native Java driver that converts JDBC (Java Database
|
||||||
|
|
@ -62,22 +73,32 @@ capabilities of MySQL.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
%patch0
|
|
||||||
%patch1
|
|
||||||
|
|
||||||
# Remove duplicate README.txt files
|
# Remove duplicate README.txt files
|
||||||
rm README.txt
|
rm README.txt
|
||||||
rm docs/README.txt
|
rm docs/README.txt
|
||||||
|
|
||||||
# fix line endings
|
# fix line endings
|
||||||
%{__sed} -i 's/\r//' README
|
sed -i 's/\r//' README
|
||||||
%{__sed} -i 's/\r//' docs/README
|
sed -i 's/\r//' docs/README
|
||||||
%{__sed} -i 's/\r//' EXCEPTIONS-CONNECTOR-J
|
sed -i 's/\r//' EXCEPTIONS-CONNECTOR-J
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CLASSPATH=$(build-classpath ant-contrib jdbc-stdext jta junit log4j)
|
|
||||||
ant -DbuildDir=%{builddir} -DdistDir=%{distdir}
|
# We need both JDK1.5 (for JDBC3.0; appointed by $JAVA_HOME) and JDK1.6 (for JDBC4.0; appointed in the build.xml)
|
||||||
|
export CLASSPATH=$(build-classpath ant-contrib jdbc-stdext jta junit log4j commons-logging.jar)
|
||||||
|
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-gcj
|
||||||
|
|
||||||
|
# We currently need to disable jboss integration because of missing jboss-common-jdbc-wrapper.jar (built from sources).
|
||||||
|
# See BZ#480154 and BZ#471915 for details.
|
||||||
|
rm -rf src/com/mysql/jdbc/integration/jboss
|
||||||
|
rm src/testsuite/regression/ConnectionRegressionTest.java
|
||||||
|
rm src/testsuite/regression/DataSourceRegressionTest.java
|
||||||
|
rm src/testsuite/simple/ReadOnlyCallableStatementTest.java
|
||||||
|
|
||||||
|
ant -DbuildDir=%{builddir} -DdistDir=%{distdir} -Dcom.mysql.jdbc.java6.rtjar=%{java6_rtpath} -Dcom.mysql.jdbc.java6.javac=%{java6_javacpath} -Dcom.mysql.jdbc.java6.java=%{java6_javapath}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
@ -122,16 +143,22 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Aug 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> 3.1.12-6
|
* Tue Aug 26 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 1:5.1.8-1
|
||||||
|
- Update to 5.1.8 (resolves BZ#480154) with jboss integration disabled.
|
||||||
|
- Added BR: java-1.6.0-openjdk-devel, java-1.5.0-gcj-devel, jakarta-commons-logging
|
||||||
|
- Minor spec file updates: %%global instead of %%define, tabs instead of spaces
|
||||||
|
- Dropped unnecessary patch-build.xml and mysql-connector-java-noSunAppletSecurity.patch
|
||||||
|
|
||||||
|
* Mon Aug 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1:3.1.12-6
|
||||||
- fix license tag
|
- fix license tag
|
||||||
|
|
||||||
* Fri Apr 04 2008 Andrew Overholt <overholt@redhat.com> 3.1.12-5
|
* Fri Apr 04 2008 Andrew Overholt <overholt@redhat.com> 1:3.1.12-5
|
||||||
- Rebuild for rhbz #234286.
|
- Rebuild for rhbz #234286.
|
||||||
|
|
||||||
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1:3.1.12-4
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1:3.1.12-4
|
||||||
- Autorebuild for GCC 4.3
|
- Autorebuild for GCC 4.3
|
||||||
|
|
||||||
* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 3.1.12-3
|
* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 1:3.1.12-3
|
||||||
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
|
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
|
||||||
|
|
||||||
* Thu Sep 21 2006 Igor Foox <ifoox@redhat.com> 1:3.1.12-2
|
* Thu Sep 21 2006 Igor Foox <ifoox@redhat.com> 1:3.1.12-2
|
||||||
|
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
--- 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>
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
ca9d3c88dbb5ad5c724fe9ac576fc427 mysql-connector-java-3.1.12.tar.gz
|
815783766d36eb650be60718cc0be84c mysql-connector-java-5.1.8.tar.gz
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue