|
|
e3e518 |
# Copyright (c) 2000-2005, JPackage Project
|
|
|
e3e518 |
# All rights reserved.
|
|
|
e3e518 |
#
|
|
|
e3e518 |
# Redistribution and use in source and binary forms, with or without
|
|
|
e3e518 |
# modification, are permitted provided that the following conditions
|
|
|
e3e518 |
# are met:
|
|
|
e3e518 |
#
|
|
|
e3e518 |
# 1. Redistributions of source code must retain the above copyright
|
|
|
e3e518 |
# notice, this list of conditions and the following disclaimer.
|
|
|
e3e518 |
# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
e3e518 |
# notice, this list of conditions and the following disclaimer in the
|
|
|
e3e518 |
# documentation and/or other materials provided with the
|
|
|
e3e518 |
# distribution.
|
|
|
e3e518 |
# 3. Neither the name of the JPackage Project nor the names of its
|
|
|
e3e518 |
# contributors may be used to endorse or promote products derived
|
|
|
e3e518 |
# from this software without specific prior written permission.
|
|
|
e3e518 |
#
|
|
|
e3e518 |
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
e3e518 |
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
e3e518 |
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
e3e518 |
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
e3e518 |
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
e3e518 |
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
e3e518 |
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
e3e518 |
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
e3e518 |
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
e3e518 |
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
e3e518 |
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
e3e518 |
#
|
|
|
e3e518 |
|
|
|
e3e518 |
Summary: Parser Generator with Java Extension
|
|
|
e3e518 |
Name: byaccj
|
|
|
e3e518 |
Version: 1.15
|
|
|
3fa3df |
Release: 8%{?dist}
|
|
|
e3e518 |
Epoch: 0
|
|
|
e3e518 |
License: Public Domain
|
|
|
e3e518 |
URL: http://byaccj.sourceforge.net/
|
|
|
e3e518 |
Group: Development/Libraries
|
|
|
e3e518 |
Source0: http://sourceforge.net/projects/byaccj/files/byaccj/1.15/byaccj1.15_src.tar.gz
|
|
|
e3e518 |
Requires: man-pages
|
|
|
e3e518 |
|
|
|
e3e518 |
%description
|
|
|
e3e518 |
BYACC/J is an extension of the Berkeley v 1.8 YACC-compatible
|
|
|
e3e518 |
parser generator. Standard YACC takes a YACC source file, and
|
|
|
e3e518 |
generates one or more C files from it, which if compiled properly,
|
|
|
e3e518 |
will produce a LALR-grammar parser. This is useful for expression
|
|
|
e3e518 |
parsing, interactive command parsing, and file reading. Many
|
|
|
e3e518 |
megabytes of YACC code have been written over the years.
|
|
|
e3e518 |
This is the standard YACC tool that is in use every day to produce
|
|
|
e3e518 |
C/C++ parsers. I have added a "-J" flag which will cause BYACC to
|
|
|
e3e518 |
generate Java source code, instead. So there finally is a YACC for
|
|
|
e3e518 |
Java now!
|
|
|
e3e518 |
|
|
|
e3e518 |
%prep
|
|
|
e3e518 |
%setup -q -n %{name}%{version}
|
|
|
e3e518 |
|
|
|
e3e518 |
sed -i -e 's|-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4||g' src/Makefile
|
|
|
e3e518 |
|
|
|
e3e518 |
%build
|
|
|
e3e518 |
pushd src
|
|
|
e3e518 |
make linux CFLAGS="%{optflags}" LDFLAGS=""
|
|
|
e3e518 |
popd
|
|
|
e3e518 |
|
|
|
e3e518 |
sed -i 's/\r//g' docs/tf.y
|
|
|
e3e518 |
|
|
|
e3e518 |
%install
|
|
|
e3e518 |
# manual
|
|
|
e3e518 |
install -d -m 755 %{buildroot}%{_mandir}/man1
|
|
|
e3e518 |
mv docs/yacc.cat %{buildroot}%{_mandir}/man1
|
|
|
e3e518 |
|
|
|
e3e518 |
# jars
|
|
|
e3e518 |
mkdir -p %{buildroot}%{_bindir}
|
|
|
e3e518 |
cp -p src/yacc.linux \
|
|
|
e3e518 |
%{buildroot}%{_bindir}/%{name}
|
|
|
e3e518 |
|
|
|
e3e518 |
mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}
|
|
|
e3e518 |
cp -p docs/* %{buildroot}%{_docdir}/%{name}-%{version}
|
|
|
e3e518 |
cp -p src/README %{buildroot}%{_docdir}/%{name}-%{version}
|
|
|
e3e518 |
|
|
|
e3e518 |
%files
|
|
|
e3e518 |
%doc %{_docdir}/%{name}-%{version}
|
|
|
e3e518 |
%{_mandir}/man1/yacc.cat*
|
|
|
e3e518 |
%attr(755, root, root) %{_bindir}/%{name}
|
|
|
e3e518 |
|
|
|
e3e518 |
%changelog
|
|
|
3fa3df |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 01.15-8
|
|
|
3fa3df |
- Mass rebuild 2014-01-24
|
|
|
3fa3df |
|
|
|
3fa3df |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 01.15-7
|
|
|
3fa3df |
- Mass rebuild 2013-12-27
|
|
|
3fa3df |
|
|
|
e3e518 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.15-6
|
|
|
e3e518 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
e3e518 |
|
|
|
e3e518 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.15-5
|
|
|
e3e518 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
e3e518 |
|
|
|
e3e518 |
* Thu Jan 26 2012 Alexander Kurtakov <akurtako@redhat.com> - 0:1.15-4
|
|
|
e3e518 |
- Fix build.
|
|
|
e3e518 |
|
|
|
e3e518 |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.15-3
|
|
|
e3e518 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
e3e518 |
|
|
|
e3e518 |
* Tue Sep 06 2011 Luis Bazan <bazanluis20@gmail.com> 0:1.15-2
|
|
|
e3e518 |
- New Release
|
|
|
e3e518 |
|
|
|
e3e518 |
* Thu Aug 25 2011 Luis Bazan <bazanluis20@gmail.com> 0:1.15-1
|
|
|
e3e518 |
- Update to 1.15
|
|
|
e3e518 |
|
|
|
e3e518 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.14-6
|
|
|
e3e518 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
e3e518 |
|
|
|
e3e518 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.14-5
|
|
|
e3e518 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
e3e518 |
|
|
|
e3e518 |
* Sun May 10 2009 Ville Skyttä <ville.skytta at iki.fi> - 0:1.14-4
|
|
|
e3e518 |
- Build with %%{optflags} (#500022).
|
|
|
e3e518 |
|
|
|
e3e518 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.14-3
|
|
|
e3e518 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
e3e518 |
|
|
|
e3e518 |
* Wed Jul 9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.14-2
|
|
|
e3e518 |
- drop repotag
|
|
|
e3e518 |
|
|
|
e3e518 |
* Sat Feb 9 2008 Devrim GUNDUZ <devrim@commandprompt.com> - 0:1.14-1jpp.1
|
|
|
e3e518 |
- Update to 1.14
|
|
|
e3e518 |
- Cosmetic cleanup in spec
|
|
|
e3e518 |
|
|
|
e3e518 |
* Tue Mar 06 2007 Vivek Lakshmanan <vivekl@redhat.com> - 0:1.11-2jpp.2.fc7
|
|
|
e3e518 |
- First build in fedora after passing review
|
|
|
e3e518 |
|
|
|
e3e518 |
* Thu Feb 15 2007 Tania Bento <tbento@redhat.com> - 0:1.11-2jpp.1
|
|
|
e3e518 |
- Fixed the %%Release tag.
|
|
|
e3e518 |
- Changed the %%License tag.
|
|
|
e3e518 |
- Fixed the %%BuildRoot tag.
|
|
|
e3e518 |
- Removed the %%Vendor tag.
|
|
|
e3e518 |
- Removed the %%Distribution tag.
|
|
|
e3e518 |
- Removed the %%BuildRequires: gcc and make tags as these d not need to be
|
|
|
e3e518 |
listed.
|
|
|
e3e518 |
- Removed "%%define section free".
|
|
|
e3e518 |
- Added "sed -i 's/\r//g docs/tf.y' to fix a warning generated by
|
|
|
e3e518 |
rpmlint.
|
|
|
e3e518 |
- Fixed the %%Source0 tag.
|
|
|
e3e518 |
- Changed the %%Group tag.
|
|
|
e3e518 |
- Installed man pages in proper directory.
|
|
|
e3e518 |
|
|
|
e3e518 |
* Wed Jan 04 2006 Fernando Nasser <fnasser@redhat.com> - 0:1.11-2jpp
|
|
|
e3e518 |
- First JPP 1.7 build
|
|
|
e3e518 |
|
|
|
e3e518 |
* Wed Nov 16 2005 Ralph Apel <r.apel at r-apel.de> - 0:1.11-1jpp
|
|
|
e3e518 |
- First JPackage release
|
|
|
e3e518 |
|