commit
765f848523
205
je-6.3.8-build.patch
Normal file
205
je-6.3.8-build.patch
Normal file
@ -0,0 +1,205 @@
|
||||
diff -Nru je-6.3.8/build.xml je-6.3.8.build/build.xml
|
||||
--- je-6.3.8/build.xml 2015-05-09 06:58:09.000000000 +0200
|
||||
+++ je-6.3.8.build/build.xml 2015-08-07 12:14:56.218830481 +0200
|
||||
@@ -4,8 +4,7 @@
|
||||
<!-- Ant Build File for Berkeley DB Java Edition -->
|
||||
<!-- =========================================== -->
|
||||
|
||||
-<project name="JE" default="jar" basedir="."
|
||||
- xmlns:ivy="antlib:org.apache.ivy.ant">
|
||||
+<project name="JE" default="jar" basedir=".">
|
||||
|
||||
<description>Compile and test JE</description>
|
||||
|
||||
@@ -49,15 +48,15 @@
|
||||
<property name="doclet.jar" value="${doc.dir}/HidingDoclet.jar"/>
|
||||
|
||||
<property name="java.apidoc"
|
||||
- value="http://docs.oracle.com/javase/7/docs/api"/>
|
||||
+ value="/usr/share/javadoc/java"/>
|
||||
<property name="proxy.port" value="80"/>
|
||||
<property name="javadoc.css" value="${docsrc.dir}/style.css"/>
|
||||
|
||||
<property name="jarfile" value="${libdir}/je.jar"/>
|
||||
<property name="jcararfile" value="${libdir}/jejca.rar"/>
|
||||
|
||||
- <property name="junit.jarfile" value="${extlibdir}/junit-4.10.jar"/>
|
||||
- <property name="hamcrest.jarfile" value="${extlibdir}/hamcrest-core-1.1.jar"/>
|
||||
+ <property name="junit.jarfile" value="/usr/share/java/junit.jar"/>
|
||||
+ <property name="hamcrest.jarfile" value="/usr/share/java/hamcrest/core.jar"/>
|
||||
<property name="j2ee.jarfile" value="${extlibdir}/javaee-api-7.0.jar"/>
|
||||
<property name="jconsole.jarfile" value="${extlibdir}/jconsole.jar"/>
|
||||
|
||||
@@ -251,18 +250,9 @@
|
||||
</target>
|
||||
|
||||
<target name="compile-j2ee"
|
||||
- depends="get-j2ee-jar,
|
||||
- compile-jmx,
|
||||
+ depends="compile-jmx,
|
||||
compile-jca"/>
|
||||
|
||||
- <target name="get-junit-jar">
|
||||
- <ivy:retrieve conf="junit"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="get-j2ee-jar">
|
||||
- <ivy:retrieve conf="j2ee"/>
|
||||
- </target>
|
||||
-
|
||||
<target name="ivy-clean">
|
||||
<delete includeemptydirs="true">
|
||||
<fileset dir="${extlibdir}"/>
|
||||
@@ -270,7 +260,6 @@
|
||||
</target>
|
||||
|
||||
<target name="ivy-clean-cache">
|
||||
- <ivy:cleancache />
|
||||
</target>
|
||||
|
||||
<!--
|
||||
@@ -299,7 +288,7 @@
|
||||
doing a build, when using an IDE for example.
|
||||
-->
|
||||
<target name="extlib"
|
||||
- depends="get-junit-jar, get-j2ee-jar, get-jconsole-jar"/>
|
||||
+ depends="get-jconsole-jar"/>
|
||||
|
||||
<!-- ====== Internal (non-public) targets delegated to internal.xml =======
|
||||
|
||||
@@ -451,7 +440,7 @@
|
||||
</ant>
|
||||
</target>
|
||||
|
||||
- <target name="compile-jca" depends="get-j2ee-jar, compile-src">
|
||||
+ <target name="compile-jca" depends="compile-src">
|
||||
<ant antfile="ant/compile.xml" dir="." inheritall="false">
|
||||
<reference refid="j2ee.classpath" torefid="compile.classpath"/>
|
||||
<property name="include" value="com/sleepycat/je/jca/**/*.java"/>
|
||||
@@ -716,9 +705,6 @@
|
||||
</target>
|
||||
|
||||
<target name="require-jdk-version">
|
||||
- <fail unless="running.jdk.version"
|
||||
- message="Java ${jdk.version} is required for packaging, but
|
||||
-current Java version is ${ant.java.version}"/>
|
||||
</target>
|
||||
|
||||
<target name="release-jar" depends="require-jdk6,
|
||||
@@ -874,7 +860,7 @@
|
||||
<delete dir="${unittest.serialtest.txn}"/>
|
||||
</target>
|
||||
|
||||
- <target name="compile-unittest" depends="compile-src, get-junit-jar">
|
||||
+ <target name="compile-unittest" depends="compile-src">
|
||||
<ant antfile="ant/compile.xml" dir="." inheritall="false">
|
||||
<property name="srcdir" value="${unittest.srcdir}"/>
|
||||
<property name="destdir" value="${unittest.destdir}"/>
|
||||
@@ -1882,12 +1868,12 @@
|
||||
|
||||
<!-- Create an up to date property file for the build -->
|
||||
<target name="update-version" depends="compile-src, compile-dist">
|
||||
- <java fork="yes" jvm="${jvm}" failonerror="true"
|
||||
+ <!--java fork="yes" jvm="${jvm}" failonerror="true"
|
||||
classname="CreateRELEASEFile"
|
||||
classpathref="dist.classpath">
|
||||
<jvmarg line="${jvmargs}"/>
|
||||
<arg value="${release.propertyfile}"/>
|
||||
- </java>
|
||||
+ </java-->
|
||||
|
||||
<!-- read it in -->
|
||||
<property file="${release.propertyfile}"/>
|
||||
@@ -1903,33 +1889,6 @@
|
||||
<tstamp>
|
||||
<format property="release.date" pattern="MMMMMMMM dd, yyyy"/>
|
||||
</tstamp>
|
||||
-
|
||||
- <!-- Copy the main page, images and release notes, to the
|
||||
- docs directory, putting in the release version where
|
||||
- appropriate -->
|
||||
- <copy overwrite="true" todir="${doc.dir}">
|
||||
- <filterset>
|
||||
- <filter token="RELEASE_VERSION" value="${release.version}"/>
|
||||
- <filter token="RELEASE_NUMERIC_VERSION"
|
||||
- value="${release.numeric.versionc.version}"/>
|
||||
- <filter token="DATE" value="${release.date}"/>
|
||||
- </filterset>
|
||||
- <fileset dir="${docsrc.dir}">
|
||||
- <include name="*.html"/>
|
||||
- <include name="*.css"/>
|
||||
- <exclude name="style.css"/>
|
||||
- </fileset>
|
||||
- </copy>
|
||||
- <copy todir="${doc.dir}/images">
|
||||
- <fileset dir="${docsrc.dir}/images"/>
|
||||
- </copy>
|
||||
- <copy todir="${doc.dir}/sleepycat">
|
||||
- <fileset dir="${docsrc.dir}/sleepycat"/>
|
||||
- </copy>
|
||||
- <copy todir="${doc.dir}/jconsole">
|
||||
- <fileset dir="${docsrc.dir}/jconsole"/>
|
||||
- </copy>
|
||||
-
|
||||
<antcall target="javadoc-src"/>
|
||||
<antcall target="javadoc-examples"/>
|
||||
</target>
|
||||
@@ -1943,7 +1902,7 @@
|
||||
</target>
|
||||
|
||||
<target name="javadoc-src"
|
||||
- depends="require-jdk-version, get-j2ee-jar, copy-doc-materials, jar-hidingdoclet">
|
||||
+ depends="require-jdk-version, copy-doc-materials">
|
||||
<delete dir="${doc.javadir}"/>
|
||||
<mkdir dir="${doc.javadir}"/>
|
||||
<!-- Run javadoc on public API -->
|
||||
@@ -1956,13 +1915,12 @@
|
||||
source="${jdk.version}"
|
||||
use="true"
|
||||
failonerror="true"
|
||||
- docletpath="docs/HidingDoclet.jar"
|
||||
- stylesheetfile="${javadoc.css}"
|
||||
+ encoding="utf-8"
|
||||
+ additionalparam="-Xdoclint:none"
|
||||
windowtitle="Oracle - Berkeley DB Java Edition API">
|
||||
<classpath refid="j2ee.classpath"/>
|
||||
<classpath path="${ant.library.dir}/ant.jar"/>
|
||||
<arg value="-author"/>
|
||||
- <doclet name="HidingDoclet"/>
|
||||
<group title="Berkeley DB Java Edition Packages">
|
||||
<package name="com.sleepycat.je*"/>
|
||||
<package name="com.sleepycat.je.util"/>
|
||||
@@ -2016,11 +1974,6 @@
|
||||
<arg value="-J-Dhttp.proxyHost=${proxy.host}"/>
|
||||
<arg value="-J-Dhttp.proxyPort=${proxy.port}"/>
|
||||
</javadoc>
|
||||
- <!-- Copy the standard Java CSS style sheet -->
|
||||
- <copy tofile="${doc.javadir}/standard-stylesheet.css">
|
||||
- <javaresource
|
||||
- name="com/sun/tools/doclets/internal/toolkit/resources/stylesheet.css"/>
|
||||
- </copy>
|
||||
</target>
|
||||
|
||||
<target name="javadoc-examples" depends="copy-doc-materials">
|
||||
@@ -2032,7 +1985,8 @@
|
||||
nodeprecated="false"
|
||||
access="public"
|
||||
source="${jdk.version}"
|
||||
- stylesheetfile="${javadoc.css}"
|
||||
+ encoding="utf-8"
|
||||
+ additionalparam="-Xdoclint:none"
|
||||
windowtitle="Oracle - Berkeley DB Java Edition Examples">
|
||||
<classpath refid="j2ee.classpath"/>
|
||||
<header><![CDATA[<b>Berkeley DB Java Edition Examples</b><br><font size=\"-1\"> version ${release.version}</font>]]>
|
||||
@@ -2051,11 +2005,6 @@
|
||||
<arg value="-J-Dhttp.proxyHost=${proxy.host}"/>
|
||||
<arg value="-J-Dhttp.proxyPort=${proxy.port}"/>
|
||||
</javadoc>
|
||||
- <!-- Copy the standard Java CSS style sheet -->
|
||||
- <copy tofile="${doc.examplesdir}/standard-stylesheet.css">
|
||||
- <javaresource
|
||||
- name="com/sun/tools/doclets/internal/toolkit/resources/stylesheet.css"/>
|
||||
- </copy>
|
||||
</target>
|
||||
|
||||
<!-- ============================================================ -->
|
||||
14564
je-6.3.8-use-system-asm.patch
Normal file
14564
je-6.3.8-use-system-asm.patch
Normal file
File diff suppressed because it is too large
Load Diff
30
je-6.3.8.pom
Normal file
30
je-6.3.8.pom
Normal file
@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
|
||||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>je</artifactId>
|
||||
<groupId>com.sleepycat</groupId>
|
||||
<version>6.3.8</version>
|
||||
|
||||
<organization>
|
||||
<name>Oracle Corporation</name>
|
||||
<url>http://www.oracle.com/</url>
|
||||
</organization>
|
||||
|
||||
<issueManagement>
|
||||
<system>Oracle OTN Network Forum for Berkeley DB Java Edition</system>
|
||||
<url>http://forums.oracle.com/forums/forum.jspa?forumID=273</url>
|
||||
</issueManagement>
|
||||
|
||||
<mailingLists>
|
||||
<mailingList>
|
||||
<name>Oracle Berkeley DB Products Release Announcement List</name>
|
||||
<subscribe>bdb-subscribe@oss.oracle.com</subscribe>
|
||||
<unsubscribe>bdb-unsubscribe@oss.oracle.com</unsubscribe>
|
||||
</mailingList>
|
||||
</mailingLists>
|
||||
|
||||
<description>Berkeley DB Java Edition is a open source, transactional storage solution for Java applications. The Direct Persistence Layer (DPL) API is faster and easier to develop, deploy, and manage than serialized object files or ORM-based Java persistence solutions. The Collections API enhances the standard java.util.collections classes allowing them to be persisted to a local file system and accessed concurrently while protected by ACID transactions. Data is stored by serializing objects and managing class and instance data separately so as not to waste space. Berkeley DB Java Edition is the reliable drop-in solution for complex, fast, and scalable storage. Source for this release is in 'je-6.3.8-sources.jar', the Javadoc is located at 'http://download.oracle.com/berkeley-db/docs/je/6.3.8/'.</description>
|
||||
|
||||
</project>
|
||||
BIN
je-6.3.8.tar.gz
Normal file
BIN
je-6.3.8.tar.gz
Normal file
Binary file not shown.
86
je.spec
Normal file
86
je.spec
Normal file
@ -0,0 +1,86 @@
|
||||
Name: je
|
||||
Version: 6.3.8
|
||||
Release: 1
|
||||
Summary: Berkeley DB Java Edition
|
||||
License: AGPLv3 and BSD
|
||||
URL: http://www.oracle.com/us/products/database/berkeley-db/je/overview/index.html
|
||||
Source0: http://download.oracle.com/berkeley-db/je-%{version}.tar.gz
|
||||
Source1: http://download.oracle.com/maven/com/sleepycat/je/%{version}/je-%{version}.pom
|
||||
Patch0: je-6.3.8-build.patch
|
||||
Patch1: je-6.3.8-use-system-asm.patch
|
||||
BuildRequires: ant ant-junit hamcrest-core hostname java-javadoc javapackages-local
|
||||
BuildRequires: jboss-connector-1.6-api jboss-ejb-3.1-api junit mvn(org.ow2.asm:asm)
|
||||
BuildArch: noarch
|
||||
%description
|
||||
Berkeley DB Java Edition is a high performance, transactional storage
|
||||
engine written entirely in Java. Like the highly successful Berkeley DB
|
||||
product, Berkeley DB Java Edition executes in the address space of the
|
||||
application, without the overhead of client/server communication. It
|
||||
stores data in the application's native format, so no run-time data
|
||||
translation is required. Berkeley DB Java Edition supports full ACID
|
||||
transactions and recovery. It provides an easy-to-use, programmatic
|
||||
interface, allowing developers to store and retrieve information
|
||||
quickly, simply and reliably.
|
||||
|
||||
%package examples
|
||||
Summary: Examples for je
|
||||
Requires: je = %{version}-%{release}
|
||||
%description examples
|
||||
This package contains examples for je.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for je
|
||||
%description javadoc
|
||||
This package contains javadoc for je.
|
||||
|
||||
%package examples-javadoc
|
||||
Summary: Javadoc for je-examples
|
||||
Requires: je-javadoc = %{version}-%{release}
|
||||
%description examples-javadoc
|
||||
This package contains javadoc for je-examples.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
find -name "*.jar" -delete
|
||||
find -name "*.class" -delete
|
||||
rm -Rf docs/*
|
||||
rm -Rf lib
|
||||
%patch0 -p1
|
||||
cp -p %{SOURCE1} pom.xml
|
||||
%patch1 -p1
|
||||
rm -rf src/com/sleepycat/asm
|
||||
%mvn_file com.sleepycat:je je
|
||||
|
||||
%build
|
||||
ant \
|
||||
-Dj2ee.jarfile="$(build-classpath jboss-connector-1.6-api):$(build-classpath jboss-ejb-3.1-api)" \
|
||||
-Djdk6.home=%{_jvmdir}/java \
|
||||
-Dant.library.dir=%{_javadir} \
|
||||
jar javadoc compile-examples
|
||||
cd build/classes
|
||||
%jar -cf ../../je-examples.jar collections je jmx persist
|
||||
|
||||
%install
|
||||
%mvn_artifact pom.xml build/lib/je.jar
|
||||
%mvn_install -J docs/java
|
||||
install -pm 644 je-examples.jar %{buildroot}%{_javadir}/je-examples.jar
|
||||
cp -a docs/examples %{buildroot}%{_javadocdir}/je-examples
|
||||
|
||||
%files -f .mfiles
|
||||
%doc README
|
||||
%license LICENSE
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%license LICENSE
|
||||
|
||||
%files examples
|
||||
%{_javadir}/je-examples.jar
|
||||
%license LICENSE
|
||||
|
||||
%files examples-javadoc
|
||||
%{_javadocdir}/je-examples
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
* Fri Aug 21 2020 yaokai <yaokai13@huawei.com> - 6.3.8-1
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user