SPECS: mm.mysql.jdbc.spec (NEW) - add here

glen glen at pld-linux.org
Wed Dec 12 23:27:30 CET 2007


Author: glen                         Date: Wed Dec 12 22:27:30 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add here

---- Files affected:
SPECS:
   mm.mysql.jdbc.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/mm.mysql.jdbc.spec
diff -u /dev/null SPECS/mm.mysql.jdbc.spec:1.1
--- /dev/null	Wed Dec 12 23:27:30 2007
+++ SPECS/mm.mysql.jdbc.spec	Wed Dec 12 23:27:24 2007
@@ -0,0 +1,69 @@
+# $Revision$, $Date$
+%include	/usr/lib/rpm/macros.java
+Summary:	MM.MySQL is A Type IV JDBC driver for MySQL
+Name:		mm.mysql.jdbc
+Version:	1.2c
+Release:	0.1
+License:	LGPL v2
+Group:		Development/Languages/Java
+URL:		http://mmmysql.sourceforge.net/oldDist.html
+Source0:	http://mmmysql.sourceforge.net/dist/%{name}-%{version}.tar.gz
+# Source0-md5:	b04aa7f3048c2ebb169ee88ce19a6a4c
+BuildRequires:	jdk
+BuildRequires:	jpackage-utils
+BuildRequires:	rpm-javaprov
+BuildRequires:	rpmbuild(macros) >= 1.300
+Requires:	jpackage-utils
+Obsoletes:	java-mysql-connector
+Obsoletes:	java-mysql-mm
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+MM.MySQL is A Type IV JDBC driver for MySQL.
+
+NOTE: This is old unsupported driver, you should really use MySQL
+Connector/J from <http://dev.mysql.com/downloads/connector/j/>.
+
+%prep
+%setup -q
+
+%build
+%javac -source 1.2 -target 1.2 org/gjt/mm/mysql/*.java
+%jar -cvf %{name}.jar org/gjt/mm/mysql/*.class
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_javadir}
+# jars
+cp -a %{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
+ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES README
+%{_javadir}/*.jar
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007-12-12 22:27:24  glen
+- add here
+
+Revision 1.4  2006/04/03 10:13:30  glen
+- provide also java(org.gjt.mm.mysql), rel 3
+
+Revision 1.3  2006/04/03 10:10:14  glen
+- autoregister jar, rel 2
+
+Revision 1.2  2006/04/03 10:09:07  glen
+- cleanups
+
+Revision 1.1  2004/02/11 18:38:17  glen
+- created specs for storing mysql connector classes
================================================================


More information about the pld-cvs-commit mailing list