diff --git a/README.md b/README.md index 472fdbb..6382eb3 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # java-xapool +XAPool is an XA database connection pool. XAPool implements javax.sql.XADataSource, and +provides connection pooling facilities. XAPool allows to pool objects, JDBC connections and +XA connections. + diff --git a/java-xapool-1.5.0-build_xml.patch b/java-xapool-1.5.0-build_xml.patch new file mode 100644 index 0000000..e6c78ec --- /dev/null +++ b/java-xapool-1.5.0-build_xml.patch @@ -0,0 +1,19 @@ +--- xapool-1.5.0-src/build.xml 2005-05-03 12:09:01.000000000 +0200 ++++ xapool-1.5.0-src/build.xml-gil 2009-10-10 18:02:04.000000000 +0200 +@@ -71,6 +71,7 @@ + + + ++ author="true" version="true" use="true" source="1.4" > + XAPool Developer Documentation]]> + + diff --git a/java-xapool-1.5.0.pom b/java-xapool-1.5.0.pom new file mode 100644 index 0000000..66d45ab --- /dev/null +++ b/java-xapool-1.5.0.pom @@ -0,0 +1,6 @@ + + 4.0.0 + com.experlog + xapool + 1.5.0 + \ No newline at end of file diff --git a/java-xapool.spec b/java-xapool.spec new file mode 100644 index 0000000..85af32d --- /dev/null +++ b/java-xapool.spec @@ -0,0 +1,137 @@ +%define javahome /usr/lib/jvm/jdk-gcj +Name: java-xapool +Version: 1.5.0 +Release: 3mamba +Summary: XA database connection pool +Group: Development/Libraries/Java +Vendor: openmamba +Distribution: openmamba +Packager: gil +URL: http://xapool.ow2.org/ +Source0: http://download.forge.objectweb.org/xapool/xapool-%{version}-src.tgz +Source1: java-xapool-1.5.0.pom +Patch0: java-xapool-1.5.0-build_xml.patch +License: LGPL +BuildRequires: apache-ant +BuildRequires: apache-geronimo-1.2-specs +BuildRequires: apache-log4j +BuildRequires: jakarta-commons-logging +BuildRequires: java-carol +BuildRequires: java-gcj-compat +BuildRequires: java-hsqldb +BuildRequires: java-jotm +BuildRequires: java-junit3 +BuildRequires: java-p6spy +BuildRequires: jpackage-utils +Requires: apache-log4j +Requires: jakarta-commons-logging +Requires: java-carol +Requires: java-jotm +Requires: java-p6spy +Requires: jpackage-utils +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +XAPool is an XA database connection pool. XAPool implements javax.sql.XADataSource, and +provides connection pooling facilities. XAPool allows to pool objects, JDBC connections and +XA connections. + +%package javadoc +Group: Documentation +Summary: Javadoc for %{name} + +%description javadoc +XAPool is an XA database connection pool. + +This package contains javadoc for %{name} + +%prep + +%setup -q -n xapool-%{version}-src +%patch0 -p1 + +for j in $(find . -name "*.jar"); do + mv $j $j.no +done + +pushd externals + ln -sf $(build-classpath carol/ow_carol) carol.jar + ln -sf $(build-classpath howl-logger) howl.jar + ln -sf $(build-classpath jotm/jotm) jotm.jar + ln -sf $(build-classpath jotm/jotm_jrmp_stubs) jotm_jrmp_stubs.jar + ln -sf $(build-classpath commons-logging) commons-logging.jar + ln -sf $(build-classpath geronimo/j2ee-connector-1.5-api-1.1.1) connector-1_5.jar + ln -sf $(build-classpath geronimo/jta-1.0.1B-api-1.1.1) jta-spec1_0_1.jar + ln -sf $(build-classpath log4j) log4j.jar + ln -sf $(build-classpath junit-3.8.2) junit.jar + ln -sf $(build-classpath p6spy) p6spy.jar + +# mv externals/jonas_timer.jar.no +# mv externals/idb.jar.no +# mv externals/classes12.jar.no oracle-jdbc-thin +popd + +ln -sf $(build-classpath hsqldb) test/jotmxapooltest/lib/hsqldb.jar + +%build +export JAVA_HOME=%javahome +export CLASSPATH="" +CLASSPATH=$CLASSPATH:$(build-classpath commons-logging carol/ow_carol howl-logger) +CLASSPATH=$CLASSPATH:$(build-classpath geronimo/j2ee-connector-1.5-api geronimo/jta-1.0.1B-api) +CLASSPATH=$CLASSPATH:$(build-classpath log4j jotm/jotm jotm/jotm_jrmp_stubs hsqldb p6spy) +ant + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +mkdir -p %{buildroot}%{_javadir} +mkdir -p %{buildroot}%{_datadir}/maven2/poms + +install -m 644 output/dist/lib/xapool.jar \ + %{buildroot}%{_javadir}/xapool-%{version}.jar +%add_to_maven_depmap com.experlog xapool %{version} JPP xapool +install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/maven2/poms/JPP-xapool.pom + +( + cd %{buildroot}%{_javadir} + for jar in *-%{version}*; do + ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"` + done +) + +mkdir -p %{buildroot}%{_javadocdir}/xapool-%{version} +cp -pr output/dist/jdoc/* %{buildroot}%{_javadocdir}/xapool-%{version} +ln -s xapool-%{version} %{buildroot}%{_javadocdir}/xapool + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +%update_maven_depmap + +%postun +%update_maven_depmap + +%files +%defattr(-,root,root) +%{_javadir}/xapool-%{version}.jar +%{_javadir}/xapool.jar +%{_datadir}/maven2/poms +%{_mavendepmapfragdir} +%doc README.txt + +%files javadoc +%defattr(-,root,root) +%{_javadocdir}/xapool-%{version} +%{_javadocdir}/xapool + +%changelog +* Sun Mar 06 2011 gil 1.5.0-3mamba +- add java-p6spy support +- rebuilt with java-gcj-compat support + +* Thu Nov 25 2010 gil 1.5.0-2mamba +- rebuilt devel + +* Thu Aug 20 2009 gil 1.5.0-1mamba +- package created by autospec