Accepting request 963730 from Java:packages
maven.compiler.release=8 OBS-URL: https://build.opensuse.org/request/show/963730 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/antlr3?expand=0&rev=3
This commit is contained in:
commit
c7089737ac
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 21 14:54:29 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Build with source and target levels 8
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Nov 24 11:36:43 UTC 2019 - Fridrich Strba <fstrba@suse.com>
|
Sun Nov 24 11:36:43 UTC 2019 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
20
antlr3.spec
20
antlr3.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package antlr3
|
# spec file for package antlr3-java
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -39,6 +39,7 @@ Patch0: 0001-java8-fix.patch
|
|||||||
Patch1: osgi-manifest.patch
|
Patch1: osgi-manifest.patch
|
||||||
Patch100: antlr3-generated_sources.patch
|
Patch100: antlr3-generated_sources.patch
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: java-devel >= 1.8
|
||||||
BuildRequires: maven-local
|
BuildRequires: maven-local
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
BuildRequires: mvn(antlr:antlr)
|
BuildRequires: mvn(antlr:antlr)
|
||||||
@ -92,13 +93,13 @@ descriptions containing actions in a variety of target languages.
|
|||||||
%package tool
|
%package tool
|
||||||
Summary: ANother Tool for Language Recognition
|
Summary: ANother Tool for Language Recognition
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Requires: mvn(org.antlr:antlr-runtime) = %{antlr_version}
|
|
||||||
# Explicit requires for javapackages-tools since antlr3-script
|
# Explicit requires for javapackages-tools since antlr3-script
|
||||||
# uses /usr/share/java-utils/java-functions
|
# uses /usr/share/java-utils/java-functions
|
||||||
Requires: javapackages-tools
|
Requires: javapackages-tools
|
||||||
|
Requires: mvn(org.antlr:antlr-runtime) = %{antlr_version}
|
||||||
%if %{without bootstrap}
|
%if %{without bootstrap}
|
||||||
Provides: antlr3-bootstrap-tool
|
|
||||||
Conflicts: antlr3-bootstrap-tool
|
Conflicts: antlr3-bootstrap-tool
|
||||||
|
Provides: antlr3-bootstrap-tool
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description tool
|
%description tool
|
||||||
@ -150,8 +151,8 @@ find -type f -a -name *.class -delete
|
|||||||
%pom_remove_plugin :maven-source-plugin
|
%pom_remove_plugin :maven-source-plugin
|
||||||
%pom_remove_plugin :maven-javadoc-plugin
|
%pom_remove_plugin :maven-javadoc-plugin
|
||||||
|
|
||||||
# compile for target 1.6, see BZ#842572
|
# compile for target 1.8
|
||||||
sed -i 's/jsr14/1.6/' antlr3-maven-archetype/src/main/resources/archetype-resources/pom.xml \
|
sed -i 's/jsr14/1.8/' antlr3-maven-archetype/src/main/resources/archetype-resources/pom.xml \
|
||||||
antlr3-maven-plugin/pom.xml \
|
antlr3-maven-plugin/pom.xml \
|
||||||
gunit/pom.xml \
|
gunit/pom.xml \
|
||||||
gunit-maven-plugin/pom.xml \
|
gunit-maven-plugin/pom.xml \
|
||||||
@ -176,16 +177,18 @@ sed -i 's/jsr14/1.6/' antlr3-maven-archetype/src/main/resources/archetype-resour
|
|||||||
%if %{with bootstrap}
|
%if %{with bootstrap}
|
||||||
-j \
|
-j \
|
||||||
%endif
|
%endif
|
||||||
|
-- \
|
||||||
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
|
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
|
||||||
-- -Dmaven.compiler.release=6
|
-Dmaven.compiler.release=8 \
|
||||||
%endif
|
%endif
|
||||||
|
-Dsource=8
|
||||||
|
|
||||||
%if %{without runtime} && %{without bootstrap}
|
%if %{without runtime} && %{without bootstrap}
|
||||||
|
|
||||||
# build ant task
|
# build ant task
|
||||||
pushd antlr-ant/main/antlr3-task/
|
pushd antlr-ant/main/antlr3-task/
|
||||||
export CLASSPATH=$(build-classpath ant)
|
export CLASSPATH=$(build-classpath ant)
|
||||||
javac -encoding ISO-8859-1 antlr3-src/org/apache/tools/ant/antlr/ANTLR3.java
|
javac -encoding ISO-8859-1 -source 8 -target 8 antlr3-src/org/apache/tools/ant/antlr/ANTLR3.java
|
||||||
jar cvf ant-antlr3.jar \
|
jar cvf ant-antlr3.jar \
|
||||||
-C antlr3-src org/apache/tools/ant/antlr/antlib.xml \
|
-C antlr3-src org/apache/tools/ant/antlr/antlib.xml \
|
||||||
-C antlr3-src org/apache/tools/ant/antlr/ANTLR3.class
|
-C antlr3-src org/apache/tools/ant/antlr/ANTLR3.class
|
||||||
@ -228,6 +231,7 @@ EOF
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%else
|
%else
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
%license tool/LICENSE.txt
|
%license tool/LICENSE.txt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user