|
|
@ -30,10 +30,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
%define pkg_version 11a
|
|
|
|
%define pkg_version 11a
|
|
|
|
%define section free
|
|
|
|
%define section free
|
|
|
|
|
|
|
|
%define with_bootstrap 0
|
|
|
|
|
|
|
|
|
|
|
|
Name: java_cup
|
|
|
|
Name: java_cup
|
|
|
|
Version: 0.11a
|
|
|
|
Version: 0.11a
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Epoch: 1
|
|
|
|
Epoch: 1
|
|
|
|
Summary: Java source interpreter
|
|
|
|
Summary: Java source interpreter
|
|
|
|
License: BSD and LGPLv2
|
|
|
|
License: BSD and LGPLv2
|
|
|
@ -44,6 +45,10 @@ Source0: java_cup-0.11a.tar.bz2
|
|
|
|
Patch0: %{name}-build.patch
|
|
|
|
Patch0: %{name}-build.patch
|
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: jpackage-utils >= 0:1.5
|
|
|
|
BuildRequires: jpackage-utils >= 0:1.5
|
|
|
|
|
|
|
|
BuildRequires: jflex
|
|
|
|
|
|
|
|
%if ! %{with_bootstrap}
|
|
|
|
|
|
|
|
BuildRequires: java_cup >= 1:0.11a
|
|
|
|
|
|
|
|
%endif
|
|
|
|
Group: Development/Tools
|
|
|
|
Group: Development/Tools
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
@ -54,9 +59,6 @@ java_cup is a LALR Parser Generator for Java
|
|
|
|
%package javadoc
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for java_cup
|
|
|
|
Summary: Javadoc for java_cup
|
|
|
|
Group: Documentation
|
|
|
|
Group: Documentation
|
|
|
|
# For /bin/rm and /bin/ln
|
|
|
|
|
|
|
|
Requires(post): coreutils
|
|
|
|
|
|
|
|
Requires(postun): coreutils
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
%description javadoc
|
|
|
|
Javadoc for java_cup
|
|
|
|
Javadoc for java_cup
|
|
|
@ -75,7 +77,21 @@ Documentation for java_cup.
|
|
|
|
# remove all binary files
|
|
|
|
# remove all binary files
|
|
|
|
find . -name "*.class" -exec rm -f {} \;
|
|
|
|
find . -name "*.class" -exec rm -f {} \;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# remove prebuilt JFlex
|
|
|
|
|
|
|
|
rm -rf java_cup-0.11a/bin/JFlex.jar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# remove prebuilt java_cup, if not bootstrapping
|
|
|
|
|
|
|
|
%if ! %{with_bootstrap}
|
|
|
|
|
|
|
|
rm -rf java_cup-0.11a/bin/java-cup-11.jar
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
%if ! %{with_bootstrap}
|
|
|
|
|
|
|
|
export CLASSPATH=$(build-classpath java_cup java_cup-runtime jflex)
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
export CLASSPATH=$(build-classpath jflex)
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
ant
|
|
|
|
ant
|
|
|
|
find . -name parser.cup -exec rm {} \;
|
|
|
|
find . -name parser.cup -exec rm {} \;
|
|
|
|
ant javadoc
|
|
|
|
ant javadoc
|
|
|
@ -113,6 +129,11 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
%doc %{_javadocdir}/%{name}
|
|
|
|
%doc %{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sun Jan 17 2010 Miloš Jakubíček <xjakub@fi.muni.cz> - 1:0.11a-2
|
|
|
|
|
|
|
|
- Rebuilt in non-bootstrap mode (removed all prebuilt jars).
|
|
|
|
|
|
|
|
- Added BR: jflex and java_cup >= 1:0.11a for non-bootstrap mode
|
|
|
|
|
|
|
|
- Remove unnecessary R(post,postun): coreutils
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 8 2010 Alexander Kurtakov <akurtako@redhat.com> 1:0.11a-1
|
|
|
|
* Fri Jan 8 2010 Alexander Kurtakov <akurtako@redhat.com> 1:0.11a-1
|
|
|
|
- Update to 0.11a.
|
|
|
|
- Update to 0.11a.
|
|
|
|
- Drop gcj_support.
|
|
|
|
- Drop gcj_support.
|
|
|
|