SHA256
1
0
forked from pool/java-cup
Fridrich Strba 2022-03-09 09:11:09 +00:00 committed by Git OBS Bridge
parent 0af37e9612
commit 551e17e5fb
2 changed files with 4 additions and 4 deletions

View File

@ -96,7 +96,6 @@ java-cup is a LALR Parser Generator in Java. With v0.11, you can: *
%prep %prep
%setup -q -n %{real_name}-%{git_hash} %setup -q -n %{real_name}-%{git_hash}
%setup -q -T -D -a 2 -n %{real_name}-%{git_hash}/compat
cat %{SOURCE100} | sed 's#@GIT_HASH@#%{git_hash}#g' | sed 's#@GIT_DATE@#%{git_date}#g' | patch -p1 -u -l cat %{SOURCE100} | sed 's#@GIT_HASH@#%{git_hash}#g' | sed 's#@GIT_DATE@#%{git_date}#g' | patch -p1 -u -l
%patch0 -p1 %patch0 -p1
%patch1 -p1 %patch1 -p1
@ -109,6 +108,7 @@ cat %{SOURCE100} | sed 's#@GIT_HASH@#%{git_hash}#g' | sed 's#@GIT_DATE@#%{git_da
find . -name '*.jar' -print -delete find . -name '*.jar' -print -delete
mkdir -p target/classes mkdir -p target/classes
mkdir -p compat/classes mkdir -p compat/classes
tar xf %{SOURCE2} -C compat
%build %build
%if %{with bootstrap} %if %{with bootstrap}
@ -120,7 +120,7 @@ export OPT_JAR_LIST=:
ant ant
pushd compat pushd compat
javac -d classes -source 1.7 -target 1.7 %{compat_name}/runtime/*.java %{compat_name}/*.java javac -d classes -source 1.7 -target 1.7 %{compat_name}/runtime/*.java %{compat_name}/*.java
jar -cf %{compat_name}.jar -c classes . jar -cf %{compat_name}.jar -C classes .
popd popd
%install %install

View File

@ -95,7 +95,6 @@ java-cup is a LALR Parser Generator in Java. With v0.11, you can: *
%prep %prep
%setup -q -n %{real_name}-%{git_hash} %setup -q -n %{real_name}-%{git_hash}
%setup -q -T -D -a 2 -n %{real_name}-%{git_hash}/compat
cat %{SOURCE100} | sed 's#@GIT_HASH@#%{git_hash}#g' | sed 's#@GIT_DATE@#%{git_date}#g' | patch -p1 -u -l cat %{SOURCE100} | sed 's#@GIT_HASH@#%{git_hash}#g' | sed 's#@GIT_DATE@#%{git_date}#g' | patch -p1 -u -l
%patch0 -p1 %patch0 -p1
%patch1 -p1 %patch1 -p1
@ -108,6 +107,7 @@ cat %{SOURCE100} | sed 's#@GIT_HASH@#%{git_hash}#g' | sed 's#@GIT_DATE@#%{git_da
find . -name '*.jar' -print -delete find . -name '*.jar' -print -delete
mkdir -p target/classes mkdir -p target/classes
mkdir -p compat/classes mkdir -p compat/classes
tar xf %{SOURCE2} -C compat
%build %build
%if %{with bootstrap} %if %{with bootstrap}
@ -119,7 +119,7 @@ export OPT_JAR_LIST=:
ant ant
pushd compat pushd compat
javac -d classes -source 1.7 -target 1.7 %{compat_name}/runtime/*.java %{compat_name}/*.java javac -d classes -source 1.7 -target 1.7 %{compat_name}/runtime/*.java %{compat_name}/*.java
jar -cf %{compat_name}.jar -c classes . jar -cf %{compat_name}.jar -C classes .
popd popd
%install %install