代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/byaccj 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Name: byaccj
Version: 1.15
Release: 22
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
Patch0: fix-add-the-compilation-option-pie.patch
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
%if "%{?toolchain}" == "clang"
%make_build yacc CC=clang CFLAGS="%{optflags}"
%else
%make_build yacc CFLAGS="%{optflags}"
%endif
%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 Aug 26 2024 wangqiang <wangqiang1@kylinos.cn> - 1.15-22
- Support build with clang
* Fri Mar 03 2023 wulei <wulei80@h-partners.com> - 1.15-21
- Add the compilation option pie
* 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。