SHA256
1
0
forked from pool/byacc
byacc/byacc.spec
Martin Pluskal aef4c32bca Accepting request 1090570 from home:dirkmueller:Factory
- update to 20230521:
  * error.c, defs.h, reader.c:
    allow @1 or $@ with a warning if no %locations was given
  * reader.c: clear pointer in end_ainfo() after freeing it.
  * reader.c: report errors in %define as "unexpected value"
    add/use macros begin_ainfo() and end_ainfo() to reduce clutter
  * defs.h, error.c: add function unexpected_value()
  * add %nterm as an alias for %type, since bison made that confusion.
  * reader.c:
    ensure that filler_buf and prefix_buf are initialized for the special case
    where they are empty (report by Martin Jansa, cf: 20230219)
  * output.c:
    make test-differences smaller when compiling with YY_NO_LEAKS by replacing
    a blank line with the generated #define rather than adding 3 lines.
  * reader.c:
    correct a use-after-free in more_curly, which could occur if a %lex-param
    or %parse-param was multi-line (Redhat #2183006).
  * main.c: rename no_space() to on_error()
  * error.c: rename no_space() to no_error(), handling any errno
  * defs.h: rename no_space() to on_error()

OBS-URL: https://build.opensuse.org/request/show/1090570
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/byacc?expand=0&rev=52
2023-06-03 12:13:21 +00:00

61 lines
1.9 KiB
RPMSpec

#
# spec file for package byacc
#
# Copyright (c) 2023 SUSE LLC
# 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 https://bugs.opensuse.org/
#
Name: byacc
Version: 20230521
Release: 0
Summary: LALR(1) parser generator
License: SUSE-Public-Domain
Group: Development/Languages/C and C++
URL: https://invisible-island.net/byacc/byacc.html
Source0: https://invisible-mirror.net/archives/byacc/byacc-%{version}.tgz
Source1: https://invisible-mirror.net/archives/byacc/byacc-%{version}.tgz.asc
Source2: %{name}.keyring
%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 \
--enable-btyacc \
--program-prefix=b
%make_build
%install
%make_install
%check
%make_build check
%files
%doc ACKNOWLEDGEMENTS CHANGES NEW_FEATURES NO_WARRANTY NOTES README*
%{_bindir}/byacc
%{_mandir}/man1/byacc.1%{?ext_man}
%changelog