Name: byaccj Version: 1.15 Release: 4mamba Summary: Parser Generator with Java Extension Group: Development/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://byaccj.sourceforge.net/ Source: http://mesh.dl.sourceforge.net/sourceforge/byaccj/byaccj%{version}_src.tar.gz Patch0: byaccj-1.15-Makefile.patch License: Public Domain ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END %description BYACC/J is an extension of the Berkeley v 1.8 YACC-compatible parser generator. Standard YACC takes a YACC source file, and generates one or more C files from it, which if compiled properly, will produce a LALR-grammar parser. This is useful for expression parsing, interactive command parsing, and file reading. Many megabytes of YACC code have been written over the years. This is the standard YACC tool that is in use every day to produce C/C++ parsers. I have added a "-J" flag which will cause BYACC to generate Java source code, instead. So there finally is a YACC for Java now! %debug_package %prep %setup -q -n %{name}%{version} %patch0 %build pushd src make linux CFLAGS="%{optflags}" popd sed -i 's/\r//g' docs/tf.y %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_bindir} install -m 755 src/yacc.linux %{buildroot}%{_bindir}/byaccj mkdir -p %{buildroot}%{_mandir}/man1 install -m 644 docs/yacc.cat %{buildroot}%{_mandir}/man1/ #install -m 644 src/yacc.1 %{buildroot}%{_mandir}/man1/yacc.1-byaccj.gz %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_bindir}/byaccj %{_mandir}/man1/yacc.cat* #%{_mandir}/man1/yacc.1.gz #%doc docs/* src/no_warranty src/new_features %changelog * Tue Oct 24 2023 Silvan Calarco 1.15-4mamba - rebuilt with debug package and specfile fixes * Mon Dec 31 2012 Silvan Calarco 1.15-3mamba - rebuilt in devel * Thu Apr 29 2010 gil 1.15-2mamba - removed yacc.1.gz in conflicts with bison 2.4.1 * Tue Feb 16 2010 gil 1.15-1mamba - update to 1.15 * Mon Mar 02 2009 gil 1.14-1mamba - package created by autospec