SHA256
1
0
forked from pool/jflex
Fridrich Strba 2022-03-16 18:08:03 +00:00 committed by Git OBS Bridge
parent 8e0888c90b
commit ff5d1f087e
2 changed files with 8 additions and 4 deletions

View File

@ -31,6 +31,7 @@ Source1: jflex-%{version}-generated-files.tar.xz
Source2: jflex-build.xml
Patch0: jflex-1.8.2-no-auto-value.patch
BuildRequires: ant
BuildRequires: glassfish-annotation-api
BuildRequires: java-devel
BuildRequires: javapackages-local
Requires: java_cup
@ -94,8 +95,9 @@ rm -rf src/generated
%if %{with bootstrap}
%setup -q -T -D -a 1 -n jflex-%{version}
cp %{SOURCE2} build.xml
%patch0 -p1
build-jar-repository -s lib glassfish-annotation-api
mkdir -p lib
%patch0 -p1
build-jar-repository -s lib java-cup-runtime
%else
%{mvn_file} : %{name} JFlex
@ -124,7 +126,7 @@ cp -a target/jflex-%{version}.jar %{buildroot}%{_javadir}/jflex.jar
%fdupes -s %{buildroot}/%{_javadocdir}/%{name}
%endif
%jpackage_script jflex.Main "" "" jflex:java-cup jflex true
%jpackage_script jflex.Main "" "" jflex:java-cup:java-cup-runtime jflex true
%if %{with bootstrap}
%files

View File

@ -30,6 +30,7 @@ Source1: jflex-%{version}-generated-files.tar.xz
Source2: jflex-build.xml
Patch0: jflex-1.8.2-no-auto-value.patch
BuildRequires: ant
BuildRequires: glassfish-annotation-api
BuildRequires: java-devel
BuildRequires: javapackages-local
Requires: java_cup
@ -93,8 +94,9 @@ rm -rf src/generated
%if %{with bootstrap}
%setup -q -T -D -a 1 -n jflex-%{version}
cp %{SOURCE2} build.xml
%patch0 -p1
build-jar-repository -s lib glassfish-annotation-api
mkdir -p lib
%patch0 -p1
build-jar-repository -s lib java-cup-runtime
%else
%{mvn_file} : %{name} JFlex
@ -123,7 +125,7 @@ cp -a target/jflex-%{version}.jar %{buildroot}%{_javadir}/jflex.jar
%fdupes -s %{buildroot}/%{_javadocdir}/%{name}
%endif
%jpackage_script jflex.Main "" "" jflex:java-cup jflex true
%jpackage_script jflex.Main "" "" jflex:java-cup:java-cup-runtime jflex true
%if %{with bootstrap}
%files