SHA256
1
0
forked from pool/antlr
Fridrich Strba 2018-05-15 06:05:28 +00:00 committed by Git OBS Bridge
parent a70df919d9
commit 883988aaa4
4 changed files with 18 additions and 6 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue May 15 05:55:58 UTC 2018 - fstrba@suse.com
- Build with source and target 8 to prepare for a possible removal
of 1.6 compatibility in OpenJDK 11
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Dec 7 11:38:17 UTC 2017 - dimstar@opensuse.org Thu Dec 7 11:38:17 UTC 2017 - dimstar@opensuse.org

View File

@ -27,7 +27,7 @@ Group: Development/Libraries/Java
Url: http://www.antlr.org Url: http://www.antlr.org
Source0: antlr-%{version}.tar.bz2 Source0: antlr-%{version}.tar.bz2
Source1: manifest.antlr Source1: manifest.antlr
BuildRequires: java-devel >= 1.6 BuildRequires: java-devel >= 1.8
BuildRequires: unzip BuildRequires: unzip
BuildRequires: zip BuildRequires: zip
BuildArch: noarch BuildArch: noarch
@ -94,7 +94,7 @@ function mkJar() {
xargs jar cfm ${1}.jar manifest.* ; xargs jar cfm ${1}.jar manifest.* ;
mv ${1}.jar $TARGET_DIR mv ${1}.jar $TARGET_DIR
} }
COMPILER_COMMAND="javac -source 1.6 -target 1.6 -cp " COMPILER_COMMAND="javac -source 8 -target 8 -cp "
delBinaryFiles delBinaryFiles
mkdir src mkdir src
mv antlr src mv antlr src

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue May 15 05:54:51 UTC 2018 - fstrba@suse.com
- Build with source and target 8 to prepare for a possible removal
of 1.6 compatibility in OpenJDK 11
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jan 12 11:53:47 UTC 2018 - tchvatal@suse.com Fri Jan 12 11:53:47 UTC 2018 - tchvatal@suse.com

View File

@ -21,7 +21,7 @@ Name: antlr
Version: 2.7.7 Version: 2.7.7
Release: 0 Release: 0
Summary: Another Tool for Language Recognition Summary: Another Tool for Language Recognition
License: GPL-2.0+ AND SUSE-Public-Domain AND MIT License: GPL-2.0-or-later AND SUSE-Public-Domain AND MIT
Group: Development/Tools/Other Group: Development/Tools/Other
Url: http://www.antlr.org/ Url: http://www.antlr.org/
Source0: antlr-%{version}.tar.bz2 Source0: antlr-%{version}.tar.bz2
@ -35,7 +35,7 @@ Patch2: fix-docpath.diff
BuildRequires: ant BuildRequires: ant
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: java-devel >= 1.6 BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-tools BuildRequires: javapackages-tools
%if %{with python2} %if %{with python2}
BuildRequires: python2-base BuildRequires: python2-base
@ -55,7 +55,7 @@ or Java actions (you can use PCCTS 1.xx to generate C-based parsers).
%package java %package java
Summary: ANother Tool for Language Recognition (Manual) Summary: ANother Tool for Language Recognition (Manual)
Group: Development/Tools/Other Group: Development/Tools/Other
Requires: java >= 1.6 Requires: java >= 1.8
BuildArch: noarch BuildArch: noarch
%description java %description java
@ -123,7 +123,7 @@ find | grep "\(ShowString.java$\|StreamConverter.java$\)" && exit 42 || :
%build %build
ant \ ant \
-Dj2se.apidoc=%{_javadocdir}/java \ -Dj2se.apidoc=%{_javadocdir}/java \
-Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 \ -Dant.build.javac.source=8 -Dant.build.javac.target=8 \
jar jar
%configure %configure
make -j1 make -j1