forked from pool/jflex
This commit is contained in:
parent
8e0888c90b
commit
ff5d1f087e
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user