This commit is contained in:
parent
00f26dc6a8
commit
c360baa86b
@ -49,13 +49,10 @@ BuildRequires: xml-commons-resolver-bootstrap
|
||||
Obsoletes: java_cup < %{version}-%{release}
|
||||
Provides: java_cup = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
%if %without bootstrap
|
||||
%if %{without bootstrap}
|
||||
BuildRequires: java-cup-bootstrap
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: jflex
|
||||
%endif
|
||||
# bootstrap variant is just stripped down java-cup, so it conflicts
|
||||
%if %without bootstrap
|
||||
Conflicts: java-cup-bootstrap
|
||||
%else
|
||||
Conflicts: java-cup
|
||||
@ -73,7 +70,7 @@ java-cup is a LALR Parser Generator in Java. With v0.11, you can: *
|
||||
|
||||
* have Your own symbol classes
|
||||
|
||||
%if %without bootstrap
|
||||
%if %{without bootstrap}
|
||||
%package manual
|
||||
Summary: LALR Parser Generator in Java
|
||||
Group: Development/Libraries/Java
|
||||
@ -99,17 +96,17 @@ java-cup is a LALR Parser Generator in Java. With v0.11, you can: *
|
||||
cat %{SOURCE100} | sed 's#@GIT_HASH@#%{git_hash}#g' | sed 's#@GIT_DATE@#%{git_date}#g' | patch -p1 -u -l
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%if %with bootstrap
|
||||
%if %{with bootstrap}
|
||||
%setup -q -T -D -a 1 -n %{real_name}-%{git_hash}
|
||||
%patch2 -p1
|
||||
%else
|
||||
%{_bindir}/find . -name '*.jar' | %{_bindir}/xargs rm
|
||||
%patch3 -p1
|
||||
%endif
|
||||
find . -name '*.jar' -print -delete
|
||||
mkdir -p target/classes
|
||||
|
||||
%build
|
||||
%if %with bootstrap
|
||||
%if %{with bootstrap}
|
||||
export CLASSPATH=
|
||||
%else
|
||||
export CLASSPATH=$(build-classpath java-cup jflex)
|
||||
@ -123,7 +120,7 @@ mkdir -p %{buildroot}%{_javadir}
|
||||
cp -a target/dist/%{real_name}-%{cvs_version}.jar %{buildroot}%{_javadir}/%{real_name}.jar
|
||||
cp -a target/dist/%{real_name}-%{cvs_version}-runtime.jar %{buildroot}%{_javadir}/%{real_name}-runtime.jar
|
||||
|
||||
%if %without bootstrap
|
||||
%if %{without bootstrap}
|
||||
# maven data
|
||||
%add_maven_depmap com.github.vbmacher:%{real_name}:%{cvs_version}-%{git_date} %{real_name}.jar
|
||||
%add_maven_depmap com.github.vbmacher:%{real_name}-runtime:%{cvs_version}-%{git_date} %{real_name}-runtime.jar
|
||||
@ -133,9 +130,9 @@ cp -a target/dist/%{real_name}-%{cvs_version}-runtime.jar %{buildroot}%{_javadir
|
||||
(cd %{buildroot}%{_javadir} && ln -s %{real_name}.jar java_cup.jar && ln -s %{real_name}-runtime.jar java_cup-runtime.jar)
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
|
||||
%jpackage_script java_cup.Main "" "" %{real_name}:%{real_name}-runtime %{real_name}
|
||||
%jpackage_script java_cup.Main "" "" %{real_name}:%{real_name}-runtime %{real_name} true
|
||||
|
||||
%if %with bootstrap
|
||||
%if %{with bootstrap}
|
||||
%files
|
||||
%{_javadir}/%{real_name}*.jar
|
||||
%else
|
||||
@ -147,7 +144,7 @@ mkdir -p %{buildroot}%{_bindir}
|
||||
%attr(0755,root,root) %{_bindir}/%{real_name}
|
||||
%{_javadir}/java_cup*.jar
|
||||
|
||||
%if %without bootstrap
|
||||
%if %{without bootstrap}
|
||||
%files manual
|
||||
%doc manual.html
|
||||
|
||||
|
@ -48,13 +48,10 @@ BuildRequires: xml-commons-resolver-bootstrap
|
||||
Obsoletes: java_cup < %{version}-%{release}
|
||||
Provides: java_cup = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
%if %without bootstrap
|
||||
%if %{without bootstrap}
|
||||
BuildRequires: java-cup-bootstrap
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: jflex
|
||||
%endif
|
||||
# bootstrap variant is just stripped down java-cup, so it conflicts
|
||||
%if %without bootstrap
|
||||
Conflicts: java-cup-bootstrap
|
||||
%else
|
||||
Conflicts: java-cup
|
||||
@ -72,7 +69,7 @@ java-cup is a LALR Parser Generator in Java. With v0.11, you can: *
|
||||
|
||||
* have Your own symbol classes
|
||||
|
||||
%if %without bootstrap
|
||||
%if %{without bootstrap}
|
||||
%package manual
|
||||
Summary: LALR Parser Generator in Java
|
||||
Group: Development/Libraries/Java
|
||||
@ -98,17 +95,17 @@ java-cup is a LALR Parser Generator in Java. With v0.11, you can: *
|
||||
cat %{SOURCE100} | sed 's#@GIT_HASH@#%{git_hash}#g' | sed 's#@GIT_DATE@#%{git_date}#g' | patch -p1 -u -l
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%if %with bootstrap
|
||||
%if %{with bootstrap}
|
||||
%setup -q -T -D -a 1 -n %{real_name}-%{git_hash}
|
||||
%patch2 -p1
|
||||
%else
|
||||
%{_bindir}/find . -name '*.jar' | %{_bindir}/xargs rm
|
||||
%patch3 -p1
|
||||
%endif
|
||||
find . -name '*.jar' -print -delete
|
||||
mkdir -p target/classes
|
||||
|
||||
%build
|
||||
%if %with bootstrap
|
||||
%if %{with bootstrap}
|
||||
export CLASSPATH=
|
||||
%else
|
||||
export CLASSPATH=$(build-classpath java-cup jflex)
|
||||
@ -122,7 +119,7 @@ mkdir -p %{buildroot}%{_javadir}
|
||||
cp -a target/dist/%{real_name}-%{cvs_version}.jar %{buildroot}%{_javadir}/%{real_name}.jar
|
||||
cp -a target/dist/%{real_name}-%{cvs_version}-runtime.jar %{buildroot}%{_javadir}/%{real_name}-runtime.jar
|
||||
|
||||
%if %without bootstrap
|
||||
%if %{without bootstrap}
|
||||
# maven data
|
||||
%add_maven_depmap com.github.vbmacher:%{real_name}:%{cvs_version}-%{git_date} %{real_name}.jar
|
||||
%add_maven_depmap com.github.vbmacher:%{real_name}-runtime:%{cvs_version}-%{git_date} %{real_name}-runtime.jar
|
||||
@ -132,9 +129,9 @@ cp -a target/dist/%{real_name}-%{cvs_version}-runtime.jar %{buildroot}%{_javadir
|
||||
(cd %{buildroot}%{_javadir} && ln -s %{real_name}.jar java_cup.jar && ln -s %{real_name}-runtime.jar java_cup-runtime.jar)
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
|
||||
%jpackage_script java_cup.Main "" "" %{real_name}:%{real_name}-runtime %{real_name}
|
||||
%jpackage_script java_cup.Main "" "" %{real_name}:%{real_name}-runtime %{real_name} true
|
||||
|
||||
%if %with bootstrap
|
||||
%if %{with bootstrap}
|
||||
%files
|
||||
%{_javadir}/%{real_name}*.jar
|
||||
%else
|
||||
@ -146,7 +143,7 @@ mkdir -p %{buildroot}%{_bindir}
|
||||
%attr(0755,root,root) %{_bindir}/%{real_name}
|
||||
%{_javadir}/java_cup*.jar
|
||||
|
||||
%if %without bootstrap
|
||||
%if %{without bootstrap}
|
||||
%files manual
|
||||
%doc manual.html
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user