1 Summary: byacc - public domain Berkeley LALR Yacc parser generator
2 %define AppProgram byacc
3 %define AltProgram btyacc
4 %define AppVersion 20211224
5 %define UseProgram yacc
6 # $Id: byacc.spec,v 1.60 2021/12/25 00:13:22 tom Exp $
10 License: Public Domain, MIT
11 Group: Applications/Development
12 URL: ftp://invisible-island.net/%{AppProgram}
13 Source0: %{AppProgram}-%{AppVersion}.tgz
14 Packager: Thomas E. Dickey <dickey@invisible-island.net>
17 This package provides a parser generator utility that reads a grammar
18 specification from a file and generates an LR(1) parser for it. The
19 parsers consist of a set of LALR(1) parsing tables and a driver
20 routine written in the C programming language. It has a public domain
21 license which includes the generated C.
24 Summary: Curses library with POSIX thread support.
26 %description -n btyacc
27 This package provides a parser generator utility that reads a grammar
28 specification from a file and generates an LR(1) parser for it. The
29 parsers consist of a set of LALR(1) parsing tables and a driver
30 routine written in the C programming language. It has a public domain
31 license which includes the generated C.
33 This package has the backtracking extension.
37 %define debug_package %{nil}
39 %setup -q -n %{AppProgram}-%{AppVersion}
46 --enable-stdnoreturn \\\
47 --target %{_target_platform} \\\
48 --prefix=%{_prefix} \\\
49 --srcdir=%{my_srcdir} \\\
50 --bindir=%{_bindir} \\\
51 --libdir=%{_libdir} \\\
54 %global _configure ../configure
58 CONFIGURE_TOP=%{my_srcdir} \
59 %configure %{CFG_OPTS} \
61 --program-transform-name='s,\^,b,'
67 CONFIGURE_TOP=%{my_srcdir} \
68 %configure %{CFG_OPTS} \
71 --with-max-table-size=123456 \
72 --program-transform-name='s,\^,bt,'
77 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
80 make install DESTDIR=$RPM_BUILD_ROOT
81 ( cd $RPM_BUILD_ROOT%{_bindir} && ln -vs %{AppProgram} %{UseProgram} )
85 make install DESTDIR=$RPM_BUILD_ROOT
89 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
93 %{_prefix}/bin/%{AppProgram}
94 %{_prefix}/bin/%{UseProgram}
95 %{_mandir}/man1/%{AppProgram}.*
99 %{_prefix}/bin/%{AltProgram}
100 %{_mandir}/man1/%{AltProgram}.*
103 # each patch should add its ChangeLog entries here
105 * Fri May 25 2018 Thomas Dickey
108 * Sun Jul 09 2017 Thomas Dickey
109 - use predefined "configure"
111 * Sun Jun 06 2010 Thomas Dickey