Matt Wringe d2ea969
# Copyright (c) 2000-2005, JPackage Project
Matt Wringe d2ea969
# All rights reserved.
Matt Wringe d2ea969
#
Matt Wringe d2ea969
# Redistribution and use in source and binary forms, with or without
Matt Wringe d2ea969
# modification, are permitted provided that the following conditions
Matt Wringe d2ea969
# are met:
Matt Wringe d2ea969
#
Matt Wringe d2ea969
# 1. Redistributions of source code must retain the above copyright
Matt Wringe d2ea969
#    notice, this list of conditions and the following disclaimer.
Matt Wringe d2ea969
# 2. Redistributions in binary form must reproduce the above copyright
Matt Wringe d2ea969
#    notice, this list of conditions and the following disclaimer in the
Matt Wringe d2ea969
#    documentation and/or other materials provided with the
Matt Wringe d2ea969
#    distribution.
Matt Wringe d2ea969
# 3. Neither the name of the JPackage Project nor the names of its
Matt Wringe d2ea969
#    contributors may be used to endorse or promote products derived
Matt Wringe d2ea969
#    from this software without specific prior written permission.
Matt Wringe d2ea969
#
Matt Wringe d2ea969
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Matt Wringe d2ea969
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Matt Wringe d2ea969
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Matt Wringe d2ea969
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
Matt Wringe d2ea969
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
Matt Wringe d2ea969
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
Matt Wringe d2ea969
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Matt Wringe d2ea969
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Matt Wringe d2ea969
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Matt Wringe d2ea969
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Matt Wringe d2ea969
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Matt Wringe d2ea969
#
Matt Wringe d2ea969
cvsdist 548c7a8
Name:           javacc
3630e16
Version:        7.0.4
f0c30f4
Release:        7%{?dist}
cvsdist 548c7a8
Epoch:          0
cvsdist 548c7a8
Summary:        A parser/scanner generator for java
cvsdist 548c7a8
License:        BSD
a750cd6
URL:            http://javacc.org
3630e16
Source0:        https://github.com/javacc/javacc/archive/%{version}.tar.gz
63e52b1
63e52b1
BuildRequires:  javapackages-local
9b5917a
BuildRequires:  ant
9b5917a
BuildRequires:  javacc
Severin Gehwolf 8e70402
# Explicit javapackages-tools requires since scripts use
Severin Gehwolf 8e70402
# /usr/share/java-utils/java-functions
Severin Gehwolf 8e70402
Requires:       javapackages-tools
Matt Wringe a2d2f8f
Matt Wringe d2ea969
BuildArch:      noarch
cvsdist 548c7a8
63e52b1
%description
cvsdist 548c7a8
Java Compiler Compiler (JavaCC) is the most popular parser generator for use
cvsdist 548c7a8
with Java applications. A parser generator is a tool that reads a grammar
cvsdist 548c7a8
specification and converts it to a Java program that can recognize matches to
cvsdist 548c7a8
the grammar. In addition to the parser generator itself, JavaCC provides other
cvsdist 548c7a8
standard capabilities related to parser generation such as tree building (via
cvsdist 548c7a8
a tool called JJTree included with JavaCC), actions, debugging, etc.
cvsdist 548c7a8
cvsdist 548c7a8
%package manual
cvsdist 548c7a8
Summary:        Manual for %{name}
cvsdist 548c7a8
cvsdist 548c7a8
%description manual
cvsdist 548c7a8
Manual for %{name}.
cvsdist 548c7a8
cvsdist 548c7a8
%package demo
cvsdist 548c7a8
Summary:        Examples for %{name}
Matt Wringe a2d2f8f
Requires:       %{name} = %{version}-%{release}
cvsdist 548c7a8
cvsdist 548c7a8
%description demo
cvsdist 548c7a8
Examples for %{name}.
cvsdist 548c7a8
9b5917a
%package javadoc
9b5917a
Summary:        Javadoc for %{name}
9b5917a
9b5917a
%description javadoc
9b5917a
This package contains the API documentation for %{name}.
9b5917a
cvsdist 548c7a8
%prep
3630e16
%setup -q -n %{name}-%{version}
9b5917a
Matt Wringe a2d2f8f
# Remove binary information in the source tar
9b5917a
find . -name "*.jar" -delete
9b5917a
find . -name "*.class" -delete
Matt Wringe a2d2f8f
389db6a
find ./examples -type f -exec sed -i 's/\r//' {} \;
389db6a
3630e16
%build
63e52b1
build-jar-repository -p bootstrap javacc
9b5917a
63e52b1
# There is maven pom which doesn't really work for building. The tests don't
63e52b1
# work either (even when using bundled jars).
1f1404a
ant jar javadoc -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8
cvsdist 548c7a8
63e52b1
# The pom dependencies are also wrong
63e52b1
%mvn_artifact --skip-dependencies pom.xml target/javacc-%{version}.jar
63e52b1
cvsdist 548c7a8
%install
3630e16
%mvn_file : %{name}
3630e16
63e52b1
%mvn_install -J target/javadoc
cvsdist 548c7a8
a750cd6
%jpackage_script javacc '' '' javacc javacc true
a750cd6
ln -s %{_bindir}/javacc %{buildroot}%{_bindir}/javacc.sh
a750cd6
%jpackage_script jjdoc '' '' javacc jjdoc true
a750cd6
%jpackage_script jjtree '' '' javacc jjtree true
9c77762
b9bc643
%files -f .mfiles
63e52b1
%license LICENSE
63e52b1
%doc README
a750cd6
%{_bindir}/javacc
63e52b1
%{_bindir}/javacc.sh
63e52b1
%{_bindir}/jjdoc
63e52b1
%{_bindir}/jjtree
Matt Wringe d2ea969
cvsdist 548c7a8
%files manual
Matt Wringe a2d2f8f
%doc www/*
cvsdist 548c7a8
cvsdist 548c7a8
%files demo
b69dc95
%doc examples
cvsdist 548c7a8
63e52b1
%files javadoc -f .mfiles-javadoc
63e52b1
%license LICENSE
9b5917a
cvsdist 548c7a8
%changelog
f0c30f4
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0:7.0.4-7
f0c30f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f0c30f4
1f1404a
* Mon Jul 20 2020 Mat Booth <mat.booth@redhat.com> - 0:7.0.4-6
1f1404a
- Force generation of 1.8 level bytecode to avoid breaking dependent packages
1f1404a
  that require Java 8
1f1404a
823c293
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 0:7.0.4-5
823c293
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
823c293
02b88a6
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0:7.0.4-4
02b88a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
02b88a6
1bd8f13
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0:7.0.4-3
1bd8f13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
1bd8f13
087b095
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0:7.0.4-2
087b095
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
087b095
3630e16
* Fri Oct 26 2018 Marian Koncek <mkoncek@redhat.com> - 0:7.0.4-1
3630e16
- Update to upstream version 7.0.4
3630e16
- Resolves: rhbz#1593262
3630e16
Severin Gehwolf 4c670bd
* Tue Jul 31 2018 Severin Gehwolf <sgehwolf@redhat.com> - 0:7.0.2-6
Severin Gehwolf 8e70402
- Add requirement on javapackages-tools for scripts using
Severin Gehwolf 8e70402
  java-functions.
Severin Gehwolf 8e70402
1585a7a
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:7.0.2-5
1585a7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1585a7a
d54a273
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:7.0.2-4
d54a273
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d54a273
31ca2d5
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:7.0.2-3
31ca2d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
31ca2d5
cbc033a
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:7.0.2-2
cbc033a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cbc033a
8bd3b47
* Mon Jan 16 2017 Michael Simacek <msimacek@redhat.com> - 0:7.0.2-1
8bd3b47
- Update to upstream version 7.0.2
8bd3b47
c9f2227
* Mon Jan 02 2017 Michael Simacek <msimacek@redhat.com> - 0:7.0.1-1
c9f2227
- Update to upstream version 7.0.1
c9f2227
a750cd6
* Tue Sep 06 2016 Michael Simacek <msimacek@redhat.com> - 0:6.1.3-1
a750cd6
- Update to upstream version 6.1.3
a750cd6
- Use new upstream location
a750cd6
- Generate scripts with jpackage_script
a750cd6
63e52b1
* Tue Aug 23 2016 Michael Simacek <msimacek@redhat.com> - 0:6.1.2-1
63e52b1
- Update to upstream version 6.1.2
63e52b1
0807c6e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0:5.0-14
0807c6e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0807c6e
34764a1
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:5.0-13
34764a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
34764a1
1586e34
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:5.0-12
1586e34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1586e34
b9bc643
* Thu May 29 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:5.0-11
b9bc643
- Use .mfiles generated during build
b9bc643
Stanislav Ochotnicky ee22197
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:5.0-10
Stanislav Ochotnicky ee22197
- Use Requires: java-headless rebuild (#1067528)
Stanislav Ochotnicky ee22197
9b5917a
* Tue Jul 30 2013 Michal Srb <msrb@redhat.com> - 0:5.0-9
9b5917a
- Generate javadoc
9b5917a
- Drop group tag
9b5917a
ba5b393
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:5.0-8
ba5b393
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ba5b393
4f6e9c6
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:5.0-7
4f6e9c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4f6e9c6
Jaromir Capik 258b837
* Thu Jun 28 2012 Jaromir Capik <jcapik@redhat.com> 0:5.0-6
Jaromir Capik 4018b48
- Fixing #835786 - javacc: Invalid upstream URL
Jaromir Capik 4018b48
- Minor spec file changes according to the latest guidelines
Jaromir Capik 4018b48
de2b691
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:5.0-5
de2b691
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
de2b691
b513a41
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:5.0-4
b513a41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b513a41
389db6a
* Tue Jul 13 2010 Alexander Kurtakov <akurtako@redhat.com> 0:5.0-3
389db6a
- Fix examples line endings.
389db6a
b69dc95
* Fri Jun 4 2010 Alexander Kurtakov <akurtako@redhat.com> 0:5.0-2
b69dc95
- Apply changes requested in review bug (rhbz#225940).
b69dc95
9c77762
* Thu Feb 11 2010 Alexander Kurtakov <akurtako@redhat.com> 0:5.0-1
9c77762
- Update to upstream 5.0 release.
9c77762
e8e000a
* Tue Nov 24 2009 Alexander Kurtakov <akurtako@redhat.com> 0:4.1-0.6
e8e000a
- Use standard permissions and fix unowned directories.
e8e000a
9d03524
* Tue Nov 24 2009 Alexander Kurtakov <akurtako@redhat.com> 0:4.1-0.5
9d03524
- Fix rpmlint warnings.
9d03524
- Drop gcj support.
9d03524
f983547
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.1-0.4
f983547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f983547
b3c23b6
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.1-0.3
b3c23b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b3c23b6
Matt Wringe a2d2f8f
* Wed Dec 03 2008 Matt Wringe <mwringe@redhat.com> - 0:4.1-0.2
Matt Wringe a2d2f8f
- Update to remove packaged jars in source tar
Matt Wringe a2d2f8f
- Build with bootstrap jar so that required java source 
Matt Wringe a2d2f8f
  files get generated
Matt Wringe a2d2f8f
Matt Wringe a2d2f8f
* Wed Oct 22 2008 Jerry James <loganjerry@gmail.com> - 0:4.1-0.1
Matt Wringe a2d2f8f
- Update to 4.1
Matt Wringe a2d2f8f
- Also ship the jjrun script
Matt Wringe a2d2f8f
- Own the appropriate gcj directory
Matt Wringe a2d2f8f
- Minor spec file changes to comply with latest Fedora guidelines
Matt Wringe a2d2f8f
- Include the top-level index.html file in the manual
Matt Wringe a2d2f8f
57a488a
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:4.0-4.5
57a488a
- drop repotag
57a488a
Matt Wringe 1bc6adc
* Fri Feb 22 2008 Matt Wringe <mwringe at redhat.com> - 0:4.0-4jpp.4
Matt Wringe 1bc6adc
- Rename javacc script file to javacc.sh as this confuses the makefile
Matt Wringe 1bc6adc
d47ac44
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:4.0-4jpp.3
d47ac44
- Autorebuild for GCC 4.3
d47ac44
Matt Wringe 3f437df
* Thu Aug 10 2006 Matt Wringe <mwringe at redhat.com> - 0:4.0-3jpp.3
Matt Wringe 3f437df
- Rebuilt with new naming convention
Matt Wringe 3f437df
3e4b543
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> - 0:4.0-3jpp_2fc
3e4b543
- Rebuilt
3e4b543
Matt Wringe d2ea969
* Tue Jul 18 2006 Matthew Wringe <mwringe at redhat.com> - 0:4.0-3jpp_1fc
Matt Wringe d2ea969
- Merged with upstream version
Matt Wringe 14214d5
- Changed directory locations to rpm macros
Matt Wringe d2ea969
- Added conditional native compiling
Andrew Overholt e7931d9
Matt Wringe d2ea969
* Thu Apr 20 2006 Fernando Nasser <fnasser@redhat.com> - 0:4.0-2jpp
Matt Wringe d2ea969
- First JPP 1.7 build
gbenson a7d0434
Matt Wringe d2ea969
* Fri Mar 31 2006 Sebastiano Vigna <vigna at acm.org> - 0:4.0-1jpp
Matt Wringe d2ea969
- Updated to 4.0
Andrew Overholt 3c7417c
3630e16
* Mon Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:3.2-2jpp
Matt Wringe d2ea969
- Rebuild with ant-1.6.2
cvsdist 6b89241
Matt Wringe d2ea969
* Fri Jan 30 2004 Sebastiano Vigna <vigna at acm.org> 0:3.2-1jpp
cvsdist 548c7a8
- First JPackage version