[Jpackage-commits] dist/apache-ibatis/devel .cvsignore, 1.1, 1.2 apache-ibatis.spec, NONE, 1.1 ibatis-2.2.0-build_xml.patch, NONE, 1.1 ibatis-sqlmap-2.2.0.pom, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Wed May 28 19:41:58 CEST 2008


Update of /home/projects/jpackage/cvs/dist/apache-ibatis/devel
In directory ryu.zarb.org:/tmp/cvs-serv29680/devel

Modified Files:
	.cvsignore sources 
Added Files:
	apache-ibatis.spec ibatis-2.2.0-build_xml.patch 
	ibatis-sqlmap-2.2.0.pom 
Log Message:
Import from JPP 5.0

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/apache-ibatis/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	28 May 2008 17:41:35 -0000	1.1
--- .cvsignore	28 May 2008 17:41:56 -0000	1.2
***************
*** 0 ****
--- 1,3 ----
+ iBATIS-SqlMaps-2-Tutorial_en.pdf
+ iBATIS-SqlMaps-2_en.pdf
+ ibatis-2.2.0.tar.gz

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/apache-ibatis/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	28 May 2008 17:41:35 -0000	1.1
--- sources	28 May 2008 17:41:56 -0000	1.2
***************
*** 0 ****
--- 1,3 ----
+ 51e410c4b2dfbf37d80b8f4f821ae327  iBATIS-SqlMaps-2-Tutorial_en.pdf
+ ec96b4615912647ff6a7135e8079764f  iBATIS-SqlMaps-2_en.pdf
+ 5e9702761e2427feaf826c09bc1c8666  ibatis-2.2.0.tar.gz

--- NEW FILE: apache-ibatis.spec ---
# Copyright (c) 2000-2008, 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
%define	oname		ibatis
%define	sversion	2.2.0
%define	aversion	1.0.0


Name:		apache-ibatis
Summary:	iBATIS SQL Maps and DAO Frameworks
Url:		http://ibatis.apache.org/
Version:	2.2.0
Release:	1jpp
Epoch:		0
License:	Apache Software License 2
Group:		Database
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
BuildArch:	noarch
Source0:	ibatis-2.2.0.tar.gz
# svn export http://svn.apache.org/repos/asf/ibatis/tags/java_release_2.2.0-638/mapper/mapper2/ ibatis-2.2.0
Source1:        ibatis-sqlmap-2.2.0.pom
Source2:        http://ibatis.apache.org/docs/java/pdf/iBATIS-SqlMaps-2_en.pdf
Source3:        http://ibatis.apache.org/docs/java/pdf/iBATIS-SqlMaps-2-Tutorial_en.pdf


Patch0:		ibatis-2.2.0-build_xml.patch

BuildRequires:  jpackage-utils >= 0:1.7.4
BuildRequires:  java-devel = 0:1.5.0
BuildRequires:	ant >= 0:1.6.5
BuildRequires:	ant-trax
BuildRequires:	ant-nodeps
BuildRequires:	ant-junit
BuildRequires:  junit
BuildRequires:	emma

BuildRequires:	cglib
BuildRequires:	derby
BuildRequires:	db-ojb
BuildRequires:	hsqldb
BuildRequires:	jakarta-commons-dbcp
BuildRequires:	jakarta-commons-lang
BuildRequires:	jakarta-commons-logging
BuildRequires:	jta_1_0_1B_api
BuildRequires:	log4j
BuildRequires:	xalan-j2
Requires:	java >= 0:1.5.0

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

%description
The iBATIS Data Mapper framework makes it easier to use a 
database with Java and .NET applications. iBATIS couples 
objects with stored procedures or SQL statements using a 
XML descriptor. Simplicity is the biggest advantage of the 
iBATIS Data Mapper over object relational mapping tools.

To use the iBATIS Data Mapper, you rely on your own objects, 
XML, and SQL. There is little to learn that you don't already 
know. With the iBATIS Data Mapper, you have the full power of 
both SQL and stored procedures at your fingertips.

%package sqlmap
Summary:	Ibatis SQL mapper
Group:		Database
Version:	%{sversion}

