[hibernate3] Initial package

Andy Grimm arg at fedoraproject.org
Mon Apr 2 16:56:32 UTC 2012


commit 9d181b24ba2a6f67549bc21ada3fd1c2de465c62
Author: Andy Grimm <agrimm at gmail.com>
Date:   Mon Apr 2 12:56:20 2012 -0400

    Initial package

 .gitignore                           |    1 +
 hibernate-orm-disable-jdocbook.patch |   71 +++++++++++++++++++
 hibernate-orm-fix-ant-gid.patch      |   11 +++
 hibernate-orm-fix-cglib-gid.patch    |   33 +++++++++
 hibernate-orm-fix-jacc-gid-aid.patch |   13 ++++
 hibernate-orm-omit-modules.patch     |   19 +++++
 hibernate3.spec                      |  124 ++++++++++++++++++++++++++++++++++
 sources                              |    1 +
 8 files changed, 273 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e520e52 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/hibernate-orm-3.6.10.Final.tar.xz
diff --git a/hibernate-orm-disable-jdocbook.patch b/hibernate-orm-disable-jdocbook.patch
new file mode 100644
index 0000000..a05a18f
--- /dev/null
+++ b/hibernate-orm-disable-jdocbook.patch
@@ -0,0 +1,71 @@
+--- hibernate-orm-3.6.10.Final.orig/hibernate-parent/pom.xml	2012-02-08 19:26:33.000000000 -0500
++++ hibernate-orm-3.6.10.Final/hibernate-parent/pom.xml	2012-03-14 05:12:12.527361500 -0400
+@@ -117,12 +117,6 @@
+ 
+     <build>
+         <plugins>
+-            <plugin>
+-                <!-- Needed in order to load the proper 'artifact handler' for the 'jdocbook-style' packaging -->
+-                <groupId>org.jboss.maven.plugins</groupId>
+-                <artifactId>maven-jdocbook-style-plugin</artifactId>
+-                <extensions>true</extensions>
+-            </plugin>
+ 			<plugin>
+                 <groupId>org.codehaus.groovy.maven</groupId>
+                 <artifactId>gmaven-plugin</artifactId>
+@@ -221,55 +215,6 @@
+         <pluginManagement>
+             <plugins>
+                 <plugin>
+-                    <groupId>org.jboss.maven.plugins</groupId>
+-                    <artifactId>maven-jdocbook-plugin</artifactId>
+-                    <version>2.3.4</version>
+-                    <extensions>true</extensions>
+-                    <dependencies>
+-                        <dependency>
+-                            <groupId>org.hibernate</groupId>
+-                            <artifactId>hibernate-jdocbook-style</artifactId>
+-                            <version>2.0.1</version>
+-                            <type>jdocbook-style</type>
+-                        </dependency>
+-                    </dependencies>
+-                    <configuration>
+-                        <formats>
+-                            <format>
+-                                <formatName>pdf</formatName>
+-                                <stylesheetResource>classpath:/xslt/org/hibernate/jdocbook/xslt/pdf.xsl
+-                                </stylesheetResource>
+-                                <finalName>hibernate_reference.pdf</finalName>
+-                            </format>
+-                            <format>
+-                                <formatName>html_single</formatName>
+-                                <stylesheetResource>classpath:/xslt/org/hibernate/jdocbook/xslt/xhtml-single.xsl
+-                                </stylesheetResource>
+-                                <finalName>index.html</finalName>
+-                            </format>
+-                            <format>
+-                                <formatName>html</formatName>
+-                                <stylesheetResource>classpath:/xslt/org/hibernate/jdocbook/xslt/xhtml.xsl
+-                                </stylesheetResource>
+-                                <finalName>index.html</finalName>
+-                            </format>
+-                        </formats>
+-                        <options>
+-                            <xincludeSupported>true</xincludeSupported>
+-                            <xmlTransformerType>saxon</xmlTransformerType>
+-                            <!-- needed for uri-resolvers; can be ommitted if using 'current' uri scheme -->
+-                            <!--     could also locate the docbook dependency and inspect its version... -->
+-                            <docbookVersion>1.72.0</docbookVersion>
+-                            <localeSeparator>-</localeSeparator>
+-                        </options>
+-                    </configuration>
+-                </plugin>
+-                <plugin>
+-                    <groupId>org.jboss.maven.plugins</groupId>
+-                    <artifactId>maven-jdocbook-style-plugin</artifactId>
+-                    <version>2.0.0</version>
+-                </plugin>
+-                <plugin>
+                     <groupId>org.apache.maven.plugins</groupId>
+                     <artifactId>maven-javadoc-plugin</artifactId>
+                     <version>2.5</version>
diff --git a/hibernate-orm-fix-ant-gid.patch b/hibernate-orm-fix-ant-gid.patch
new file mode 100644
index 0000000..98b17a6
--- /dev/null
+++ b/hibernate-orm-fix-ant-gid.patch
@@ -0,0 +1,11 @@
+--- hibernate-orm-3.6.10.Final.orig/hibernate-core/pom.xml	2012-02-08 19:26:33.000000000 -0500
++++ hibernate-orm-3.6.10.Final/hibernate-core/pom.xml	2012-03-14 05:28:12.159272896 -0400
+@@ -139,7 +139,7 @@
+             </exclusions>
+         </dependency>
+         <dependency>
+-            <groupId>ant</groupId>
++            <groupId>org.apache.ant</groupId>
+             <artifactId>ant</artifactId>
+             <version>1.6.5</version>
+             <scope>provided</scope>
diff --git a/hibernate-orm-fix-cglib-gid.patch b/hibernate-orm-fix-cglib-gid.patch
new file mode 100644
index 0000000..5c7d060
--- /dev/null
+++ b/hibernate-orm-fix-cglib-gid.patch
@@ -0,0 +1,33 @@
+--- hibernate-orm-3.6.10.Final.orig/hibernate-core/pom.xml	2012-02-08 19:26:33.000000000 -0500
++++ hibernate-orm-3.6.10.Final/hibernate-core/pom.xml	2012-03-14 05:20:55.672313070 -0400
+@@ -107,7 +107,7 @@
+             <optional>true</optional>
+         </dependency>
+         <dependency>
+-            <groupId>cglib</groupId>
++            <groupId>net.sf.cglib</groupId>
+             <artifactId>cglib</artifactId>
+             <optional>true</optional>
+         </dependency>
+--- hibernate-orm-3.6.10.Final.orig/hibernate-parent/pom.xml	2012-02-08 19:26:33.000000000 -0500
++++ hibernate-orm-3.6.10.Final/hibernate-parent/pom.xml	2012-03-14 05:37:54.773219172 -0400
+@@ -518,7 +463,7 @@
+             </dependency>
+             <!-- cglib is optional, but if defined it should be version 2.2 -->
+             <dependency>
+-                <groupId>cglib</groupId>
++                <groupId>net.sf.cglib</groupId>
+                 <artifactId>cglib</artifactId>
+                 <version>2.2</version>
+             </dependency>
+--- hibernate-orm-3.6.10.Final.orig/hibernate-entitymanager/pom.xml	2012-02-08 19:26:33.000000000 -0500
++++ hibernate-orm-3.6.10.Final/hibernate-entitymanager/pom.xml	2012-03-14 05:43:42.564187107 -0400
+@@ -47,7 +47,7 @@
+             <version>${project.version}</version>
+         </dependency>
+         <dependency>
+-            <groupId>cglib</groupId>
++            <groupId>net.sf.cglib</groupId>
+             <artifactId>cglib</artifactId>
+         </dependency>
+         <dependency>
diff --git a/hibernate-orm-fix-jacc-gid-aid.patch b/hibernate-orm-fix-jacc-gid-aid.patch
new file mode 100644
index 0000000..93c06a1
--- /dev/null
+++ b/hibernate-orm-fix-jacc-gid-aid.patch
@@ -0,0 +1,13 @@
+--- hibernate-orm-3.6.10.Final.orig/hibernate-core/pom.xml	2012-02-08 19:26:33.000000000 -0500
++++ hibernate-orm-3.6.10.Final/hibernate-core/pom.xml	2012-03-14 05:25:30.731287792 -0400
+@@ -119,8 +119,8 @@
+             <version>1.1</version>
+         </dependency>
+         <dependency>
+-            <groupId>org.jboss.javaee</groupId>
+-            <artifactId>jboss-jacc-api_JDK4</artifactId>
++            <groupId>org.jboss.spec.javax.security.jacc</groupId>
++            <artifactId>jboss-jacc-api_1.4_spec</artifactId>
+             <version>1.1.0</version>
+             <scope>provided</scope>
+             <exclusions>
diff --git a/hibernate-orm-omit-modules.patch b/hibernate-orm-omit-modules.patch
new file mode 100644
index 0000000..4759068
--- /dev/null
+++ b/hibernate-orm-omit-modules.patch
@@ -0,0 +1,19 @@
+--- hibernate-orm-3.6.10.Final.orig/pom.xml	2012-02-08 19:26:33.000000000 -0500
++++ hibernate-orm-3.6.10.Final/pom.xml	2012-03-14 05:33:08.121245693 -0400
+@@ -26,16 +26,8 @@
+         <module>hibernate-parent</module>
+         <module>hibernate-core</module>
+         <module>hibernate-testing</module>
+-        <module>hibernate-testsuite</module>
+-        <module>hibernate-ehcache</module>
+-        <module>hibernate-jbosscache</module>
+-        <module>hibernate-oscache</module>
+-        <module>hibernate-swarmcache</module>
+         <module>hibernate-c3p0</module>
+         <module>hibernate-proxool</module>
+-        <module>hibernate-envers</module>
+-        <module>hibernate-jdbc3-testing</module>
+-        <module>hibernate-infinispan</module>
+ <!--
+     Need to scope bytecode providers first...
+         <module>bytecode-cglib</module>
diff --git a/hibernate3.spec b/hibernate3.spec
new file mode 100644
index 0000000..c12debd
--- /dev/null
+++ b/hibernate3.spec
@@ -0,0 +1,124 @@
+%global namedreltag .Final
+%global namedversion %{version}%{?namedreltag}
+%global oname hibernate-orm
+
+Name: hibernate3
+Version: 3.6.10
+Release: 1%{?dist}
+Summary: Relational persistence and query service
+
+Group: Development/Libraries
+License: LGPLv2+
+
+URL: http://www.hibernate.org/
+
+# git clone git://github.com/hibernate/hibernate-orm
+# cd hibernate-orm/ && git archive --format=tar --prefix=hibernate-orm-3.6.10.Final/ 3.6.10.Final | xz > hibernate-3.6.10.Final.tar.xz
+Source0: hibernate-orm-3.6.10.Final.tar.xz
+
+Patch0:  hibernate-orm-disable-jdocbook.patch
+Patch1:  hibernate-orm-fix-cglib-gid.patch
+Patch2:  hibernate-orm-fix-jacc-gid-aid.patch
+Patch3:  hibernate-orm-fix-ant-gid.patch
+Patch4:  hibernate-orm-omit-modules.patch
+
+BuildArch: noarch
+
+BuildRequires: jpackage-utils
+BuildRequires: java-devel
+BuildRequires: maven
+BuildRequires: maven-compiler-plugin
+BuildRequires: maven-install-plugin
+BuildRequires: maven-jar-plugin
+BuildRequires: maven-javadoc-plugin
+BuildRequires: maven-release-plugin
+BuildRequires: maven-resources-plugin
+BuildRequires: maven-surefire-plugin
+BuildRequires: maven-enforcer-plugin
+BuildRequires: geronimo-validation
+BuildRequires: maven-injection-plugin
+BuildRequires: antlr-maven-plugin
+BuildRequires: hibernate-validator
+BuildRequires: cglib
+BuildRequires: jboss-jacc-1.4-api
+BuildRequires: c3p0
+BuildRequires: proxool
+BuildRequires: hibernate-commons-annotations
+BuildRequires: jboss-servlet-3.0-api
+
+Requires: hibernate-jpa-2.0-api
+Requires: jpackage-utils
+Requires: geronimo-validation
+Requires: hibernate-validator
+Requires: java
+Requires: hibernate-commons-annotations
+Requires: jboss-servlet-3.0-api
+
+%description
+Hibernate is a powerful, ultra-high performance
+object/relational persistence and query service
+for Java.
+
+%package javadoc
+Summary: API docs for %{name}
+Group: Documentation
+Requires: jpackage-utils
+
+
+%description javadoc
+API documentation for %{name}.
+
+%prep
+%setup -q -n %{oname}-%{namedversion}
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+
+%build
+
+# Currently 4 tests fail with this error:
+# "Unable to get the default Bean Validation factory"
+export jdk16_home=/usr
+mvn-rpmbuild \
+  -DdisableDistribution=true \
+  -Dmaven.test.skip=true \
+  install \
+  javadoc:aggregate
+
+
+%install
+
+# POM files:
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+install -pm 644 hibernate-parent/pom.xml  %{buildroot}%{_mavenpomdir}/JPP-%{name}-parent.pom
+%add_maven_depmap JPP-%{name}-parent.pom
+
+# Jar files:
+install -d -m 755 %{buildroot}%{_javadir}/%{name}
+for module in hibernate-core hibernate-c3p0 hibernate-proxool hibernate-entitymanager; do
+    install -m 644 ${module}/target/${module}-%{namedversion}.jar %{buildroot}%{_javadir}/%{name}/${module}.jar
+    install -pm 644 ${module}/pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-${module}.pom
+%add_maven_depmap JPP.%{name}-${module}.pom %{name}/${module}.jar
+done
+
+# Javadoc files:
+install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
+cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%files
+%doc changelog.txt lgpl.txt
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/%{name}
+%{_javadir}/%{name}
+
+
+%files javadoc
+%doc lgpl.txt
+%{_javadocdir}/%{name}
+
+
+%changelog
+* Wed Mar 14 2012 Andy Grimm <agrimm at gmail.com> - 3.6.10-1
+- Initial package
diff --git a/sources b/sources
index e69de29..1896206 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0a2fc55adc48915b53b0ac29d877093d  hibernate-orm-3.6.10.Final.tar.xz


More information about the scm-commits mailing list