[Jpackage-commits] dist/hibernate2-tools/devel .cvsignore, 1.1, 1.2 hibernate-tools-2.1.3.pom, NONE, 1.1 hibernate2-tools-MapGenerator.patch, NONE, 1.1 hibernate2-tools.spec, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Wed May 28 20:19:57 CEST 2008


Update of /home/projects/jpackage/cvs/dist/hibernate2-tools/devel
In directory ryu.zarb.org:/tmp/cvs-serv9344/devel

Modified Files:
	.cvsignore sources 
Added Files:
	hibernate-tools-2.1.3.pom hibernate2-tools-MapGenerator.patch 
	hibernate2-tools.spec 
Log Message:
Import from JPP 5.0

--- NEW FILE: hibernate2-tools.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

Summary:        Hibernate tools
Name:           hibernate2-tools
Version:        2.1.3
Release:        1jpp
Epoch:          0
License:        LGPL
URL:            http://www.hibernate.org/
Group:          Database
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
Source0:        http://downloads.sourceforge.net/hibernate/hibernate-extensions-2.1.3.tar.gz
Source1:        http://repo1.maven.org/maven2/net/sf/hibernate/hibernate-tools/2.1.3/hibernate-tools-2.1.3.pom
Patch0:         hibernate2-tools-MapGenerator.patch


BuildRequires:  jpackage-utils >= 0:1.7.4
BuildRequires:  java-devel = 0:1.5.0
BuildRequires:  ant >= 0:1.6.5
BuildRequires:  hibernate2
BuildRequires:  jakarta-commons-collections
BuildRequires:  jakarta-commons-lang
BuildRequires:  jakarta-commons-logging
BuildRequires:  jdom
BuildRequires:  velocity
Requires:  java >= 0:1.5.0
Requires:  hibernate2
Requires:  jakarta-commons-collections
Requires:  jakarta-commons-lang
Requires:  jakarta-commons-logging
Requires:  jdom
Requires:  velocity
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires(post):    jpackage-utils >= 0:1.7.4
Requires(postun):  jpackage-utils >= 0:1.7.4

%description
Hibernate tools.


%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Documentation
Requires(post):   /bin/rm,/bin/ln
Requires(postun): /bin/rm

%description javadoc
%{summary}.

%package manual
Summary:        Documents for %{name}
Group:          Development/Documentation

%description manual
%{summary}.

%prep
%setup -q -n hibernate-extensions-%{version}
# remove all binary libs
for j in $(find . -name "*.jar"); do
    mv $j $j.no
done

%patch0 -b .sav0

%build
export JAVA_HOME=%{_jvmdir}/java-1.5.0
export CLASSPATH=$(build-classpath \
commons-collections \
commons-lang \
commons-logging \
hibernate2 \
jdom \
velocity \
)
pushd tools
ant -Dbuild.sysclasspath=only 
popd

%install
rm -rf $RPM_BUILD_ROOT

# jars
mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p tools/target/hibernate-tools-%{version}/hibernate-tools.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
%add_to_maven_depmap hibernate hibernate-tools %{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
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr tools/target/hibernate-tools-%{version}/doc/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

%clean
rm -rf $RPM_BUILD_ROOT

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

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

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(0644,root,root,0755)
%doc lgpl.txt
%{_javadir}/*.jar
%{_datadir}/maven2
%{_mavendepmapfragdir}

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

%changelog
* Mon Apr 21 2008 Ralph Apel <r.apel at r-apel.de> - 0:2.1.3-1jpp
- 2.1.3


Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/hibernate2-tools/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	28 May 2008 18:19:40 -0000	1.1
--- sources	28 May 2008 18:19:54 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ 17ef267da85963266e2157a44a0f15ff  hibernate-extensions-2.1.3.tar.gz

--- NEW FILE: hibernate-tools-2.1.3.pom ---
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>net.sf.hibernate</groupId>
  <artifactId>hibernate-tools</artifactId>
  <name>hibernate-tools</name>
  <version>2.1.3</version>
  <dependencies>
    <dependency>
      <groupId>net.sf.hibernate</groupId>
      <artifactId>hibernate</artifactId>
      <version>2.1.3</version>
    </dependency>
    <dependency>
      <groupId>jdom</groupId>
      <artifactId>jdom</artifactId>
      <version>1.0</version>
    </dependency>
  </dependencies>
</project>
Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/hibernate2-tools/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	28 May 2008 18:19:40 -0000	1.1
--- .cvsignore	28 May 2008 18:19:54 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ hibernate-extensions-2.1.3.tar.gz

--- NEW FILE: hibernate2-tools-MapGenerator.patch ---
--- tools/src/java/net/sf/hibernate/tool/ddl2hbm/MapGenerator.java.sav	2008-04-02 18:48:07.000000000 +0200
+++ tools/src/java/net/sf/hibernate/tool/ddl2hbm/MapGenerator.java	2008-04-02 18:48:26.000000000 +0200
@@ -73,7 +73,7 @@
 			DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
 			docBuilder = dbf.newDocumentBuilder();
 			tFactory = TransformerFactory.newInstance();
-			jdomBuilder = new org.jdom.input.DOMBuilder(false);
+			jdomBuilder = new org.jdom.input.DOMBuilder();
 		}
 		catch (Exception e) {
 			throw new RuntimeException(e.getMessage());




More information about the JPackage-commits mailing list