- 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
This commit is contained in:
parent
8f8cca0e3c
commit
2197877871
@ -30,10 +30,11 @@
|
||||
|
||||
%define pkg_version 11a
|
||||
%define section free
|
||||
%define with_bootstrap 0
|
||||
|
||||
Name: java_cup
|
||||
Version: 0.11a
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Epoch: 1
|
||||
Summary: Java source interpreter
|
||||
License: BSD and LGPLv2
|
||||
@ -44,6 +45,10 @@ Source0: java_cup-0.11a.tar.bz2
|
||||
Patch0: %{name}-build.patch
|
||||
BuildRequires: ant
|
||||
BuildRequires: jpackage-utils >= 0:1.5
|
||||
BuildRequires: jflex
|
||||
%if ! %{with_bootstrap}
|
||||
BuildRequires: java_cup >= 1:0.11a
|
||||
%endif
|
||||
Group: Development/Tools
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
@ -54,9 +59,6 @@ java_cup is a LALR Parser Generator for Java
|
||||
%package javadoc
|
||||
Summary: Javadoc for java_cup
|
||||
Group: Documentation
|
||||
# For /bin/rm and /bin/ln
|
||||
Requires(post): coreutils
|
||||
Requires(postun): coreutils
|
||||
|
||||
%description javadoc
|
||||
Javadoc for java_cup
|
||||
@ -75,7 +77,21 @@ Documentation for java_cup.
|
||||
# remove all binary files
|
||||
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
|
||||
%if ! %{with_bootstrap}
|
||||
export CLASSPATH=$(build-classpath java_cup java_cup-runtime jflex)
|
||||
%else
|
||||
export CLASSPATH=$(build-classpath jflex)
|
||||
%endif
|
||||
|
||||
ant
|
||||
find . -name parser.cup -exec rm {} \;
|
||||
ant javadoc
|
||||
@ -113,6 +129,11 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%doc %{_javadocdir}/%{name}
|
||||
|
||||
%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
|
||||
- Update to 0.11a.
|
||||
- Drop gcj_support.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user