Search
j0ke.net Open Build Service
>
Projects
>
SUSE
:
Manager
:
1.2
>
hibernate3
> hibernate3.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File hibernate3.spec of Package hibernate3
# # spec file for package hibernate3 (Version 3.2.4) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2000-2005, JPackage Project # All rights reserved. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define _with_repolib 1 # If you want repolib package to be built, # issue the following: 'rpmbuild --with repolib' %define with_repolib %{?_with_repolib:1}%{!?_with_repolib:0} %define without_repolib %{!?_with_repolib:1}%{?_with_repolib:0} %define repodir %{_javadir}/repository.jboss.com/hibernate/3.2.4.SP1_CP01-brew %define repodirlib %{repodir}/lib %define repodirsrc %{repodir}/src %define section free %define base_version 3.2 %define hname Hibernate3 Summary: Relational persistence and query service Name: hibernate3 Version: 3.2.4 Release: 0.3.22 %if 0%{?suse_version} %else %endif License: LGPL v2.1 or later Url: http://www.hibernate.org/ Group: Development/Libraries/Java # svn export https://svn.jboss.org/repos/hibernate/tags/JBOSS_EAP_3_2_4_SP1_CP01 # Exported revision 11676. # tar czf hibernate-3.2.4.sp1_cp01-src.tar.gz Hibernate3 Source0: hibernate-3.2.4.sp1_cp01-src.tar.gz Patch0: hibernate-3.2-EhCache.patch Patch1: hibernate3-javadoc.patch Patch2: hibernate3-build.patch Source1: hibernate3-component-info.xml BuildRequires: jpackage-utils >= 1.6 BuildRequires: ant >= 1.6.5 java-devel unzip rhino BuildRequires: ant-antlr BuildRequires: ant-junit BuildRequires: ant-swing BuildRequires: junit >= 3.8.1 BuildRequires: checkstyle #BuildRequires: cleanimports #BuildRequires: versioncheck >= 0:1.0 #BuildRequires: syndiag2 >= 0:2.0 BuildRequires: javassist >= 3.4 BuildRequires: cglib-nohook >= 2.1.3 BuildRequires: asm BuildRequires: jakarta-commons-collections >= 2.1.1 BuildRequires: jakarta-commons-logging >= 1.0.4 BuildRequires: antlr >= 2.7.6 ## xml/xstl handling BuildRequires: dom4j >= 1.6.1 BuildRequires: jaxen >= 1.1 BuildRequires: xerces-j2 >= 2.6.2 BuildRequires: xml-commons-apis ## j2ee related BuildRequires: jdbc-stdext BuildRequires: jta BuildRequires: log4j >= 1.2.11 # JCA no longer supported #BuildRequires: j2ee-connector #BuildRequires: jaas ## Treecache #BuildRequires: jboss-cache >= 0:1.2.2 BuildRequires: concurrent >= 1.3.2 #BuildRequires: jboss-common # FIXME Some circular dependencies here... #BuildRequires: jboss4-jmx >= 0:4.0.2 #BuildRequires: jboss4-system >= 0:4.0.2 ## Replication BuildRequires: jgroups >= 2.2.8 ## cache providers BuildRequires: ehcache >= 1.2.3 BuildRequires: oscache >= 2.1 BuildRequires: swarmcache ## connection pool # FIXME BuildRequires: c3p0 >= 0:0.9.1 BuildRequires: c3p0 # use the without-hibernate to break the dep cycle #BuildRequires: proxool >= 0.8.3 BuildRequires: proxool-without-hibernate >= 0.8.3 BuildRequires: jacc BuildRequires: java-1_5_0-gcj-compat-devel BuildRequires: geronimo-jta-1_1-api Requires: java unzip # The bytecode provides can be either javassist or cglib (default) # cglib requires asm Requires: cglib >= 2.1.3 Requires: asm #Optional: javassist >= 0:3.4 # Always required: Requires: jakarta-commons-collections >= 2.1.1 Requires: jakarta-commons-logging >= 1.0.4 Requires: antlr >= 2.7.6 Requires: dom4j >= 1.6.1 # Required if one wants to deserialize a Configuration in order to improve # startup performance #Optional: jaxen >= 0:1.1 # Some SAX parser is required Requires: xml-commons-apis # Required for standalone operation (outside an AppServer) Requires: jdbc-stdext Requires: jta # Required by replicated caches #Optional: jgroups >= 0:2.2.8 # Cache providers (default none) #Optional: hibernate_in_process_cache # hibernate_in_process_cache is one of ehcache, oscache, swarmcache or # jboss-cache (default none) #Optional: ehcache >= 0:1.2.3 #Optional: oscache >= 0:2.1 #Optional: swarmcache # JDBC connection pool # hibernate_jdbc_cache is for instance c3p0 or proxool # note that jakarta-commons-dbcp is not supported #Optional: hibernate_jdbc_cache BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Hibernate is a powerful, ultra-high performance object/relational persistence and query service for Java. Hibernate lets you develop persistent objects following common Java idiom - including association, inheritance, polymorphism, composition and the Java collections framework. Extremely fine-grained, richly typed object models are possible. The Hibernate Query Language, designed as a "minimal" object-oriented extension to SQL, provides an elegant bridge between the object and relational worlds. Hibernate is now the most popular ORM solution for Java. %if %{with_repolib} %package repolib License: LGPL v2.1 or later Summary: Artifacts to be uploaded to a repository library Group: Development/Libraries/Java %description repolib Artifacts to be uploaded to a repository library. This package is not meant to be installed but so its contents can be extracted through rpm2cpio %endif %package javadoc License: LGPL v2.1 or later Summary: Javadoc for hibernate3 Group: Development/Documentation %description javadoc Javadoc for hibernate3. %package manual License: LGPL v2.1 or later Summary: Documents for hibernate3 Group: Development/Documentation %description manual Javadoc for hibernate3. %prep %setup -q -n %{hname} # remove all binary libs #find . -name "*.jar" -exec mv {} {}.no \; for j in $(find . -name "*.jar" | grep -v jboss); do mv $j $j.no done # Uncomment if you want to build without EHCache #%patch0 -b .sav # Refer to J2SE 1.5 documentation, not 1.3 %patch1 -b .sav %patch2 -b .sav tag=`echo %{name}-%{version}-%{release} | sed 's|\.|_|g'` sed -i "s/@TAG@/$tag/g" %{SOURCE1} %build export OPT_JAR_LIST="ant/ant-swing ant/ant-antlr antlr ant/ant-junit junit ant-launcher" # FIXME We don't have those. Optional build time dependencies it seems mv lib/cleanimports.jar.no lib/cleanimports.jar mv lib/syndiag2.jar.no lib/syndiag2.jar # Don't do versioncheck as our JARs have different filenames than the ones # specified in version.properties #mv lib/versioncheck.jar.no lib/versioncheck.jar # FIXME Circular dependencies on jbossas #mv lib/jboss-jmx.jar.no lib/jboss-jmx.jar #mv lib/jboss-system.jar.no lib/jboss-system.jar build-jar-repository -s -p lib \ ant \ ant/ant-antlr \ ant/ant-junit \ ant/ant-swing \ ant-launcher \ antlr \ asm/asm \ asm/asm-attrs \ c3p0 \ cglib-nohook \ commons-collections \ commons-logging \ concurrent \ dom4j \ ehcache \ jaas \ jacc \ javassist \ jaxen \ jdbc-stdext \ jgroups \ jta \ junit \ log4j \ oscache \ proxool \ swarmcache \ xerces-j2 \ xml-commons-apis #Check if we were successiful in cleaning up binary files # ------------------------------------------------------ find . -name '*.?ar' -not -type l -print > BINARYFILES echo "WARNING: Binary files not replaced by links!" cat BINARYFILES echo "---" # ------------------------------------------------------ # #export JAVA_HOME=/usr/lib/jvm/java export CLASSPATH=$CLASSPATH:build/classes:build/testclasses:etc #ant dist.complete # Do not run versioncheck # Also, the BNF creation is failing, it wants a DISPLAY (do we need a "headless" setting?) #ant init jar javadoc refdoc antlr.bnf ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 -Dnosplash init jar javadoc refdoc %install rm -rf $RPM_BUILD_ROOT # jars mkdir -p $RPM_BUILD_ROOT%{_javadir} cp -p build/%{name}.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) mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/etc cp -p etc/* $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/etc # javadoc mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -pr build/doc/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink rm -rf build/doc/api # manual mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} cp -p lgpl.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} cp -pr doc/reference/build/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %if %{with_repolib} install -d -m 755 $RPM_BUILD_ROOT%{repodir} install -d -m 755 $RPM_BUILD_ROOT%{repodirlib} install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{repodir}/component-info.xml install -d -m 755 $RPM_BUILD_ROOT%{repodirsrc} # install -m 755 %{PATCH0} $RPM_BUILD_ROOT%{repodirsrc} install -m 755 %{SOURCE0} $RPM_BUILD_ROOT%{repodirsrc} cp $RPM_BUILD_ROOT%{_javadir}/hibernate3.jar $RPM_BUILD_ROOT%{repodirlib} %endif %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 %files %defattr(0644,root,root,0755) %doc %{_docdir}/%{name}-%{version}/lgpl.txt %{_javadir}/*.jar %{_datadir}/%{name}-%{version} %files javadoc %defattr(0644,root,root,0755) %{_javadocdir}/%{name}-%{version} %ghost %doc %{_javadocdir}/%{name} %files manual %defattr(0644,root,root,0755) %{_docdir}/%{name}-%{version} %if %{with_repolib} %files repolib %defattr(0644,root,root,0755) %dir /usr/share/java/repository.jboss.com %dir /usr/share/java/repository.jboss.com/hibernate %{repodir} %endif %changelog * Wed Dec 22 2010 ro@suse.de - buildrequire proxool-without-hibernate instead of proxool to break dep cycle * Thu Dec 9 2010 mc@suse.de - initial release