Update to 4.1
This commit is contained in:
parent
57a488aa8d
commit
a2d2f8f11b
@ -1 +1,2 @@
|
||||
javacc-4.0src-RHCLEAN.tar.gz
|
||||
javacc-4.1src.tar.gz
|
||||
javacc.jar
|
||||
|
||||
88
javacc.spec
88
javacc.spec
@ -28,35 +28,35 @@
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
|
||||
%define _with_gcj_support 1
|
||||
|
||||
%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
|
||||
%define with_gcj %{!?_without_gcj:1}%{?_without_gcj:0}
|
||||
|
||||
%define section free
|
||||
|
||||
Name: javacc
|
||||
Version: 4.0
|
||||
Release: 4.5%{?dist}
|
||||
Version: 4.1
|
||||
Release: 0.2%{?dist}
|
||||
Epoch: 0
|
||||
Summary: A parser/scanner generator for java
|
||||
License: BSD
|
||||
Source0: javacc-4.0src-RHCLEAN.tar.gz
|
||||
Source1: javacc.sh
|
||||
Source2: jjdoc
|
||||
Source3: jjtree
|
||||
Source0: https://javacc.dev.java.net/files/documents/17/108015/%{name}-%{version}src.tar.gz
|
||||
Source1: javacc.sh
|
||||
Source2: jjdoc
|
||||
Source3: jjtree
|
||||
#Jar used for bootstrapping
|
||||
Source4: javacc.jar
|
||||
URL: https://javacc.dev.java.net/
|
||||
Group: Development/Code Generators
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
||||
%if ! %{gcj_support}
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
Requires: jpackage-utils >= 0:1.5
|
||||
BuildRequires: ant, /bin/bash, ant-junit, junit >= 0:3.8.1
|
||||
Requires: java, jpackage-utils >= 0:1.5
|
||||
BuildRequires: ant, ant-junit, junit >= 0:3.8.1
|
||||
BuildRequires: java-devel, jpackage-utils >= 0:1.5
|
||||
|
||||
%if %{gcj_support}
|
||||
BuildRequires: java-gcj-compat-devel
|
||||
Requires(post): java-gcj-compat
|
||||
Requires(postun): java-gcj-compat
|
||||
%if %{with_gcj}
|
||||
BuildRequires: java-gcj-compat-devel >= 1.0.31
|
||||
Requires(post): java-gcj-compat >= 1.0.31
|
||||
Requires(postun): java-gcj-compat >= 1.0.31
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%description
|
||||
@ -70,6 +70,7 @@ a tool called JJTree included with JavaCC), actions, debugging, etc.
|
||||
%package manual
|
||||
Summary: Manual for %{name}
|
||||
Group: Development/Documentation
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description manual
|
||||
Manual for %{name}.
|
||||
@ -77,21 +78,32 @@ Manual for %{name}.
|
||||
%package demo
|
||||
Summary: Examples for %{name}
|
||||
Group: Development/Documentation
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description demo
|
||||
Examples for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}
|
||||
cp %{SOURCE1} javacc
|
||||
cp %{SOURCE2} jjdoc
|
||||
cp %{SOURCE3} jjtree
|
||||
mv www/doc .
|
||||
|
||||
# Remove binary information in the source tar
|
||||
find . -name "*.jar" -exec rm {} \;
|
||||
find . -name "*.class" -exec rm {} \;
|
||||
|
||||
cp -p %{SOURCE1} bin/javacc
|
||||
cp -p %{SOURCE2} bin/jjdoc
|
||||
cp -p %{SOURCE3} bin/jjtree
|
||||
|
||||
cp -p %{SOURCE4} bootstrap/javacc.jar
|
||||
|
||||
%build
|
||||
ant \
|
||||
-Dversion=%{version} \
|
||||
jar
|
||||
# Use the bootstrap javacc.jar to generate some required
|
||||
# source java files. After these source files are generated we
|
||||
# remove the bootstrap jar and build the binary from source.
|
||||
ant -f src/org/javacc/parser/build.xml parser-files
|
||||
ant -f src/org/javacc/jjtree/build.xml tree-files
|
||||
find . -name "*.jar" -exec rm {} \;
|
||||
ant jar
|
||||
|
||||
%install
|
||||
rm -fr $RPM_BUILD_ROOT
|
||||
@ -99,11 +111,11 @@ install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
||||
install -m 644 bin/lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
||||
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
||||
install -d -m 755 $RPM_BUILD_ROOT/%{_bindir}
|
||||
install -m 755 javacc jjdoc jjtree $RPM_BUILD_ROOT/%{_bindir}
|
||||
install -m 755 bin/javacc bin/jjdoc bin/jjrun bin/jjtree $RPM_BUILD_ROOT/%{_bindir}
|
||||
install -d -m 755 $RPM_BUILD_ROOT/%{_datadir}/%{name}
|
||||
cp -pr examples $RPM_BUILD_ROOT/%{_datadir}/%{name}
|
||||
|
||||
%if %{gcj_support}
|
||||
%if %{with_gcj}
|
||||
%{_bindir}/aot-compile-rpm
|
||||
%endif
|
||||
|
||||
@ -111,7 +123,7 @@ cp -pr examples $RPM_BUILD_ROOT/%{_datadir}/%{name}
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post
|
||||
%if %{gcj_support}
|
||||
%if %{with_gcj}
|
||||
if [ -x %{_bindir}/rebuild-gcj-db ]
|
||||
then
|
||||
%{_bindir}/rebuild-gcj-db
|
||||
@ -119,7 +131,7 @@ fi
|
||||
%endif
|
||||
|
||||
%postun
|
||||
%if %{gcj_support}
|
||||
%if %{with_gcj}
|
||||
if [ -x %{_bindir}/rebuild-gcj-db ]
|
||||
then
|
||||
%{_bindir}/rebuild-gcj-db
|
||||
@ -133,19 +145,31 @@ fi
|
||||
%defattr(0755,root,root,0755)
|
||||
/usr/bin/*
|
||||
|
||||
%if %{gcj_support}
|
||||
%attr(-,root,root) %{_libdir}/gcj/%{name}/javacc-4.0.jar.*
|
||||
%if %{with_gcj}
|
||||
%attr(-,root,root) %{_libdir}/gcj/%{name}
|
||||
%endif
|
||||
|
||||
%files manual
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc doc/*
|
||||
%doc www/*
|
||||
|
||||
%files demo
|
||||
%defattr(0644,root,root,0755)
|
||||
%{_datadir}/%{name}/*
|
||||
|
||||
%changelog
|
||||
* Wed Dec 03 2008 Matt Wringe <mwringe@redhat.com> - 0:4.1-0.2
|
||||
- Update to remove packaged jars in source tar
|
||||
- Build with bootstrap jar so that required java source
|
||||
files get generated
|
||||
|
||||
* Wed Oct 22 2008 Jerry James <loganjerry@gmail.com> - 0:4.1-0.1
|
||||
- Update to 4.1
|
||||
- Also ship the jjrun script
|
||||
- Own the appropriate gcj directory
|
||||
- Minor spec file changes to comply with latest Fedora guidelines
|
||||
- Include the top-level index.html file in the manual
|
||||
|
||||
* Wed Jul 9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:4.0-4.5
|
||||
- drop repotag
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user