Accepting request 526251 from Java:packages
Fix build with the new java-gcj-compat OBS-URL: https://build.opensuse.org/request/show/526251 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rhino?expand=0&rev=31
This commit is contained in:
commit
beb27ac551
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 15 05:49:47 UTC 2017 - fstrba@suse.com
|
||||||
|
|
||||||
|
- Make build with the new version of java-1_5_0-gcj-compat, where
|
||||||
|
javac is not just a simple link to gcj, but a wrapper script that
|
||||||
|
runs Eclipse Compiler for Java(tm)
|
||||||
|
- Make buildable with different versions of OpenJDK
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jun 9 09:59:36 UTC 2017 - tchvatal@suse.com
|
Fri Jun 9 09:59:36 UTC 2017 - tchvatal@suse.com
|
||||||
|
|
||||||
|
36
rhino.spec
36
rhino.spec
@ -22,7 +22,7 @@ Name: rhino
|
|||||||
Version: 1.7R3
|
Version: 1.7R3
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: JavaScript for Java
|
Summary: JavaScript for Java
|
||||||
License: MPL-1.1 or GPL-2.0+
|
License: MPL-1.1 OR GPL-2.0+
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Url: http://www.mozilla.org/rhino/
|
Url: http://www.mozilla.org/rhino/
|
||||||
# wget ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino%{cvs_version}.zip
|
# wget ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino%{cvs_version}.zip
|
||||||
@ -51,20 +51,31 @@ BuildRequires: bea-stax-api
|
|||||||
BuildRequires: java-1_5_0-gcj-compat-devel
|
BuildRequires: java-1_5_0-gcj-compat-devel
|
||||||
BuildRequires: javapackages-tools
|
BuildRequires: javapackages-tools
|
||||||
BuildRequires: jline
|
BuildRequires: jline
|
||||||
|
BuildRequires: xmlbeans-mini
|
||||||
|
#!BuildIgnore: antlr
|
||||||
|
#!BuildIgnore: antlr-java
|
||||||
|
#!BuildIgnore: java-1_6_0-openjdk
|
||||||
|
#!BuildIgnore: java-1_6_0-openjdk-devel
|
||||||
|
#!BuildIgnore: java-1_6_0-openjdk-headless
|
||||||
|
#!BuildIgnore: java-1_7_0-openjdk
|
||||||
|
#!BuildIgnore: java-1_7_0-openjdk-devel
|
||||||
|
#!BuildIgnore: java-1_7_0-openjdk-headless
|
||||||
|
#!BuildIgnore: java-1_8_0-openjdk
|
||||||
|
#!BuildIgnore: java-1_8_0-openjdk-devel
|
||||||
|
#!BuildIgnore: java-1_8_0-openjdk-headless
|
||||||
|
#!BuildIgnore: java-9-openjdk
|
||||||
|
#!BuildIgnore: java-9-openjdk-devel
|
||||||
|
#!BuildIgnore: java-9-openjdk-headless
|
||||||
|
#!BuildIgnore: xerces-j2
|
||||||
#BuildRequires: xerces-j2-bootstrap
|
#BuildRequires: xerces-j2-bootstrap
|
||||||
#!BuildIgnore: xerces-j2-bootstrap
|
#!BuildIgnore: xerces-j2-bootstrap
|
||||||
BuildRequires: xmlbeans-mini
|
#!BuildIgnore: xml-commons
|
||||||
#!BuildIgnore: xerces-j2 xml-commons xml-commons-apis xml-commons-resolver
|
#!BuildIgnore: xml-commons-apis
|
||||||
#!BuildIgnore: antlr antlr-java
|
|
||||||
#!BuildIgnore: xml-commons-jaxp-1.3-apis
|
#!BuildIgnore: xml-commons-jaxp-1.3-apis
|
||||||
#!BuildIgnore: java-1_6_0-openjdk java-1_6_0-openjdk-devel java-1_6_0-openjdk-headless
|
#!BuildIgnore: xml-commons-resolver
|
||||||
#!BuildIgnore: java-1_7_0-openjdk java-1_7_0-openjdk-devel java-1_7_0-openjdk-headless
|
|
||||||
#!BuildIgnore: java-1_8_0-openjdk java-1_8_0-openjdk-devel java-1_8_0-openjdk-headless
|
|
||||||
#!BuildIgnore: java-9-openjdk java-9-openjdk-devel java-9-openjdk-headless
|
|
||||||
Requires: bea-stax-api
|
Requires: bea-stax-api
|
||||||
Requires: jline
|
Requires: jline
|
||||||
Requires: xmlbeans
|
Requires: xmlbeans
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -110,9 +121,10 @@ export OPT_JAR_LIST=:
|
|||||||
-Djsr173.jar=$(build-classpath bea-stax-api) \
|
-Djsr173.jar=$(build-classpath bea-stax-api) \
|
||||||
deepclean jar copy-all
|
deepclean jar copy-all
|
||||||
|
|
||||||
|
export CLASSPATH=`pwd`/build/%{name}%{cvs_version}/js.jar:$(build-classpath xmlbeans/xbean 2>/dev/null)
|
||||||
|
SOURCEPATH=`pwd`/build/%{name}%{cvs_version}/src
|
||||||
pushd examples
|
pushd examples
|
||||||
export CLASSPATH=../build/%{name}%{cvs_version}/js.jar:$(build-classpath xmlbeans/xbean 2>/dev/null)
|
javac -sourcepath ${SOURCEPATH} -source 1.5 -target 1.5 *.java
|
||||||
javac -C *.java
|
|
||||||
jar cvf ../build/%{name}%{cvs_version}/%{name}-examples.jar *.class
|
jar cvf ../build/%{name}%{cvs_version}/%{name}-examples.jar *.class
|
||||||
popd
|
popd
|
||||||
|
|
||||||
@ -136,7 +148,6 @@ cp -a examples/* %{buildroot}%{_datadir}/%{name}
|
|||||||
cp -a build/%{name}%{cvs_version}/%{name}-examples.jar %{buildroot}%{_javadir}/%{name}-examples.jar
|
cp -a build/%{name}%{cvs_version}/%{name}-examples.jar %{buildroot}%{_javadir}/%{name}-examples.jar
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(0644,root,root,0755)
|
|
||||||
%doc LICENSE.txt
|
%doc LICENSE.txt
|
||||||
%attr(0755,root,root) %{_bindir}/%{name}
|
%attr(0755,root,root) %{_bindir}/%{name}
|
||||||
%attr(0755,root,root) %{_bindir}/%{name}-debugger
|
%attr(0755,root,root) %{_bindir}/%{name}-debugger
|
||||||
@ -145,7 +156,6 @@ cp -a build/%{name}%{cvs_version}/%{name}-examples.jar %{buildroot}%{_javadir}/%
|
|||||||
%{_javadir}/*.jar
|
%{_javadir}/*.jar
|
||||||
|
|
||||||
%files demo
|
%files demo
|
||||||
%defattr(0644,root,root,0755)
|
|
||||||
%{_datadir}/%{name}
|
%{_datadir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user