Name: xapool Version: 1.5.0 Release: 1%{?dist} Summary: open source XA JDBC Pool Group: Development/Libraries License: LGPL URL: http://xapool.ow2.org/ Source0: http://download.forge.objectweb.org/%{name}/%{name}-%{version}-src.tgz Source1: http://repo1.maven.org/maven2/com/experlog/%{name}/%{version}/%{name}-%{version}.pom # disable p6spy howl-logger oracle classes12 support Patch0: %{name}-%{version}-build.patch Patch1: %{name}-%{version}-jdk7.patch BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: ant BuildRequires: apache-commons-logging BuildRequires: geronimo-jta Requires: java Requires: jpackage-utils BuildArch: noarch %description XAPool is a software component which allows to: - Store objects with a Generic Pool - Export a DataSource (javax.sql.DataSource) - Export a XADataSource (javax.sql.XADataSource) %package javadoc Group: Documentation Summary: Javadoc for %{name} Requires: jpackage-utils %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n xapool-%{version}-src find . -name "*.jar" -delete find . -name "*.class" -delete find . -name "*.java~" -delete rm -rf $(find . -name "CVS") %patch0 -p0 %patch1 -p1 sed -i "s|Class-Path: idb.jar classes12.jar jta-spec1_0_1.jar log4j.jar commons-logging.jar p6psy.jar||" archive/xapool.mf ln -sf $(build-classpath commons-logging) externals/ ln -sf $(build-classpath geronimo-jta) externals/ rm -r src/org/enhydra/jdbc/instantdb \ src/org/enhydra/jdbc/oracle %build ant dist %install mkdir -p %{buildroot}%{_javadir} install -m 644 output/dist/lib/%{name}.jar \ %{buildroot}%{_javadir}/%{name}.jar mkdir -p %{buildroot}%{_mavenpomdir} install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar mkdir -p %{buildroot}%{_javadocdir}/%{name} cp -pr output/dist/jdoc/* %{buildroot}%{_javadocdir}/%{name} %files %{_javadir}/%{name}.jar %{_mavenpomdir}/JPP-%{name}.pom %{_mavendepmapfragdir}/%{name} %doc README.txt %files javadoc %{_javadocdir}/%{name} %changelog * Sun Apr 22 2012 gil cattaneo 1.5.0-1 - initial rpm