byacc/byacc.spec
2020-01-22 11:03:44 +08:00

54 lines
1.3 KiB
RPMSpec

Name: byacc
Version: 1.9.20170709
Release: 9
Summary: A parser generator
License: public domain
URL: https://invisible-island.net/byacc/byacc.html
Source0: ftp://invisible-island.net/byacc/byacc-20170709.tgz
BuildRequires: gcc
%description
Berkeley Yacc is an LALR(1) parser generator. Berkeley Yacc has been made
as compatible as possible with AT&T Yacc. Berkeley Yacc can accept any input
specification that conforms to the AT&T Yacc documentation. Specifications
that take advantage of undocumented features of AT&T Yacc will probably be
rejected.
%package_help
%prep
%autosetup -n byacc-20170709 -p1
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
%doc ACKNOWLEDGEMENTS README* NO_WARRANTY
%license AUTHORS
%{_bindir}/*
%files help
%doc CHANGES NOTES
%{_mandir}/man1/*
%changelog
* Wed Jan 22 2020 gulining<gulining1@huawei.com> - 1.9.20170709-9
- Disable test
* Fri Dec 6 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.9.20170709-8
- Add help package
* Wed Dec 4 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.9.20170709-7
- Package init