# # spec file for package mysql-connector-java (Version 3.1.12) # # Copyright (c) 2008 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-mini Version: 3.1.12 Release: 265 License: GPL v2 or later 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 * Thu Jul 17 2008 coolo@suse.de - trying to avoid another build cycle * 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)