%description sqlmap
%{summary}.

%package abator-core
Summary:	Ibatis Core Code Generator
Group:		Database
Version:	%{aversion}

%description abator-core
%{summary}.

%package sqlmap-javadoc
Summary:	Javadoc for Ibatis SQL mapper
Group:		Development/Documentation
Version:	%{sversion}

%description sqlmap-javadoc
%{summary}.

%package abator-core-javadoc
Summary:	Javadoc for Ibatis Core Code Generator
Group:		Development/Documentation
Version:	%{aversion}

%description abator-core-javadoc
%{summary}.

%package abator-core-manual
Summary:	Documents for Ibatis Core Code Generator
Group:		Development/Documentation
Version:	%{aversion}

%description abator-core-manual
%{summary}.

%package sqlmap-manual
Summary:	Documents for Ibatis SQL Mapper
Group:		Development/Documentation
Version:	%{sversion}

%description sqlmap-manual
%{summary}.

%prep
%setup -q -n %{oname}-%{version}
#find . -name "*.jar" -exec rm -f {} \;
for j in $(find . -name "*.jar"); do
    mv $j $j.no
done

%patch0 -b .sav0

%build
pushd devlib
ln -sf $(build-classpath cglib-nodep)
ln -sf $(build-classpath commons-dbcp)
ln -sf $(build-classpath commons-lang)
ln -sf $(build-classpath commons-logging)
ln -sf $(build-classpath emma_ant)
ln -sf $(build-classpath emma)
ln -sf $(build-classpath db-ojb/db-ojb)
ln -sf $(build-classpath derby/derby)
ln -sf $(build-classpath hsqldb)
ln -sf $(build-classpath jta_1_0_1B_api)
ln -sf $(build-classpath junit)
ln -sf $(build-classpath log4j)
ln -sf $(build-classpath xalan-j2-serializer)
ln -sf $(build-classpath xalan-j2)
popd
pushd tools/abator/core/devlib/
ln -sf $(build-classpath hsqldb)
popd
export OPT_JAR_LIST="ant/ant-trax ant/ant-nodeps ant/ant-junit junit"
ant -f build/build.xml
cp build/exploded/lib/ibatis-common-2.jar tools/abator/core/devlib/
cp build/exploded/lib/ibatis-dao-2.jar tools/abator/core/devlib/
cp build/exploded/lib/ibatis-sqlmap-2.jar tools/abator/core/devlib/
pushd tools/abator/core
export CLASSPATH=$(build-classpath \
hsqldb \
)
CLASSPATH=$CLASSPATH:$(pwd)/devlib/ibatis-common-2.jar
CLASSPATH=$CLASSPATH:$(pwd)/devlib/ibatis-dao-2.jar
CLASSPATH=$CLASSPATH:$(pwd)/devlib/ibatis-sqlmap-2.jar
ant -f build/build.xml
popd

%install
rm -rf $RPM_BUILD_ROOT
# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 build/exploded/lib/ibatis-common-2.jar \
        $RPM_BUILD_ROOT%{_javadir}/%{name}-common-%{version}.jar
install -m 644 build/exploded/lib/ibatis-dao-2.jar \
        $RPM_BUILD_ROOT%{_javadir}/%{name}-dao-%{version}.jar
install -m 644 build/exploded/lib/ibatis-sqlmap-2.jar \
        $RPM_BUILD_ROOT%{_javadir}/%{name}-sqlmap-%{version}.jar
install -m 644 tools/abator/core/build/deploy/files/abator.jar \
        $RPM_BUILD_ROOT%{_javadir}/%{name}-abator-core-%{aversion}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{aversion}*; do ln -sf ${jar} `echo $jar| sed  "s|-%{aversion}||g"`; done)

# sqlmap javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-sqlmap-%{version}
cp -pr build/work/javadocs/dev $RPM_BUILD_ROOT%{_javadocdir}/%{name}-sqlmap-%{version}
cp -pr build/work/javadocs/user $RPM_BUILD_ROOT%{_javadocdir}/%{name}-sqlmap-%{version}
ln -s %{name}-sqlmap-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}-sqlmap # ghost symlink

