Package init
This commit is contained in:
parent
12bb4d1471
commit
4019513e24
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
|||||||
# rhino
|
|
||||||
|
|
||||||
#### Description
|
|
||||||
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
|
||||||
|
|
||||||
#### Software Architecture
|
|
||||||
Software architecture description
|
|
||||||
|
|
||||||
#### Installation
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Instructions
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Contribution
|
|
||||||
|
|
||||||
1. Fork the repository
|
|
||||||
2. Create Feat_xxx branch
|
|
||||||
3. Commit your code
|
|
||||||
4. Create Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### Gitee Feature
|
|
||||||
|
|
||||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
||||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
||||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
||||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
39
README.md
39
README.md
@ -1,39 +0,0 @@
|
|||||||
# rhino
|
|
||||||
|
|
||||||
#### 介绍
|
|
||||||
{**以下是码云平台说明,您可以替换此简介**
|
|
||||||
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
|
||||||
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
|
||||||
|
|
||||||
#### 软件架构
|
|
||||||
软件架构说明
|
|
||||||
|
|
||||||
|
|
||||||
#### 安装教程
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 使用说明
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 参与贡献
|
|
||||||
|
|
||||||
1. Fork 本仓库
|
|
||||||
2. 新建 Feat_xxx 分支
|
|
||||||
3. 提交代码
|
|
||||||
4. 新建 Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### 码云特技
|
|
||||||
|
|
||||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
||||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
|
||||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
|
||||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
BIN
Rhino1_7_7_1_RELEASE.tar.gz
Normal file
BIN
Rhino1_7_7_1_RELEASE.tar.gz
Normal file
Binary file not shown.
41
rhino-1.7.7.1.pom
Normal file
41
rhino-1.7.7.1.pom
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
||||||
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>org.sonatype.oss</groupId>
|
||||||
|
<artifactId>oss-parent</artifactId>
|
||||||
|
<version>7</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<groupId>org.mozilla</groupId>
|
||||||
|
<artifactId>rhino</artifactId>
|
||||||
|
<name>Mozilla Rhino</name>
|
||||||
|
<version>1.7.7.1</version>
|
||||||
|
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
<description>
|
||||||
|
Rhino is an open-source implementation of JavaScript written entirely in Java. It is typically
|
||||||
|
embedded into Java applications to provide scripting to end users.
|
||||||
|
</description>
|
||||||
|
<url>https://developer.mozilla.org/en/Rhino</url>
|
||||||
|
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>Mozilla Public License, Version 2.0</name>
|
||||||
|
<url>http://www.mozilla.org/MPL/2.0/index.txt</url>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
|
||||||
|
<scm>
|
||||||
|
<connection>scm:git:git@github.com:mozilla/rhino.git</connection>
|
||||||
|
<developerConnection>scm:git:git@github.com:mozilla/rhino.git</developerConnection>
|
||||||
|
<url>git@github.com:mozilla/rhino.git</url>
|
||||||
|
</scm>
|
||||||
|
|
||||||
|
<organization>
|
||||||
|
<name>The Mozilla Foundation</name>
|
||||||
|
<url>http://www.mozilla.org</url>
|
||||||
|
</organization>
|
||||||
|
</project>
|
||||||
32
rhino-addOrbitManifest.patch
Normal file
32
rhino-addOrbitManifest.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
--- src/manifest 2015-06-26 09:16:53.592746825 +0300
|
||||||
|
+++ src/manifest.fixManifest 2015-06-26 09:19:57.296939380 +0300
|
||||||
|
@@ -4,3 +4,28 @@ Implementation-Version: 1.7.7-SNAPSHOT
|
||||||
|
Implementation-Title: Mozilla Rhino 1.7.7.1
|
||||||
|
Implementation-Vendor: Mozilla Foundation
|
||||||
|
Implementation-URL: http://www.mozilla.org/rhino
|
||||||
|
+Bundle-Vendor: %Bundle-Vendor.0
|
||||||
|
+Bundle-Localization: plugin
|
||||||
|
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
||||||
|
+Bundle-Name: %Bundle-Name.0
|
||||||
|
+Bundle-SymbolicName: org.mozilla.javascript
|
||||||
|
+Bundle-Version: 1.7.7
|
||||||
|
+Export-Package: org.mozilla.classfile,org.mozilla.javascript,org.mozil
|
||||||
|
+ la.javascript.debug,org.mozilla.javascript.jdk13,org.mozilla.javascri
|
||||||
|
+ pt.jdk15,org.mozilla.javascript.optimizer,org.mozilla.javascript.rege
|
||||||
|
+ xp,org.mozilla.javascript.serialize,org.mozilla.javascript.tools,org.
|
||||||
|
+ mozilla.javascript.tools.debugger,org.mozilla.javascript.tools.debugg
|
||||||
|
+ er.treetable,org.mozilla.javascript.tools.idswitch,org.mozilla.javasc
|
||||||
|
+ ript.tools.jsc,org.mozilla.javascript.tools.shell,org.mozilla.javascr
|
||||||
|
+ ipt.xml,org.mozilla.javascript.xml.impl.xmlbeans,org.mozilla.javascri
|
||||||
|
+ pt.xmlimpl
|
||||||
|
+Bundle-ManifestVersion: 2
|
||||||
|
+Import-Package: javax.swing;resolution:=optional,javax.swing.border;re
|
||||||
|
+ solution:=optional,javax.swing.event;resolution:=optional,javax.swing
|
||||||
|
+ .filechooser;resolution:=optional,javax.swing.table;resolution:=optio
|
||||||
|
+ nal,javax.swing.text;resolution:=optional,javax.swing.tree;resolution
|
||||||
|
+ :=optional,javax.xml.namespace;resolution:=optional,javax.xml.parsers
|
||||||
|
+ ;resolution:=optional,javax.xml.transform;resolution:=optional,javax.
|
||||||
|
+ xml.transform.dom;resolution:=optional,javax.xml.transform.stream;res
|
||||||
|
+ olution:=optional,org.w3c.dom;resolution:=optional,org.xml.sax;resolu
|
||||||
|
+ tion:=optional
|
||||||
|
\ No newline at end of file
|
||||||
175
rhino-build.patch
Normal file
175
rhino-build.patch
Normal file
@ -0,0 +1,175 @@
|
|||||||
|
--- a/examples/Matrix.java
|
||||||
|
+++ b/examples/Matrix.java
|
||||||
|
@@ -218,7 +218,7 @@ public class Matrix implements Scriptabl
|
||||||
|
* Use the convenience method from Context that takes care of calling
|
||||||
|
* toString, etc.
|
||||||
|
*/
|
||||||
|
- public Object getDefaultValue(Class<?> typeHint) {
|
||||||
|
+ public Object getDefaultValue(Class typeHint) {
|
||||||
|
return "[object Matrix]";
|
||||||
|
}
|
||||||
|
|
||||||
|
--- a/examples/PrimitiveWrapFactory.java
|
||||||
|
+++ b/examples/PrimitiveWrapFactory.java
|
||||||
|
@@ -25,7 +25,7 @@ import org.mozilla.javascript.*;
|
||||||
|
public class PrimitiveWrapFactory extends WrapFactory {
|
||||||
|
@Override
|
||||||
|
public Object wrap(Context cx, Scriptable scope, Object obj,
|
||||||
|
- Class<?> staticType)
|
||||||
|
+ Class staticType)
|
||||||
|
{
|
||||||
|
if (obj instanceof String || obj instanceof Number ||
|
||||||
|
obj instanceof Boolean)
|
||||||
|
--- a/src/org/mozilla/javascript/WrapFactory.java
|
||||||
|
+++ b/src/org/mozilla/javascript/WrapFactory.java
|
||||||
|
@@ -42,7 +42,7 @@ public class WrapFactory
|
||||||
|
* @return the wrapped value.
|
||||||
|
*/
|
||||||
|
public Object wrap(Context cx, Scriptable scope,
|
||||||
|
- Object obj, Class<?> staticType)
|
||||||
|
+ Object obj, Class staticType)
|
||||||
|
{
|
||||||
|
if (obj == null || obj == Undefined.instance
|
||||||
|
|| obj instanceof Scriptable)
|
||||||
|
--- a/toolsrc/org/mozilla/javascript/tools/debugger/build.xml
|
||||||
|
+++ b/toolsrc/org/mozilla/javascript/tools/debugger/build.xml
|
||||||
|
@@ -8,7 +8,7 @@
|
||||||
|
|
||||||
|
<target name="properties">
|
||||||
|
<property name="swing-ex-url" value="http://java.sun.com/products/jfc/tsc/articles/treetable2/downloads/src.zip"/>
|
||||||
|
- <available file="downloaded/AbstractCellEditor.java"
|
||||||
|
+ <available file="treetable/AbstractCellEditor.java"
|
||||||
|
property="swing-ex-available"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
@@ -16,9 +16,9 @@
|
||||||
|
<!-- Download source from Sun's site, unzip it, remove
|
||||||
|
the files we don't need, and change the package
|
||||||
|
-->
|
||||||
|
- <mkdir dir="downloaded"/>
|
||||||
|
- <get src="${swing-ex-url}" dest="downloaded/swingExSrc.zip"/>
|
||||||
|
- <unzip src="downloaded/swingExSrc.zip" dest="downloaded/">
|
||||||
|
+ <mkdir dir="treetable"/>
|
||||||
|
+ <get src="${swing-ex-url}" dest="treetable/swingExSrc.zip"/>
|
||||||
|
+ <unzip src="treetable/swingExSrc.zip" dest="downloaded/">
|
||||||
|
<patternset>
|
||||||
|
<include name="AbstractCellEditor.java"/>
|
||||||
|
<include name="JTreeTable.java"/>
|
||||||
|
@@ -26,58 +26,58 @@
|
||||||
|
<include name="TreeTableModelAdapter.java"/>
|
||||||
|
</patternset>
|
||||||
|
</unzip>
|
||||||
|
- <replace file="downloaded/AbstractCellEditor.java">
|
||||||
|
+ <replace file="treetable/AbstractCellEditor.java">
|
||||||
|
<replacetoken>import java.awt.Component;</replacetoken>
|
||||||
|
<replacevalue>
|
||||||
|
-package org.mozilla.javascript.tools.debugger.downloaded;
|
||||||
|
+package org.mozilla.javascript.tools.debugger.treetable;
|
||||||
|
</replacevalue>
|
||||||
|
</replace>
|
||||||
|
- <replace file="downloaded/AbstractCellEditor.java">
|
||||||
|
+ <replace file="treetable/AbstractCellEditor.java">
|
||||||
|
<replacetoken>import java.awt.event.*;</replacetoken>
|
||||||
|
<replacevalue></replacevalue>
|
||||||
|
</replace>
|
||||||
|
- <replace file="downloaded/AbstractCellEditor.java">
|
||||||
|
+ <replace file="treetable/AbstractCellEditor.java">
|
||||||
|
<replacetoken>import java.awt.AWTEvent;</replacetoken>
|
||||||
|
<replacevalue></replacevalue>
|
||||||
|
</replace>
|
||||||
|
- <replace file="downloaded/AbstractCellEditor.java">
|
||||||
|
+ <replace file="treetable/AbstractCellEditor.java">
|
||||||
|
<replacetoken>import java.io.Serializable;</replacetoken>
|
||||||
|
<replacevalue></replacevalue>
|
||||||
|
</replace>
|
||||||
|
- <replace file="downloaded/JTreeTable.java">
|
||||||
|
+ <replace file="treetable/JTreeTable.java">
|
||||||
|
<replacetoken>import javax.swing.*;</replacetoken>
|
||||||
|
<replacevalue>
|
||||||
|
- package org.mozilla.javascript.tools.debugger.downloaded;
|
||||||
|
+ package org.mozilla.javascript.tools.debugger.treetable;
|
||||||
|
import javax.swing.*;
|
||||||
|
</replacevalue>
|
||||||
|
</replace>
|
||||||
|
- <replace file="downloaded/JTreeTable.java">
|
||||||
|
+ <replace file="treetable/JTreeTable.java">
|
||||||
|
<replacetoken>class ListToTreeSelectionModelWrapper</replacetoken>
|
||||||
|
<replacevalue>public class ListToTreeSelectionModelWrapper</replacevalue>
|
||||||
|
</replace>
|
||||||
|
- <replace file="downloaded/JTreeTable.java">
|
||||||
|
+ <replace file="treetable/JTreeTable.java">
|
||||||
|
<replacetoken>ListSelectionModel getListSelectionModel</replacetoken>
|
||||||
|
<replacevalue>public ListSelectionModel getListSelectionModel</replacevalue>
|
||||||
|
</replace>
|
||||||
|
- <replace file="downloaded/JTreeTable.java">
|
||||||
|
+ <replace file="treetable/JTreeTable.java">
|
||||||
|
<replacetoken>import java.awt.Rectangle;</replacetoken>
|
||||||
|
<replacevalue></replacevalue>
|
||||||
|
</replace>
|
||||||
|
- <replace file="downloaded/TreeTableModel.java">
|
||||||
|
+ <replace file="treetable/TreeTableModel.java">
|
||||||
|
<replacetoken>import javax.swing.tree.TreeModel;</replacetoken>
|
||||||
|
<replacevalue>
|
||||||
|
- package org.mozilla.javascript.tools.debugger.downloaded;
|
||||||
|
+ package org.mozilla.javascript.tools.debugger.treetable;
|
||||||
|
import javax.swing.tree.TreeModel;
|
||||||
|
</replacevalue>
|
||||||
|
</replace>
|
||||||
|
- <replace file="downloaded/TreeTableModelAdapter.java">
|
||||||
|
+ <replace file="treetable/TreeTableModelAdapter.java">
|
||||||
|
<replacetoken>import javax.swing.JTree;</replacetoken>
|
||||||
|
<replacevalue>
|
||||||
|
- package org.mozilla.javascript.tools.debugger.downloaded;
|
||||||
|
+ package org.mozilla.javascript.tools.debugger.treetable;
|
||||||
|
import javax.swing.JTree;
|
||||||
|
</replacevalue>
|
||||||
|
</replace>
|
||||||
|
- <delete file="downloaded/swingExSrc.zip"/>
|
||||||
|
+ <delete file="treetable/swingExSrc.zip"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="download" depends="properties,get-swing-ex"/>
|
||||||
|
--- a/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java
|
||||||
|
+++ b/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java
|
||||||
|
@@ -36,7 +36,7 @@ public class JavaPolicySecurity extends
|
||||||
|
return super.defineClass(name, data, 0, data.length, domain);
|
||||||
|
}
|
||||||
|
|
||||||
|
- public void linkClass(Class<?> cl) {
|
||||||
|
+ public void linkClass(Class cl) {
|
||||||
|
resolveClass(cl);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
--- a/xmlimplsrc/org/mozilla/javascript/xmlimpl/Namespace.java
|
||||||
|
+++ b/xmlimplsrc/org/mozilla/javascript/xmlimpl/Namespace.java
|
||||||
|
@@ -86,7 +86,7 @@ class Namespace extends IdScriptableObje
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
- public Object getDefaultValue(Class<?> hint) {
|
||||||
|
+ public Object getDefaultValue(Class hint) {
|
||||||
|
return uri();
|
||||||
|
}
|
||||||
|
|
||||||
|
--- a/xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java
|
||||||
|
+++ b/xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java
|
||||||
|
@@ -116,7 +116,7 @@ final class QName extends IdScriptableOb
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
- public Object getDefaultValue(Class<?> hint) {
|
||||||
|
+ public Object getDefaultValue(Class hint) {
|
||||||
|
return toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
--- a/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLObjectImpl.java
|
||||||
|
+++ b/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLObjectImpl.java
|
||||||
|
@@ -105,7 +105,7 @@ abstract class XMLObjectImpl extends XML
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
- public final Object getDefaultValue(Class<?> hint) {
|
||||||
|
+ public final Object getDefaultValue(Class hint) {
|
||||||
|
return this.toString();
|
||||||
|
}
|
||||||
|
|
||||||
32
rhino.script
Normal file
32
rhino.script
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# rhino script
|
||||||
|
# JPackage Project <http://www.jpackage.org/>
|
||||||
|
|
||||||
|
# Source functions library
|
||||||
|
. /usr/share/java-utils/java-functions
|
||||||
|
|
||||||
|
# Source system prefs
|
||||||
|
if [ -f /etc/rhino.conf ] ; then
|
||||||
|
. /etc/rhino.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Source user prefs
|
||||||
|
if [ -f $HOME/.rhinorc ] ; then
|
||||||
|
. $HOME/.rhinorc
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Configuration
|
||||||
|
MAIN_CLASS=org.mozilla.javascript.tools.shell.Main
|
||||||
|
# Remove xmlbeans until we have it in Fedora
|
||||||
|
#BASE_JARS="rhino jline xmlbeans/xbean"
|
||||||
|
BASE_JARS="rhino jline/jline jansi"
|
||||||
|
|
||||||
|
# Set parameters
|
||||||
|
set_jvm
|
||||||
|
set_classpath $BASE_JARS
|
||||||
|
set_flags $BASE_FLAGS
|
||||||
|
set_options $BASE_OPTIONS
|
||||||
|
|
||||||
|
# Let's start
|
||||||
|
run "$@"
|
||||||
78
rhino.spec
Normal file
78
rhino.spec
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
Name: rhino
|
||||||
|
Version: 1.7.7.1
|
||||||
|
Release: 7
|
||||||
|
Summary: Open-source implementation of JavaScript written entirely in Java
|
||||||
|
License: MPLv2.0
|
||||||
|
URL: http://www.mozilla.org/rhino/
|
||||||
|
Source0: https://github.com/mozilla/rhino/archive/Rhino1_7_7_1_RELEASE.tar.gz
|
||||||
|
Source1: http://repo1.maven.org/maven2/org/mozilla/rhino/%{version}/rhino-%{version}.pom
|
||||||
|
Source2: %{name}.script
|
||||||
|
Patch0: %{name}-build.patch
|
||||||
|
Patch1: %{name}-addOrbitManifest.patch
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: ant, java-devel >= 1:1.6.0.0, sonatype-oss-parent, javapackages-local
|
||||||
|
Requires: jline, javapackages-tools
|
||||||
|
Provides: %{name}-demo%{?_isa} %{name}-demo
|
||||||
|
Obsoletes: %{name}-demo
|
||||||
|
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
||||||
|
Obsoletes: %{name}-manual < %{version}-%{release}
|
||||||
|
|
||||||
|
%description
|
||||||
|
Rhino is an open-source implementation of JavaScript written entirely in Java.
|
||||||
|
It is typically embedded into Java applications to provide scripting to end users.
|
||||||
|
It is embedded in J2SE 6 as the default Java scripting engine.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: man files for %{name}
|
||||||
|
Requires: man
|
||||||
|
|
||||||
|
%description help
|
||||||
|
This package includes man files for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{name}-Rhino1_7_7_1_RELEASE
|
||||||
|
%patch0 -p1 -b .build
|
||||||
|
%patch1 -b .fixManifest
|
||||||
|
|
||||||
|
sed -i -e '/^Class-Path:.*$/d' src/manifest
|
||||||
|
sed -i -e 's|^implementation.version: Rhino .* release .* \${implementation.date}|implementation.version: Rhino %{version} release %{release} \${implementation.date}|' build.properties
|
||||||
|
|
||||||
|
%mvn_alias : rhino:js
|
||||||
|
%mvn_file : js %{name}
|
||||||
|
|
||||||
|
%build
|
||||||
|
ant deepclean jar copy-all -Dno-xmlbeans=1
|
||||||
|
%mvn_artifact %{SOURCE1} build/%{name}%{version}/js.jar
|
||||||
|
|
||||||
|
cd examples
|
||||||
|
export CLASSPATH=../build/%{name}%{version}/js.jar:$(build-classpath xmlbeans/xbean 2>/dev/null)
|
||||||
|
%{javac} *.java
|
||||||
|
%{jar} cf ../build/%{name}%{version}/%{name}-examples.jar *.class
|
||||||
|
cd -
|
||||||
|
|
||||||
|
%install
|
||||||
|
%mvn_install
|
||||||
|
|
||||||
|
install -d $RPM_BUILD_ROOT%{_mandir}/man1/
|
||||||
|
install -m 644 man/%{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
|
||||||
|
|
||||||
|
install -d $RPM_BUILD_ROOT%{_bindir}
|
||||||
|
install -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name}
|
||||||
|
|
||||||
|
cp -a build/%{name}%{version}/%{name}-examples.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-examples.jar
|
||||||
|
install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
|
||||||
|
cp -a examples/* $RPM_BUILD_ROOT%{_datadir}/%{name}
|
||||||
|
find $RPM_BUILD_ROOT%{_datadir}/%{name} -name '*.build' -delete
|
||||||
|
|
||||||
|
%files -f .mfiles
|
||||||
|
%attr(0755,root,root) %{_bindir}/*
|
||||||
|
%{_javadir}/*
|
||||||
|
%{_datadir}/%{name}
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%{_mandir}/man*/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Dec 4 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.7.7.1-7
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user