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