|
|
26477a |
# Copyright (c) 2000-2005, JPackage Project
|
|
|
26477a |
# All rights reserved.
|
|
|
26477a |
#
|
|
|
26477a |
# Redistribution and use in source and binary forms, with or without
|
|
|
26477a |
# modification, are permitted provided that the following conditions
|
|
|
26477a |
# are met:
|
|
|
26477a |
#
|
|
|
26477a |
# 1. Redistributions of source code must retain the above copyright
|
|
|
26477a |
# notice, this list of conditions and the following disclaimer.
|
|
|
26477a |
# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
26477a |
# notice, this list of conditions and the following disclaimer in the
|
|
|
26477a |
# documentation and/or other materials provided with the
|
|
|
26477a |
# distribution.
|
|
|
26477a |
# 3. Neither the name of the JPackage Project nor the names of its
|
|
|
26477a |
# contributors may be used to endorse or promote products derived
|
|
|
26477a |
# from this software without specific prior written permission.
|
|
|
26477a |
#
|
|
|
26477a |
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
26477a |
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
26477a |
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
26477a |
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
26477a |
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
26477a |
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
26477a |
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
26477a |
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
26477a |
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
26477a |
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
26477a |
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
26477a |
#
|
|
|
26477a |
|
|
|
26477a |
Name: javacc
|
|
|
26477a |
Version: 5.0
|
|
|
26477a |
Release: 9%{?dist}
|
|
|
26477a |
Epoch: 0
|
|
|
26477a |
Summary: A parser/scanner generator for java
|
|
|
26477a |
License: BSD
|
|
|
26477a |
Source0: http://java.net/projects/%{name}/downloads/download/%{name}-%{version}src.tar.gz
|
|
|
26477a |
Source1: javacc.sh
|
|
|
26477a |
Source2: jjdoc
|
|
|
26477a |
Source3: jjtree
|
|
|
26477a |
Patch0: 0001-Add-javadoc-target-to-build.xml.patch
|
|
|
26477a |
URL: http://javacc.java.net/
|
|
|
26477a |
Requires: java
|
|
|
26477a |
BuildRequires: ant
|
|
|
26477a |
BuildRequires: ant-junit
|
|
|
26477a |
BuildRequires: junit
|
|
|
26477a |
BuildRequires: javacc
|
|
|
26477a |
BuildRequires: java-devel
|
|
|
26477a |
|
|
|
26477a |
BuildArch: noarch
|
|
|
26477a |
|
|
|
26477a |
%description
|
|
|
26477a |
Java Compiler Compiler (JavaCC) is the most popular parser generator for use
|
|
|
26477a |
with Java applications. A parser generator is a tool that reads a grammar
|
|
|
26477a |
specification and converts it to a Java program that can recognize matches to
|
|
|
26477a |
the grammar. In addition to the parser generator itself, JavaCC provides other
|
|
|
26477a |
standard capabilities related to parser generation such as tree building (via
|
|
|
26477a |
a tool called JJTree included with JavaCC), actions, debugging, etc.
|
|
|
26477a |
|
|
|
26477a |
%package manual
|
|
|
26477a |
Summary: Manual for %{name}
|
|
|
26477a |
|
|
|
26477a |
%description manual
|
|
|
26477a |
Manual for %{name}.
|
|
|
26477a |
|
|
|
26477a |
%package demo
|
|
|
26477a |
Summary: Examples for %{name}
|
|
|
26477a |
Requires: %{name} = %{version}-%{release}
|
|
|
26477a |
|
|
|
26477a |
%description demo
|
|
|
26477a |
Examples for %{name}.
|
|
|
26477a |
|
|
|
26477a |
%package javadoc
|
|
|
26477a |
Summary: Javadoc for %{name}
|
|
|
26477a |
|
|
|
26477a |
%description javadoc
|
|
|
26477a |
This package contains the API documentation for %{name}.
|
|
|
26477a |
|
|
|
26477a |
%prep
|
|
|
26477a |
%setup -q -n %{name}
|
|
|
26477a |
|
|
|
26477a |
%patch0 -p1
|
|
|
26477a |
|
|
|
26477a |
# Remove binary information in the source tar
|
|
|
26477a |
find . -name "*.jar" -delete
|
|
|
26477a |
find . -name "*.class" -delete
|
|
|
26477a |
|
|
|
26477a |
find ./examples -type f -exec sed -i 's/\r//' {} \;
|
|
|
26477a |
|
|
|
26477a |
ln -s `build-classpath javacc` bootstrap/javacc.jar
|
|
|
26477a |
|
|
|
26477a |
sed -i 's/source="1.4"/source="1.5"/g' src/org/javacc/{parser,jjdoc,jjtree}/build.xml
|
|
|
26477a |
|
|
|
26477a |
%build
|
|
|
26477a |
# Use the bootstrap javacc.jar to generate some required
|
|
|
26477a |
# source java files. After these source files are generated we
|
|
|
26477a |
# remove the bootstrap jar and build the binary from source.
|
|
|
26477a |
ant -f src/org/javacc/parser/build.xml parser-files
|
|
|
26477a |
ant -f src/org/javacc/jjtree/build.xml tree-files
|
|
|
26477a |
find . -name "*.jar" -delete
|
|
|
26477a |
ant jar javadoc
|
|
|
26477a |
|
|
|
26477a |
%install
|
|
|
26477a |
# jar
|
|
|
26477a |
install -Dpm 644 bin/lib/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
|
26477a |
|
|
|
26477a |
# bin
|
|
|
26477a |
install -Dp -T -m 755 %{SOURCE1} %{buildroot}/%{_bindir}/javacc.sh
|
|
|
26477a |
install -Dp -T -m 755 %{SOURCE2} %{buildroot}/%{_bindir}/jjdoc
|
|
|
26477a |
install -Dp -T -m 755 %{SOURCE3} %{buildroot}/%{_bindir}/jjtree
|
|
|
26477a |
|
|
|
26477a |
# javadoc
|
|
|
26477a |
install -d -p 755 %{buildroot}/%{_javadocdir}/%{name}
|
|
|
26477a |
cp -rp api/* %{buildroot}/%{_javadocdir}/%{name}
|
|
|
26477a |
|
|
|
26477a |
# pom
|
|
|
26477a |
install -Dpm 644 pom.xml %{buildroot}/%{_mavenpomdir}/JPP-%{name}.pom
|
|
|
26477a |
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
|
|
26477a |
|
|
|
26477a |
|
|
|
26477a |
%files
|
|
|
26477a |
%{_javadir}/*.jar
|
|
|
26477a |
%doc LICENSE README
|
|
|
26477a |
%{_bindir}/*
|
|
|
26477a |
%{_mavenpomdir}/*
|
|
|
26477a |
%{_mavendepmapfragdir}/*
|
|
|
26477a |
|
|
|
26477a |
%files manual
|
|
|
26477a |
%doc LICENSE README
|
|
|
26477a |
%doc www/*
|
|
|
26477a |
|
|
|
26477a |
%files demo
|
|
|
26477a |
%doc examples
|
|
|
26477a |
|
|
|
26477a |
%files javadoc
|
|
|
26477a |
%doc LICENSE README
|
|
|
26477a |
%{_javadocdir}/%{name}
|
|
|
26477a |
|
|
|
26477a |
%changelog
|
|
|
26477a |
* Tue Jul 30 2013 Michal Srb <msrb@redhat.com> - 0:5.0-9
|
|
|
26477a |
- Generate javadoc
|
|
|
26477a |
- Drop group tag
|
|
|
26477a |
|
|
|
26477a |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:5.0-8
|
|
|
26477a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
26477a |
|
|
|
26477a |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:5.0-7
|
|
|
26477a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
26477a |
|
|
|
26477a |
* Thu Jun 28 2012 Jaromir Capik <jcapik@redhat.com> 0:5.0-6
|
|
|
26477a |
- Fixing #835786 - javacc: Invalid upstream URL
|
|
|
26477a |
- Minor spec file changes according to the latest guidelines
|
|
|
26477a |
|
|
|
26477a |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:5.0-5
|
|
|
26477a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
26477a |
|
|
|
26477a |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:5.0-4
|
|
|
26477a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
26477a |
|
|
|
26477a |
* Tue Jul 13 2010 Alexander Kurtakov <akurtako@redhat.com> 0:5.0-3
|
|
|
26477a |
- Fix examples line endings.
|
|
|
26477a |
|
|
|
26477a |
* Fri Jun 4 2010 Alexander Kurtakov <akurtako@redhat.com> 0:5.0-2
|
|
|
26477a |
- Apply changes requested in review bug (rhbz#225940).
|
|
|
26477a |
|
|
|
26477a |
* Thu Feb 11 2010 Alexander Kurtakov <akurtako@redhat.com> 0:5.0-1
|
|
|
26477a |
- Update to upstream 5.0 release.
|
|
|
26477a |
|
|
|
26477a |
* Tue Nov 24 2009 Alexander Kurtakov <akurtako@redhat.com> 0:4.1-0.6
|
|
|
26477a |
- Use standard permissions and fix unowned directories.
|
|
|
26477a |
|
|
|
26477a |
* Tue Nov 24 2009 Alexander Kurtakov <akurtako@redhat.com> 0:4.1-0.5
|
|
|
26477a |
- Fix rpmlint warnings.
|
|
|
26477a |
- Drop gcj support.
|
|
|
26477a |
|
|
|
26477a |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.1-0.4
|
|
|
26477a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
26477a |
|
|
|
26477a |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.1-0.3
|
|
|
26477a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
26477a |
|
|
|
26477a |
* Wed Dec 03 2008 Matt Wringe <mwringe@redhat.com> - 0:4.1-0.2
|
|
|
26477a |
- Update to remove packaged jars in source tar
|
|
|
26477a |
- Build with bootstrap jar so that required java source
|
|
|
26477a |
files get generated
|
|
|
26477a |
|
|
|
26477a |
* Wed Oct 22 2008 Jerry James <loganjerry@gmail.com> - 0:4.1-0.1
|
|
|
26477a |
- Update to 4.1
|
|
|
26477a |
- Also ship the jjrun script
|
|
|
26477a |
- Own the appropriate gcj directory
|
|
|
26477a |
- Minor spec file changes to comply with latest Fedora guidelines
|
|
|
26477a |
- Include the top-level index.html file in the manual
|
|
|
26477a |
|
|
|
26477a |
* Wed Jul 9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:4.0-4.5
|
|
|
26477a |
- drop repotag
|
|
|
26477a |
|
|
|
26477a |
* Fri Feb 22 2008 Matt Wringe <mwringe at redhat.com> - 0:4.0-4jpp.4
|
|
|
26477a |
- Rename javacc script file to javacc.sh as this confuses the makefile
|
|
|
26477a |
|
|
|
26477a |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:4.0-4jpp.3
|
|
|
26477a |
- Autorebuild for GCC 4.3
|
|
|
26477a |
|
|
|
26477a |
* Thu Aug 10 2006 Matt Wringe <mwringe at redhat.com> - 0:4.0-3jpp.3
|
|
|
26477a |
- Rebuilt with new naming convention
|
|
|
26477a |
|
|
|
26477a |
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> - 0:4.0-3jpp_2fc
|
|
|
26477a |
- Rebuilt
|
|
|
26477a |
|
|
|
26477a |
* Tue Jul 18 2006 Matthew Wringe <mwringe at redhat.com> - 0:4.0-3jpp_1fc
|
|
|
26477a |
- Merged with upstream version
|
|
|
26477a |
- Changed directory locations to rpm macros
|
|
|
26477a |
- Added conditional native compiling
|
|
|
26477a |
|
|
|
26477a |
* Thu Apr 20 2006 Fernando Nasser <fnasser@redhat.com> - 0:4.0-2jpp
|
|
|
26477a |
- First JPP 1.7 build
|
|
|
26477a |
|
|
|
26477a |
* Fri Mar 31 2006 Sebastiano Vigna <vigna at acm.org> - 0:4.0-1jpp
|
|
|
26477a |
- Updated to 4.0
|
|
|
26477a |
|
|
|
26477a |
* Sun Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:3.2-2jpp
|
|
|
26477a |
- Rebuild with ant-1.6.2
|
|
|
26477a |
|
|
|
26477a |
* Fri Jan 30 2004 Sebastiano Vigna <vigna at acm.org> 0:3.2-1jpp
|
|
|
26477a |
- First JPackage version
|