This commit is contained in:
parent
0af37e9612
commit
551e17e5fb
@ -96,7 +96,6 @@ java-cup is a LALR Parser Generator in Java. With v0.11, you can: *
|
||||
|
||||
%prep
|
||||
%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
|
||||
%patch0 -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
|
||||
mkdir -p target/classes
|
||||
mkdir -p compat/classes
|
||||
tar xf %{SOURCE2} -C compat
|
||||
|
||||
%build
|
||||
%if %{with bootstrap}
|
||||
@ -120,7 +120,7 @@ export OPT_JAR_LIST=:
|
||||
ant
|
||||
pushd compat
|
||||
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
|
||||
|
||||
%install
|
||||
|
@ -95,7 +95,6 @@ java-cup is a LALR Parser Generator in Java. With v0.11, you can: *
|
||||
|
||||
%prep
|
||||
%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
|
||||
%patch0 -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
|
||||
mkdir -p target/classes
|
||||
mkdir -p compat/classes
|
||||
tar xf %{SOURCE2} -C compat
|
||||
|
||||
%build
|
||||
%if %{with bootstrap}
|
||||
@ -119,7 +119,7 @@ export OPT_JAR_LIST=:
|
||||
ant
|
||||
pushd compat
|
||||
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
|
||||
|
||||
%install
|
||||
|
Loading…
Reference in New Issue
Block a user