Blame SPECS/byaccj.spec

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