SHA256
1
0
forked from pool/jflex
Fridrich Strba 2022-03-17 10:43:27 +00:00 committed by Git OBS Bridge
parent ff5d1f087e
commit 56fcaa032f
2 changed files with 10 additions and 2 deletions

View File

@ -31,7 +31,9 @@ Source1: jflex-%{version}-generated-files.tar.xz
Source2: jflex-build.xml
Patch0: jflex-1.8.2-no-auto-value.patch
BuildRequires: ant
%if 0%{?suse_version} > 1500
BuildRequires: glassfish-annotation-api
%endif
BuildRequires: java-devel
BuildRequires: javapackages-local
Requires: java_cup
@ -95,10 +97,12 @@ rm -rf src/generated
%if %{with bootstrap}
%setup -q -T -D -a 1 -n jflex-%{version}
cp %{SOURCE2} build.xml
build-jar-repository -s lib glassfish-annotation-api
mkdir -p lib
%patch0 -p1
build-jar-repository -s lib java-cup-runtime
%if 0%{?suse_version} > 1500
build-jar-repository -s lib glassfish-annotation-api
%endif
%else
%{mvn_file} : %{name} JFlex
%endif

View File

@ -30,7 +30,9 @@ Source1: jflex-%{version}-generated-files.tar.xz
Source2: jflex-build.xml
Patch0: jflex-1.8.2-no-auto-value.patch
BuildRequires: ant
%if 0%{?suse_version} > 1500
BuildRequires: glassfish-annotation-api
%endif
BuildRequires: java-devel
BuildRequires: javapackages-local
Requires: java_cup
@ -94,10 +96,12 @@ rm -rf src/generated
%if %{with bootstrap}
%setup -q -T -D -a 1 -n jflex-%{version}
cp %{SOURCE2} build.xml
build-jar-repository -s lib glassfish-annotation-api
mkdir -p lib
%patch0 -p1
build-jar-repository -s lib java-cup-runtime
%if 0%{?suse_version} > 1500
build-jar-repository -s lib glassfish-annotation-api
%endif
%else
%{mvn_file} : %{name} JFlex
%endif