gil pushed to axion (master). "Initial import (#832804)."

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Apr 14 15:34:08 UTC 2015


>From 782c86d2ad904a97d220d51c9af71e158893dd4d Mon Sep 17 00:00:00 2001
From: gil <puntogil at libero.it>
Date: Tue, 14 Apr 2015 17:33:54 +0200
Subject: Initial import (#832804).


diff --git a/.gitignore b/.gitignore
index e69de29..3559c04 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/axion-1.0-M3-dev-clean-src-cvs20120617.tar.gz
diff --git a/axion-1.0-M3-dev-build.patch b/axion-1.0-M3-dev-build.patch
new file mode 100644
index 0000000..55042c1
--- /dev/null
+++ b/axion-1.0-M3-dev-build.patch
@@ -0,0 +1,10 @@
+--- build.xml	2008-04-15 03:08:33.000000000 +0200
++++ build.xml-gil	2012-06-17 12:03:19.724547776 +0200
+@@ -196,7 +196,6 @@
+                debug="${javac.debug}"
+                deprecation="${javac.deprecation}"
+                optimize="${javac.optimize}"
+-               target="${javac.minVMVersion}"
+                nowarn="${javac.nowarn}"
+                >
+             <classpath refid="classpath" />
diff --git a/axion-1.0-M3-dev-jdk7.patch b/axion-1.0-M3-dev-jdk7.patch
new file mode 100644
index 0000000..b8a9dc6
--- /dev/null
+++ b/axion-1.0-M3-dev-jdk7.patch
@@ -0,0 +1,251 @@
+diff -Nru src/org/axiondb/jdbc/AxionConnection.java src/org/axiondb/jdbc-gil/AxionConnection.java
+--- src/org/axiondb/jdbc/AxionConnection.java	2007-11-13 20:04:01.000000000 +0100
++++ src/org/axiondb/jdbc-gil/AxionConnection.java	2012-06-17 12:49:47.000000000 +0200
+@@ -52,6 +52,7 @@
+ import java.sql.ResultSet;
+ import java.sql.SQLClientInfoException;
+ import java.sql.SQLException;
++import java.sql.SQLFeatureNotSupportedException;
+ import java.sql.SQLWarning;
+ import java.sql.SQLXML;
+ import java.sql.Savepoint;
+@@ -60,6 +61,7 @@
+ import java.util.Collections;
+ import java.util.Map;
+ import java.util.Properties;
++import java.util.concurrent.Executor;
+ 
+ import org.axiondb.AxionException;
+ import org.axiondb.Database;
+@@ -491,5 +493,25 @@
+ 	public <T> T unwrap(Class<T> arg0) throws SQLException {
+         throw new SQLException("Not implemented");
+ 	}
+-    
++
++	public int getNetworkTimeout() throws SQLException { 
++        throw new SQLFeatureNotSupportedException();
++	}
++
++	public void setNetworkTimeout(Executor executor, int timeout) throws SQLException {
++        throw new SQLFeatureNotSupportedException();
++	}
++
++	public void abort(Executor executor) throws SQLException {
++        throw new SQLFeatureNotSupportedException();
++	}
++
++	public String getSchema() throws SQLException {
++        throw new SQLFeatureNotSupportedException();
++	}
++
++	public void setSchema(String schema) throws SQLException {
++        throw new SQLFeatureNotSupportedException();
++	}
++
+ }
+\ Manca newline alla fine del file
+diff -Nru src/org/axiondb/jdbc/AxionDatabaseMetaData.java src/org/axiondb/jdbc-gil/AxionDatabaseMetaData.java
+--- src/org/axiondb/jdbc/AxionDatabaseMetaData.java	2007-11-13 20:04:01.000000000 +0100
++++ src/org/axiondb/jdbc-gil/AxionDatabaseMetaData.java	2012-06-17 12:54:30.000000000 +0200
+@@ -45,6 +45,7 @@
+ import java.sql.ResultSet;
+ import java.sql.RowIdLifetime;
+ import java.sql.SQLException;
++import java.sql.SQLFeatureNotSupportedException;
+ import java.sql.Statement;
+ 
+ import org.axiondb.Database;
+@@ -1332,4 +1333,12 @@
+ 	public <T> T unwrap(Class<T> arg0) throws SQLException {
+ 		throw new SQLException("Not supported");
+ 	}
++
++	public boolean generatedKeyAlwaysReturned() throws SQLException {
++		throw new SQLFeatureNotSupportedException();
++	}
++
++	public ResultSet getPseudoColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException {
++		throw new SQLFeatureNotSupportedException();
++	}
+ }
+diff -Nru src/org/axiondb/jdbc/AxionDataSource.java src/org/axiondb/jdbc-gil/AxionDataSource.java
+--- src/org/axiondb/jdbc/AxionDataSource.java	2007-11-13 20:04:01.000000000 +0100
++++ src/org/axiondb/jdbc-gil/AxionDataSource.java	2012-06-17 12:51:42.000000000 +0200
+@@ -41,8 +41,11 @@
+ package org.axiondb.jdbc;
+ 
+ import java.io.PrintWriter;
++import java.lang.NullPointerException;
++import java.util.logging.Logger;
+ import java.sql.Connection;
+ import java.sql.SQLException;
++import java.sql.SQLFeatureNotSupportedException;
+ 
+ import javax.sql.DataSource;
+ 
+@@ -103,4 +106,8 @@
+ 	public <T> T unwrap(Class<T> arg0) throws SQLException {
+ 		throw new SQLException("Not supported");
+ 	}
++
++	public Logger getParentLogger() throws SQLFeatureNotSupportedException {
++		throw new NullPointerException();
++	}
+ }
+diff -Nru src/org/axiondb/jdbc/AxionDriver.java src/org/axiondb/jdbc-gil/AxionDriver.java
+--- src/org/axiondb/jdbc/AxionDriver.java	2003-07-10 01:56:17.000000000 +0200
++++ src/org/axiondb/jdbc-gil/AxionDriver.java	2012-06-17 12:57:40.000000000 +0200
+@@ -40,11 +40,13 @@
+ 
+ package org.axiondb.jdbc;
+ 
++import java.lang.NullPointerException;
+ import java.sql.Connection;
+ import java.sql.Driver;
+ import java.sql.DriverManager;
+ import java.sql.DriverPropertyInfo;
+ import java.sql.SQLException;
++import java.sql.SQLFeatureNotSupportedException;
+ import java.util.Properties;
+ 
+ import org.axiondb.AxionException;
+@@ -94,4 +96,8 @@
+    public boolean jdbcCompliant() {
+       return false;
+    }
++
++   public java.util.logging.Logger getParentLogger() throws SQLFeatureNotSupportedException {
++      throw new NullPointerException();
++   }
+ }
+diff -Nru src/org/axiondb/jdbc/AxionPreparedStatement.java src/org/axiondb/jdbc-gil/AxionPreparedStatement.java
+--- src/org/axiondb/jdbc/AxionPreparedStatement.java	2007-11-13 20:04:01.000000000 +0100
++++ src/org/axiondb/jdbc-gil/AxionPreparedStatement.java	2012-06-17 13:02:39.000000000 +0200
+@@ -62,6 +62,7 @@
+ import java.sql.ResultSetMetaData;
+ import java.sql.RowId;
+ import java.sql.SQLException;
++import java.sql.SQLFeatureNotSupportedException;
+ import java.sql.SQLWarning;
+ import java.sql.SQLXML;
+ import java.sql.Statement;
+@@ -514,4 +515,11 @@
+ 		throw new SQLException("Not supported");
+ 	}
+ 
++	public boolean isCloseOnCompletion() throws SQLException {
++		throw new SQLFeatureNotSupportedException();
++	}
++
++	public void closeOnCompletion() throws SQLException {
++		throw new SQLFeatureNotSupportedException();
++	}
+ }
+diff -Nru src/org/axiondb/jdbc/AxionResultSet.java src/org/axiondb/jdbc-gil/AxionResultSet.java
+--- src/org/axiondb/jdbc/AxionResultSet.java	2007-11-13 20:04:01.000000000 +0100
++++ src/org/axiondb/jdbc-gil/AxionResultSet.java	2012-06-17 12:43:37.000000000 +0200
+@@ -57,6 +57,7 @@
+ import java.sql.ResultSetMetaData;
+ import java.sql.RowId;
+ import java.sql.SQLException;
++import java.sql.SQLFeatureNotSupportedException;
+ import java.sql.SQLWarning;
+ import java.sql.SQLXML;
+ import java.sql.Statement;
+@@ -1632,4 +1633,12 @@
+ 	public <T> T unwrap(Class<T> arg0) throws SQLException {
+ 		throw new SQLException("Not supported.");
+ 	}
++
++	public <T> T getObject(int parameterIndex, Class<T> arg0) throws SQLException {
++		throw new SQLFeatureNotSupportedException();
++	}
++
++	public <T> T getObject(String parameterName, Class<T> arg0) throws SQLException {
++		throw new SQLFeatureNotSupportedException();
++	}
+ }
+\ Manca newline alla fine del file
+diff -Nru src/org/axiondb/jdbc/AxionStatement.java src/org/axiondb/jdbc-gil/AxionStatement.java
+--- src/org/axiondb/jdbc/AxionStatement.java	2007-11-13 20:04:01.000000000 +0100
++++ src/org/axiondb/jdbc-gil/AxionStatement.java	2012-06-17 13:01:02.000000000 +0200
+@@ -40,9 +40,11 @@
+ 
+ package org.axiondb.jdbc;
+ 
++import java.lang.NullPointerException;
+ import java.sql.BatchUpdateException;
+ import java.sql.ResultSet;
+ import java.sql.SQLException;
++import java.sql.SQLFeatureNotSupportedException;
+ import java.sql.SQLWarning;
+ import java.sql.Statement;
+ import java.util.Iterator;
+@@ -374,4 +376,16 @@
+ 	public <T> T unwrap(Class<T> arg0) throws SQLException {
+ 		throw new SQLException("Not supported");
+ 	}
++
++	public java.util.logging.Logger getParentLogger() throws SQLFeatureNotSupportedException {
++		throw new NullPointerException();
++	}
++
++	public boolean isCloseOnCompletion() throws SQLException {
++		throw new SQLFeatureNotSupportedException();
++	}
++
++	public void closeOnCompletion() throws SQLException {
++		throw new SQLFeatureNotSupportedException();
++	}
+ }
+diff -Nru src/org/axiondb/jdbc/ForwardOnlyResultSet.java src/org/axiondb/jdbc-gil/ForwardOnlyResultSet.java
+--- src/org/axiondb/jdbc/ForwardOnlyResultSet.java	2007-11-13 20:04:01.000000000 +0100
++++ src/org/axiondb/jdbc-gil/ForwardOnlyResultSet.java	2012-06-17 13:30:58.000000000 +0200
+@@ -45,6 +45,7 @@
+ import java.sql.ResultSet;
+ import java.sql.RowId;
+ import java.sql.SQLException;
++import java.sql.SQLFeatureNotSupportedException;
+ import java.sql.SQLXML;
+ import java.util.Map;
+ 
+@@ -373,4 +374,12 @@
+ 	public <T> T unwrap(Class<T> arg0) throws SQLException {
+ 		throw new SQLException("Not supported");
+ 	}
++
++	public <T> T getObject(int parameterIndex, Class<T> arg0) throws SQLException {
++		throw new SQLFeatureNotSupportedException();
++	}
++
++	public <T> T getObject(String parameterName, Class<T> arg0) throws SQLException {
++		throw new SQLFeatureNotSupportedException();
++	}
+ }
+\ Manca newline alla fine del file
+diff -Nru src/org/axiondb/jdbc/UnmodifiableResultSet.java src/org/axiondb/jdbc-gil/UnmodifiableResultSet.java
+--- src/org/axiondb/jdbc/UnmodifiableResultSet.java	2007-11-13 20:04:01.000000000 +0100
++++ src/org/axiondb/jdbc-gil/UnmodifiableResultSet.java	2012-06-17 13:32:08.000000000 +0200
+@@ -51,6 +51,7 @@
+ import java.sql.ResultSet;
+ import java.sql.RowId;
+ import java.sql.SQLException;
++import java.sql.SQLFeatureNotSupportedException;
+ import java.sql.SQLXML;
+ import java.sql.Time;
+ import java.sql.Timestamp;
+@@ -593,4 +594,12 @@
+ 	public <T> T unwrap(Class<T> arg0) throws SQLException {
+ 		throw new SQLException("Not implemented");
+ 	}
++
++	public <T> T getObject(int parameterIndex, Class<T> arg0) throws SQLException {
++		throw new SQLFeatureNotSupportedException();
++	}
++
++	public <T> T getObject(String parameterName, Class<T> arg0) throws SQLException {
++		throw new SQLFeatureNotSupportedException();
++	}
+ }
+\ Manca newline alla fine del file
diff --git a/axion-1.0-M3-dev.pom b/axion-1.0-M3-dev.pom
new file mode 100644
index 0000000..a4fdd2d
--- /dev/null
+++ b/axion-1.0-M3-dev.pom
@@ -0,0 +1,38 @@
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>axion</groupId>
+  <artifactId>axion</artifactId>
+  <version>1.0-M3-dev</version>
+  <dependencies>
+    <dependency>
+      <groupId>commons-collections</groupId>
+      <artifactId>commons-collections</artifactId>
+      <version>3.0</version>
+    </dependency>
+    <dependency>
+      <groupId>commons-primitives</groupId>
+      <artifactId>commons-primitives</artifactId>
+      <version>1.0</version>
+    </dependency>
+    <dependency>
+      <groupId>commons-logging</groupId>
+      <artifactId>commons-logging</artifactId>
+      <version>1.0</version>
+    </dependency>
+    <dependency>
+      <groupId>commons-codec</groupId>
+      <artifactId>commons-codec</artifactId>
+      <version>1.2</version>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+    </dependency>
+    <dependency>
+      <groupId>javacc</groupId>
+      <artifactId>javacc</artifactId>
+      <version>3.2</version>
+    </dependency>
+  </dependencies>
+</project>
\ No newline at end of file
diff --git a/axion.spec b/axion.spec
new file mode 100644
index 0000000..0591c44
--- /dev/null
+++ b/axion.spec
@@ -0,0 +1,113 @@
+%global namedreltag -M3-dev
+%global namedversion %{version}%{?namedreltag}
+Name:          axion
+Version:       1.0
+Release:       0.2.M3.dev%{?dist}
+Summary:       Open Source Java Database
+License:       BSD
+URL:           http://axion.tigris.org/
+# cvs -d :pserver:guest at cvs.tigris.org:/cvs login
+# pwd guest
+# cvs -d :pserver:guest at cvs.tigris.org:/cvs checkout -r HEAD axion
+# rm -rf axion/www
+# find axion -name '*.jar' -delete
+# find axion -name '*.class' -delete
+# rm -rf $(find axion -name 'CVS')
+# tar czf axion-1.0-M3-dev-clean-src-cvs20120617.tar.gz axion
+Source0:       %{name}-%{namedversion}-clean-src-cvs20120617.tar.gz
+Source1:       http://repo1.maven.org/maven2/%{name}/%{name}/%{namedversion}/%{name}-%{namedversion}.pom
+# remove javac.minVMVersion
+Patch0:        %{name}-%{namedversion}-build.patch
+# jdbc 4.x support
+Patch1:        %{name}-%{namedversion}-jdk7.patch
+
+BuildRequires: ant
+BuildRequires: ant-junit
+BuildRequires: java-devel
+BuildRequires: javapackages-local
+BuildRequires: mvn(commons-codec:commons-codec)
+BuildRequires: mvn(commons-collections:commons-collections)
+BuildRequires: mvn(commons-logging:commons-logging)
+BuildRequires: mvn(commons-primitives:commons-primitives)
+BuildRequires: mvn(jakarta-regexp:jakarta-regexp)
+BuildRequires: mvn(junit:junit)
+BuildRequires: mvn(log4j:log4j:1.2.17)
+BuildRequires: mvn(net.java.dev.javacc:javacc)
+# docs BR
+BuildRequires: mvn(xalan:xalan)
+BuildRequires: mvn(xerces:xercesImpl)
+
+BuildArch:     noarch
+
+%description
+Axion is a small, fast, open source relational
+database system (RDBMS) supporting SQL and JDBC
+written in and for the Java programming language.
+
+%package javadoc
+Summary:       Javadoc for %{name}
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q -n axion
+
+cp -p %{SOURCE1} pom.xml
+%pom_xpath_set "pom:dependency[pom:artifactId = 'javacc']/pom:groupId" net.java.dev.javacc
+
+%patch0 -p0
+%patch1 -p0
+
+# fix non ASCII chars
+for s in src/org/axiondb/engine/commands/AxionQueryPlanner.java\
+  src/org/axiondb/engine/rowiterators/IndexNestedLoopJoinedRowIterator.java;do
+  native2ascii -encoding UTF8 ${s} ${s}
+done
+
+%build
+export CLASSPATH=$(build-classpath commons-primitives commons-codec ant/ant-junit regexp):bin/classes:bin/test/classes
+%ant \
+  -Dcodec.jar=$(build-classpath commons-codec) \
+  -Dcollections.jar=$(build-classpath commons-collections) \
+  -Dcollections-primitives.jar=$(build-classpath commons-primitives) \
+  -Dcommons-primitives.jar=$(build-classpath commons-primitives) \
+  -Dlogging.jar=$(build-classpath commons-logging) \
+%if %{?fedora} > 20
+  -Dlogging-impl.jar=$(build-classpath log4j12-1.2.17) \
+%else
+  -Dlogging-impl.jar=$(build-classpath log4j) \
+%endif
+  -Djavacc.jar=$(build-classpath javacc) \
+  -Djavacc.home=%{_javadir} \
+  -Djunit.jar=$(build-classpath junit) \
+  -Dregexp.jar=$(build-classpath regexp) \
+  -Dtest.failonerror=false \
+  jar doc
+
+cat > docs/build.properties << EOF
+xalan.jar=$(build-classpath xalan-j2)
+xerces.jar=$(build-classpath xerces-j2)
+sax.jar=$(build-classpath xerces-j2)
+EOF
+
+%ant -f docs/build.xml doc
+
+%install
+%mvn_artifact pom.xml bin/%{name}-%{namedversion}.jar
+%mvn_file :%{name} %{name}
+%mvn_install -J bin/docs/api
+
+%files -f .mfiles
+%doc www/*
+%license LICENSE.txt
+
+%files javadoc -f .mfiles-javadoc
+%license LICENSE.txt
+
+%changelog
+* Mon Apr 13 2015 gil cattaneo <puntogil at libero.it> 1.0-0.2.M3.dev
+- fix license field
+
+* Sun Jun 17 2012 gil cattaneo <puntogil at libero.it> 1.0-0.1.M3.dev
+- initial rpm
diff --git a/sources b/sources
index e69de29..48f7c35 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a6031b019ee3971e0d4ba1f5bbc36351  axion-1.0-M3-dev-clean-src-cvs20120617.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/axion.git/commit/?h=master&id=782c86d2ad904a97d220d51c9af71e158893dd4d


More information about the scm-commits mailing list