diff --git a/hsqldb-1.8.0.10.pom b/hsqldb-1.8.0.10.pom new file mode 100644 index 0000000..bd0c1fd --- /dev/null +++ b/hsqldb-1.8.0.10.pom @@ -0,0 +1,22 @@ + + 4.0.0 + hsqldb + hsqldb + jar + HSQLDB + 1.8.0.10 + http://hsqldb.org/ + Lightweight 100% Java SQL Database Engine + + + HSQLDB License + http://hsqldb.org/web/hsqlLicense.html + repo + + + + http://sourceforge.net/cvs/?group_id=23316 + + + + diff --git a/hsqldb-jdbc-4.1.patch b/hsqldb-jdbc-4.1.patch new file mode 100644 index 0000000..30ae18c --- /dev/null +++ b/hsqldb-jdbc-4.1.patch @@ -0,0 +1,293 @@ +diff -ur hsqldb.orig/build/build.xml hsqldb/build/build.xml +--- hsqldb.orig/build/build.xml 2010-06-23 08:49:15.000000000 -0400 ++++ hsqldb/build/build.xml 2012-01-24 15:09:43.000000000 -0500 +@@ -98,7 +98,11 @@ + + + +- ++ ++ ++ ++ ++ + + + +@@ -210,6 +214,7 @@ + + + ++ + + + +@@ -244,6 +249,7 @@ + + + ++ + + + +@@ -279,10 +285,47 @@ + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +- + T getObject(String columnLabel, Class type) throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ ++ public T getObject(int ColumnIndex, Class type) throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ ++*/ ++ ++//#endif JAVA7 + } +diff -ur hsqldb.orig/src/org/hsqldb/jdbc/jdbcConnection.java hsqldb/src/org/hsqldb/jdbc/jdbcConnection.java +--- hsqldb.orig/src/org/hsqldb/jdbc/jdbcConnection.java 2010-02-27 12:04:52.000000000 -0500 ++++ hsqldb/src/org/hsqldb/jdbc/jdbcConnection.java 2012-01-24 14:53:02.000000000 -0500 +@@ -50,6 +50,14 @@ + */ + + //#endif JAVA6 ++ ++//#ifdef JAVA7 ++/* ++import java.util.concurrent.Executor; ++*/ ++ ++//#endif JAVA7 ++ + import java.sql.PreparedStatement; + import java.sql.SQLException; + import java.sql.SQLWarning; +@@ -2794,4 +2802,33 @@ + */ + + //#endif JAVA6 ++ ++//#ifdef JAVA7 ++/* ++ public int getNetworkTimeout() throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ ++ public void setNetworkTimeout(Executor executor, int millis) throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ ++ public void abort(Executor executor) throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ ++ public String getSchema() throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ ++ public void setSchema(String schema) throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++*/ ++//#endif JAVA7 + } +diff -ur hsqldb.orig/src/org/hsqldb/jdbc/jdbcDatabaseMetaData.java hsqldb/src/org/hsqldb/jdbc/jdbcDatabaseMetaData.java +--- hsqldb.orig/src/org/hsqldb/jdbc/jdbcDatabaseMetaData.java 2010-02-27 12:04:52.000000000 -0500 ++++ hsqldb/src/org/hsqldb/jdbc/jdbcDatabaseMetaData.java 2012-01-24 15:03:07.000000000 -0500 +@@ -5697,4 +5697,21 @@ + */ + + //#endif JAVA6 ++ ++//#ifdef JAVA7 ++/* ++ public boolean generatedKeyAlwaysReturned() throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ ++ public ResultSet getPseudoColumns(String catalog, String schemaPattern, ++ String tableNamePattern, String columnNamePattern) throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ ++*/ ++ ++//#endif JAVA7 + } +diff -ur hsqldb.orig/src/org/hsqldb/jdbc/jdbcDataSource.java hsqldb/src/org/hsqldb/jdbc/jdbcDataSource.java +--- hsqldb.orig/src/org/hsqldb/jdbc/jdbcDataSource.java 2010-02-27 12:04:52.000000000 -0500 ++++ hsqldb/src/org/hsqldb/jdbc/jdbcDataSource.java 2012-01-24 15:08:29.000000000 -0500 +@@ -47,6 +47,13 @@ + //#endif JAVA4 + import org.hsqldb.jdbcDriver; + ++//#ifdef JAVA7 ++/* ++import java.sql.SQLFeatureNotSupportedException; ++import java.util.logging.Logger; ++*/ ++//#endif JAVA7 ++ + // boucherb@users 20040411 - doc 1.7.2 - javadoc updates toward 1.7.2 final + + /** +@@ -325,4 +332,14 @@ + */ + + //#endif JAVA6 ++ ++//#ifdef JAVA7 ++/* ++ public Logger getParentLogger() throws SQLFeatureNotSupportedException ++ { ++ throw new SQLFeatureNotSupportedException("Not supported yet."); ++ } ++*/ ++ ++//#endif JAVA7 + } +diff -ur hsqldb.orig/src/org/hsqldb/jdbc/jdbcResultSet.java hsqldb/src/org/hsqldb/jdbc/jdbcResultSet.java +--- hsqldb.orig/src/org/hsqldb/jdbc/jdbcResultSet.java 2010-06-23 08:49:19.000000000 -0400 ++++ hsqldb/src/org/hsqldb/jdbc/jdbcResultSet.java 2012-01-24 14:55:16.000000000 -0500 +@@ -5332,4 +5332,21 @@ + */ + + //#endif JAVA6 ++ ++ ++//#ifdef JAVA7 ++/* ++ ++ public T getObject(String columnLabel, Class type) throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ ++ public T getObject(int columnNum, Class type) throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++*/ ++ ++//#endif JAVA6 + } +diff -ur hsqldb.orig/src/org/hsqldb/jdbc/jdbcStatement.java hsqldb/src/org/hsqldb/jdbc/jdbcStatement.java +--- hsqldb.orig/src/org/hsqldb/jdbc/jdbcStatement.java 2010-02-27 12:04:52.000000000 -0500 ++++ hsqldb/src/org/hsqldb/jdbc/jdbcStatement.java 2012-01-24 14:58:14.000000000 -0500 +@@ -1610,4 +1610,18 @@ + } + */ + //#endif JAVA6 ++ ++//#ifdef JAVA7 ++/* ++ public boolean isCloseOnCompletion() throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ ++ public void closeOnCompletion() throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++*/ ++//#endif JAVA7 + } +diff -ur hsqldb.orig/src/org/hsqldb/jdbcDriver.java hsqldb/src/org/hsqldb/jdbcDriver.java +--- hsqldb.orig/src/org/hsqldb/jdbcDriver.java 2009-02-16 19:29:55.000000000 -0500 ++++ hsqldb/src/org/hsqldb/jdbcDriver.java 2012-01-24 15:08:44.000000000 -0500 +@@ -42,6 +42,13 @@ + import org.hsqldb.persist.HsqlDatabaseProperties; + import org.hsqldb.persist.HsqlProperties; + ++//#ifdef JAVA7 ++/* ++import java.sql.SQLFeatureNotSupportedException; ++import java.util.logging.Logger; ++*/ ++//#endif JAVA7 ++ + // fredt@users 20011220 - patch 1.7.0 by fredt + // new version numbering scheme + // fredt@users 20020320 - patch 1.7.0 - JDBC 2 support and error trapping +@@ -321,4 +328,14 @@ + DriverManager.registerDriver(new jdbcDriver()); + } catch (Exception e) {} + } ++ ++//#ifdef JAVA7 ++/* ++ public Logger getParentLogger() throws SQLFeatureNotSupportedException ++ { ++ throw new SQLFeatureNotSupportedException("Not supported yet."); ++ } ++*/ ++ ++//#endif JAVA7 + } diff --git a/hsqldb1.spec b/hsqldb1.spec new file mode 100644 index 0000000..05c2742 --- /dev/null +++ b/hsqldb1.spec @@ -0,0 +1,70 @@ +%global cvs_version 1_8_1_3 +%global majorversion 1 +Name: hsqldb1 +Version: 1.8.1.3 +Release: 1 +Summary: HyperSQL Database Engine +License: BSD +URL: http://hsqldb.sourceforge.net/ +Source0: http://downloads.sourceforge.net/hsqldb/hsqldb_%{cvs_version}.zip +Source1: https://repo1.maven.org/maven2/org/hsqldb/hsqldb/1.8.0.10/hsqldb-1.8.0.10.pom +Patch0: hsqldb-jdbc-4.1.patch + +BuildRequires: ant java-devel javapackages-local junit glassfish-servlet-api +Requires: glassfish-servlet-api +BuildArch: noarch + +%description +HSQLdb is a relational database engine written in JavaTM , with a JDBC +driver, supporting a subset of ANSI-92 SQL. It offers a small (about +100k), fast database engine which offers both in memory and disk based +tables. Embedded and server modes are available. Additionally, it +includes tools such as a minimal web server, in-memory query and +management tools (can be run as applets or servlets, too) and a number +of demonstration examples. +Downloaded code should be regarded as being of production quality. The +product is currently being used as a database and persistence engine in +many Open Source Software projects and even in commercial projects and +products! In it's current version it is extremely stable and reliable. +It is best known for its small size, ability to execute completely in +memory and its speed. Yet it is a completely functional relational +database management system that is completely free under the Modified +BSD License. Yes, that's right, completely free of cost or restrictions! + +%package javadoc +Summary: Javadoc for %{name} +%description javadoc +Javadoc for %{name}. + +%prep +%setup -q -n hsqldb +find . -name "*.sh" -exec chmod 755 \{\} \; +for dir in `find . -name _notes`; do rm -rf $dir; done +find . -name "*.jar" -exec rm -f {} \; +find . -name "*.class" -exec rm -f {} \; +find . -name "*.war" -exec rm -f {} \; +chmod -R go=u-w * +%patch0 -p1 +cp %{SOURCE1} ./pom.xml +%mvn_file hsqldb:hsqldb %{name} +%mvn_compat_version : %{majorversion} + +%build +export CLASSPATH=$(build-classpath glassfish-servlet-api junit) +pushd build +ant jar javadoc +popd + +%install +%mvn_artifact pom.xml lib/hsqldb.jar +%mvn_install -J doc/src + +%files -f .mfiles +%license doc/hsqldb_lic.txt + +%files javadoc -f .mfiles-javadoc +%license doc/hsqldb_lic.txt + +%changelog +* Mon Jul 27 2020 leiju - 1.8.1.3-1 +- Package init diff --git a/hsqldb1.yaml b/hsqldb1.yaml new file mode 100644 index 0000000..fb3cca8 --- /dev/null +++ b/hsqldb1.yaml @@ -0,0 +1,4 @@ +version_control: svn +src_repo: https://svn.code.sf.net/p/hsqldb/svn/ +tag_prefix: "hsqldb_" +seperator: "_" diff --git a/hsqldb_1_8_1_3.zip b/hsqldb_1_8_1_3.zip new file mode 100644 index 0000000..42563da Binary files /dev/null and b/hsqldb_1_8_1_3.zip differ