5 Star 0 Fork 7

src-openEuler / byaccj

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
byaccj.spec 1.58 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
Name: byaccj
Version: 1.15
Release: 20
Summary: BYACC/J Java extension
License: Public Domain
URL: http://byaccj.sourceforge.net/
Source0: http://sourceforge.net/projects/byaccj/files/byaccj/1.15/byaccj1.15_src.tar.gz
BuildRequires: make gdb-headless gcc
%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!
%package help
Summary: Help document for the byaacj package
%description help
Help document for the byaacj package
%prep
%autosetup -n %{name}%{version} -p1
chmod -c 644 src/* docs/*
sed -i -e 's|-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4||g' src/Makefile
%build
cd src
%make_build yacc CFLAGS="%{optflags}"
%install
install -d -m 755 %{buildroot}%{_bindir}
install -p -m 755 src/yacc %{buildroot}%{_bindir}/%{name}
%files
%{_bindir}/%{name}
%files help
%doc docs/* src/README
%changelog
* Mon May 31 2021 baizhonggui <baizhonggui@huawei.com> - 1.15-20
- Fix building error: cc: No such file or directory
- Add gcc in BuildRequires
* Sun Mar 15 2020 zhangtao<zhangtao221@huawei.com> - 1.15-19
- Package init
1
https://gitee.com/src-openeuler/byaccj.git
git@gitee.com:src-openeuler/byaccj.git
src-openeuler
byaccj
byaccj
openEuler-22.03-LTS

搜索帮助

14c37bed 8189591 565d56ea 8189591