5 Star 0 Fork 3

OpenCloudOS Stream/byacc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
byacc.spec 2.18 KB
一键复制 编辑 原始数据 按行查看 历史
%define byaccdate %(echo %version | cut -d. -f3)
Summary: Berkeley Yacc, a parser generator
Name: byacc
Version: 2.0.20230521
Release: 5%{?dist}
License: Public Domain
URL: http://invisible-island.net/byacc/byacc.html
Source: https://invisible-island.net/archives/byacc/byacc-%{byaccdate}.tgz
BuildRequires: make gcc
%description
This package provides a parser generator utility which consists of a set of LALR(1) parsing tables
and a driver routine written in the C programming language.It reads a grammar specification from a
file and generates an LR(1) parser for it, which you will want to install this package.
%prep
%autosetup -n byacc-%{byaccdate}
# Revert default stack size to 10000 # https://bugzilla.redhat.com/show_bug.cgi?id=743343
find . -type f -name \*.c -print0 | xargs -0 sed -i 's/YYSTACKSIZE 500/YYSTACKSIZE 10000/g'
%build
%configure --disable-dependency-tracking
%make_build
%install
%make_install
ln -s yacc %{buildroot}%{_bindir}/byacc
ln -s yacc.1 %{buildroot}%{_mandir}/man1/byacc.1
%check
make check
%files
%license LICENSE
%doc ACKNOWLEDGEMENTS CHANGES NEW_FEATURES NOTES NO_WARRANTY README
%{_bindir}/yacc
%{_bindir}/byacc
%{_mandir}/man1/yacc.1*
%{_mandir}/man1/byacc.1*
%changelog
* Thu Sep 26 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2.0.20230521-5
- Rebuilt for clarifying the packages requirement in BaseOS and AppStream
* Mon Aug 19 2024 rockerzhu <rockerzhu@tencent.com> - 2.0.20230521-4
- Get version in source url from variable version for auto upgrade.
* Fri Aug 16 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2.0.20230521-3
- Rebuilt for loongarch release
* Fri Sep 08 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2.0.20230521-2
- Rebuilt for OpenCloudOS Stream 23.09
* Thu Aug 17 2023 Shuo Wang <abushwang@tencent.com> - 2.0.20230521-1
- update to 2.0.20230521
* Fri Apr 28 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2.0.20210808-3
- Rebuilt for OpenCloudOS Stream 23.05
* Fri Mar 31 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2.0.20210808-2
- Rebuilt for OpenCloudOS Stream 23
* Mon Nov 21 2022 Wang Guodong <gordonwwang@tencent.com> - 2.0.20210808-1
- package init.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/opencloudos-stream/byacc.git
git@gitee.com:opencloudos-stream/byacc.git
opencloudos-stream
byacc
byacc
master

搜索帮助