[Jpackage-commits] rpms/free/xapool xapool-1.5.0.pom, 1.1, 1.2 xapool-build.patch, 1.1, 1.2 xapool.spec, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Wed Dec 22 21:24:25 CET 2010


Update of /home/projects/jpackage/cvs/rpms/free/xapool
In directory ryu.zarb.org:/tmp/SH65H0CMaC/rpms/free/xapool

Added Files:
	xapool-1.5.0.pom xapool-build.patch xapool.spec 
Log Message:
1.5.0-3.jpp6

--- NEW FILE: xapool.spec ---
# Copyright (c) 2000-2010, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define	section		free

Name:		xapool
Summary:	XAPOOL: open source XA Pool
Url:		http://xapool.experlog.com/
Version:	1.5.0
Release:	3%{?dist}
Epoch:		0
License:	LGPL
Group:		Development/Libraries/Java
BuildArch:	noarch
Source0:	xapool-%{version}-src.tgz
Source1:        http://repo1.maven.org/maven2/com/experlog/xapool/1.5.0/xapool-1.5.0.pom
Patch0:         xapool-build.patch
BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  java-devel >= 0:1.6.0
BuildRequires:	ant >= 0:1.7.1
BuildRequires:  jta_1_0_1B_api
Requires:  java >= 0:1.6.0
Requires(post):   jpackage-utils >= 0:1.7.5
Requires(postun): jpackage-utils >= 0:1.7.5

BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot

%description
XAPool is an open source XA Pool !
It allows to pool objects, JDBC connections 
and XA connections 

%package javadoc
Summary:	Javadoc for %{name}
Group:		Development/Documentation

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}-src
chmod -R go=u-w *
find . -name "*.jar" -exec rm -f {} \;
%patch0 -b .sav0

%build
pushd externals
ln -sf $(build-classpath jta_1_0_1B_api) jta-spec1_0_1.jar
popd

ant

%install
# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}

install -m 644 output/dist/lib/%{name}.jar \
        $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)
%add_to_maven_depmap com.experlog %{name} %{version} JPP %{name}
# pom
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom

# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr output/dist/jdoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} 

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(-,root,root)
%{_javadir}/*.jar
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*

%files javadoc
%defattr(-,root,root)
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}

%changelog
* Wed Dec 22 2010 Ralph Apel <r.apel at r-apel.de> 0:1.5.0-3
- First JPP-6 release
- Dropped most of the (B)Rs

* Wed Mar 18 2009 Ralph Apel <r.apel at r-apel.de> 0:1.5.0-2.jpp5
- First JPP-1.5 release

* Fri Mar 10 2006 Fernando Nasser <fnasser at redhat.com> 0:1.5.0-1jpp
- Update to 1.5
- First JPP 1.7 build

* Mon Oct 04 2004 Ralph Apel <r.apel at r-apel.de> 0:1.4-1jpp
- First release


--- NEW FILE: xapool-1.5.0.pom ---
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.experlog</groupId>
  <artifactId>xapool</artifactId>
  <version>1.5.0</version>
</project>
--- NEW FILE: xapool-build.patch ---
--- build.xml.sav	2009-03-17 21:06:16.000000000 +0100
+++ build.xml	2009-03-17 21:06:25.000000000 +0100
@@ -71,6 +71,7 @@
   <target name="compile.base">
     <mkdir dir="${build}/classes"/>
     <javac
+      source="1.4"
       srcdir="${src}"
       destdir="${build}/classes"
       deprecation="${compiler.deprecation}"
@@ -209,7 +210,7 @@
       packagenames="org.enhydra.*"
       destdir="${dist.jdoc}"
       windowtitle="XAPool Developer Documentation"
-      author="true" version="true" use="true" >
+      author="true" version="true" use="true"  source="1.4" >
       <doctitle><![CDATA[<h1>XAPool Developer Documentation</h1>]]></doctitle>
       <sourcepath>
         <pathelement path="${src}"/>




More information about the JPackage-commits mailing list