2013-10-29 09:08:57 +01:00
|
|
|
Summary: byacc - public domain Berkeley LALR Yacc parser generator
|
|
|
|
%define AppProgram byacc
|
2017-05-31 21:27:37 +02:00
|
|
|
%define AppVersion 20170430
|
2013-10-29 09:08:57 +01:00
|
|
|
%define UseProgram yacc
|
2017-05-31 21:27:37 +02:00
|
|
|
# $XTermId: mingw-byacc.spec,v 1.16 2017/04/30 20:55:15 tom Exp $
|
2013-10-29 09:08:57 +01:00
|
|
|
Name: %{AppProgram}
|
|
|
|
Version: %{AppVersion}
|
|
|
|
Release: 1
|
|
|
|
License: Public Domain, MIT
|
|
|
|
Group: Applications/Development
|
|
|
|
URL: ftp://invisible-island.net/%{AppProgram}
|
|
|
|
Source0: %{AppProgram}-%{AppVersion}.tgz
|
|
|
|
Packager: Thomas Dickey <dickey@invisible-island.net>
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides a parser generator utility that reads a grammar
|
|
|
|
specification from a file and generates an LR(1) parser for it. The
|
|
|
|
parsers consist of a set of LALR(1) parsing tables and a driver
|
|
|
|
routine written in the C programming language. It has a public domain
|
|
|
|
license which includes the generated C.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%setup -q -n %{AppProgram}-%{AppVersion}
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
INSTALL_PROGRAM='${INSTALL}' \
|
|
|
|
./configure \
|
|
|
|
--program-prefix=b \
|
|
|
|
--target %{_target_platform} \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--bindir=%{_bindir} \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--mandir=%{_mandir}
|
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
( cd $RPM_BUILD_ROOT%{_bindir} && ln -s %{AppProgram} %{UseProgram} )
|
|
|
|
|
|
|
|
strip $RPM_BUILD_ROOT%{_bindir}/%{AppProgram}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_prefix}/bin/%{AppProgram}
|
|
|
|
%{_prefix}/bin/%{UseProgram}
|
|
|
|
%{_mandir}/man1/%{AppProgram}.*
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
# each patch should add its ChangeLog entries here
|
|
|
|
|
|
|
|
* Wed Sep 25 2013 Thomas Dickey
|
|
|
|
- cloned from byacc.spec
|