%define date 20040328 Summary: A public domain Yacc parser generator Name: byacc Version: 1.9 Release: %mkrel 22 License: Public Domain Group: Development/Other URL: http://dickey.his.com/byacc/byacc.html # old source: ftp://ftp.cs.berkeley.edu/ucb/4bsd/ Source: ftp://invisible-island.net/byacc/byacc.tar.bz2 Patch0: byacc-1.9-fixmanpage.patch Patch1: byacc-1.9-automake.patch Patch2: byacc-1.9-security.patch Patch3: byacc-1.9-includes.patch Patch4: byacc-20040328-no-recreate-unionfile.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description Byacc (Berkeley Yacc) is a public domain LALR parser generator which is used by many programs during their build process. If you are going to do development on your system, you will want to install either this package or bison. Berkeley Yacc is regarded as a better parser, while bison is more widely used under GNU world. %prep %setup -q -n %{name}-%{date} %patch4 -p1 -b .unionfile %build %configure %make %check make check %install rm -rf %{buildroot} %makeinstall_std mv %{buildroot}%{_bindir}/{yacc,byacc} ln -s yacc.1 %{buildroot}%{_mandir}/man1/byacc.1 %post %{_sbindir}/update-alternatives --install %{_bindir}/yacc yacc %{_bindir}/byacc 20 %preun if [ $1 -eq 0 ]; then %{_sbindir}/update-alternatives --remove yacc %{_bindir}/byacc fi %triggerpostun -- byacc <= 1.9-16mdk %{_sbindir}/update-alternatives --install %{_bindir}/yacc yacc %{_bindir}/byacc 20 %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc ACKNOWLEDGEMENTS NEW_FEATURES NOTES %doc NO_WARRANTY README %{_bindir}/byacc %{_mandir}/man1/* %changelog * Fri Jan 11 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.9-22mdv2008.1 + Revision: 149067 - rebuild - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Wed Oct 11 2006 Oden Eriksson <oeriksson@mandriva.com> + 2006-10-10 09:14:56 (63271) - bunzip patches - use the check macro * Sat Oct 07 2006 Oden Eriksson <oeriksson@mandriva.com> + 2006-10-06 07:14:28 (62916) - Import byacc * Sat May 13 2006 Stefan van der Eijk <stefan@eijk.nu> 1.9-20mdk - rebuild for sparc * Sat Dec 31 2005 Mandriva Linux Team <http://www.mandrivaexpert.com/> 1.9-19mdk - Rebuild * Thu Dec 30 2004 Abel Cheung <deaddog@mandrake.org> 1.9-18mdk - P4 (Fix #12823) * Thu Dec 23 2004 Abel Cheung <deaddog@mandrake.org> 1.9-17mdk - Use the 2004-03-28 tarball distributed by Thomas Dickey (of ncurses fame), which contains quite a few fixes and enhancements. Better than the 4BSD version dated back from 1993. - Don't apply all patches (in particular insecure tempfile patch; tmpfile() should be fine, but who knows). Keep them for now. - Make byacc an alternative of bison * Fri Jul 02 2004 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.9-16mdk - better gcc3.4 fix, in addition that errno is not a variable * Wed Jun 30 2004 Per Ãyvind Karlsen <peroyvind@linux-mandrake.com> 1.9-15mdk - fix gcc-3.4 build (P4) - force use of automake1.4 and autoconf2.5