# abator javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-abator-core-%{aversion}
cp -pr tools/abator/core/build/work/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-abator-core-%{aversion}
ln -s %{name}-abator-core-%{aversion} $RPM_BUILD_ROOT%{_javadocdir}/%{name}-abator-core # ghost symlink

# sqlmap manual
install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-sqlmap-%{version}
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_docdir}/%{name}-sqlmap-%{version}
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_docdir}/%{name}-sqlmap-%{version}

# abator-core manual
install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-abator-core-%{aversion}
cp -pr tools/abator/core/htmldoc/* $RPM_BUILD_ROOT%{_docdir}/%{name}-abator-core-%{aversion}

%clean
rm -rf $RPM_BUILD_ROOT

%post abator-core-javadoc
rm -f %{_javadocdir}/%{name}-abator-core
ln -s %{name}-abator-core-%{aversion} %{_javadocdir}/%{name}-abator-core

%postun abator-core-javadoc
if [ "$1" = "0" ]; then
  rm -f %{_javadocdir}/%{name}-abator-core
fi

%post sqlmap-javadoc
rm -f %{_javadocdir}/%{name}-sqlmap
ln -s %{name}-sqlmap-%{version} %{_javadocdir}/%{name}-sqlmap

%postun sqlmap-javadoc
if [ "$1" = "0" ]; then
  rm -f %{_javadocdir}/%{name}-sqlmap
fi

%files sqlmap
%defattr(-,root,root)
%{_javadir}/%{name}-common*.jar
%{_javadir}/%{name}-dao*.jar
%{_javadir}/%{name}-sqlmap*.jar
%doc doc/license.txt

%files abator-core
%defattr(-,root,root)
%{_javadir}/%{name}-abator-core*.jar

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

%files abator-core-javadoc
%defattr(-,root,root)
%{_javadocdir}/%{name}-abator-core-%{aversion}
%ghost %doc %{_javadocdir}/%{name}-abator-core

%files sqlmap-manual
%defattr(-,root,root)
%{_docdir}/%{name}-sqlmap-%{version}

%files abator-core-manual
%defattr(-,root,root)
%{_docdir}/%{name}-abator-core-%{aversion}

%changelog
* Mon Feb 18 2008 Ralph Apel <r.apel at r-apel.de> 0:2.2.0-1jpp
- 2.2.0 including abator-core-1.0.0

* Thu Mar 16 2006 Ralph Apel <r.apel at r-apel.de> 0:2.1.7-3jpp
- Restore ibatis1 compatibility from ibatis1 sources
- Resulting ibatis-sqlmap-1-x.jar identical to the one built 
  with the ibatis1 dependency

* Wed Mar 15 2006 Ralph Apel <r.apel at r-apel.de> 0:2.1.7-2jpp
- Make ibatis1 compatibility optional

* Thu Feb 23 2006 Ralph Apel <r.apel at r-apel.de> 0:2.1.7-1jpp
- Update to 2.1.7

* Sat Jul 09 2005 Ralph Apel <r.apel at r-apel.de> 0:2.0.6-2jpp
- Add commons-logging requirement

* Fri Oct 08 2004 Ralph Apel <r.apel at r-apel.de> 0:2.0.6-1jpp
- First release


--- NEW FILE: ibatis-sqlmap-2.2.0.pom ---
<?xml version="1.0" encoding="UTF-8"?><project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.apache.ibatis</groupId>
  <artifactId>ibatis-sqlmap</artifactId>
  <version>2.2.0</version>
</project>

--- NEW FILE: ibatis-2.2.0-build_xml.patch ---
--- build/build.xml.sav	2008-02-12 01:27:04.000000000 +0100
+++ build/build.xml	2008-02-12 01:27:59.000000000 +0100
@@ -262,7 +262,9 @@
   </target>
 
   <target name="all" depends="test.coverage, src.javadoc, deploy.zipfile">
+<!--
     <fail if="testsFailed" message="The tests did not pass"/>
+-->
   </target>
 
-</project>
\ No newline at end of file
+</project>




More information about the JPackage-commits mailing list