forked from pool/byacc
c863430402
- package/debian/source/format: change to native format to work around regression in Debian packaging. - main.c: correct parameter for umask - for very old mkstemp's - and use type mode_t to quiet compiler warning - configure.in: add configure check for mode_t - reader.c: better fix for get_line, by ensuring there is enough space to null-terminate its result (prompted by discussion with Craig Rodrigues). - main.c: make change to umask before calling mkstemp, as suggested in Coverity #56902 - reader.c: adjust logic in copy_action to avoid potential null-pointer dereference (Coverity #56901) - reader.c: adjust logic to avoid potential null-pointer dereference in compile_args (Coverity #63407) - reader.c: eliminate strcpy into fixed-size buffer (Coverity #63408) - yacc.1: document changes made with respect to %parse-param - output.c: add parameters from %parse-param to destructor. The order of the parameters is intentionally inconsistent with yyparse/yyerror, for "compatibility" with bison. - output.c: use puts_param_types/puts_param_names to output lex_param data. - btyaccpar.c: add casts, change types to fix strict compiler warnings - output.c: gcc-warning - output.c: fix limit when merging real/workaround tables - output.c: for btyacc, it is possible to have no conflicts - but in that case, the "ctable" was not generated at all, while the skeleton uses the table. The most straightforward (workaround) OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/byacc?expand=0&rev=13
58 lines
1.8 KiB
RPMSpec
58 lines
1.8 KiB
RPMSpec
#
|
|
# spec file for package byacc
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# Copyright (c) 2010 Guido Berhoerster.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: byacc
|
|
Version: 20141006
|
|
Release: 0
|
|
Summary: LALR(1) parser generator
|
|
License: SUSE-Public-Domain
|
|
Group: Development/Languages/C and C++
|
|
Url: http://invisible-island.net/byacc/byacc.html
|
|
Source: ftp://invisible-island.net/byacc/byacc-%{version}.tgz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Berkeley Yacc is a LALR(1) parser generator. It has been made as compatible as
|
|
possible with AT&T Yacc and it accepts any input specification that conforms to
|
|
the AT&T Yacc documentation. In contrast to bison, it is written to avoid
|
|
dependencies upon a particular compiler.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
# without --with-warnings several functions will not be marked with gcc's
|
|
# noreturn attribute and produce warnings when $RPM_OPT_FLAGS contains -Wall
|
|
%configure --with-warnings --program-prefix=b
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%makeinstall
|
|
|
|
%check
|
|
make check
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc ACKNOWLEDGEMENTS CHANGES NEW_FEATURES NO_WARRANTY NOTES README
|
|
%{_mandir}/man1/byacc.1*
|
|
%{_bindir}/byacc
|
|
|
|
%changelog
|