diff --git a/.cvsignore b/.cvsignore index e69de29..b660810 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +bison-1.28.tar.gz diff --git a/bison.spec b/bison.spec new file mode 100644 index 0000000..bd9a41c --- /dev/null +++ b/bison.spec @@ -0,0 +1,99 @@ +Summary: A GNU general-purpose parser generator. +Name: bison +Version: 1.28 +Release: 5 +Copyright: GPL +Group: Development/Tools +Source: ftp://prep.ai.mit.edu/pub/gnu/bison/bison-%{version}.tar.gz +Prereq: /sbin/install-info +BuildRoot: %{_tmppath}/%{name}-root + +%description +Bison is a general purpose parser generator which converts a grammar +description for an LALR(1) context-free grammar into a C program to parse +that grammar. Bison can be used to develop a wide range of language +parsers, from ones used in simple desk calculators to complex programming +languages. Bison is upwardly compatible with Yacc, so any correctly +written Yacc grammar should work with Bison without any changes. If +you know Yacc, you shouldn't have any trouble using Bison. You do need +to be very proficient in C programming to be able to use Bison). Bison +is only needed on systems that are used for development. + +If your system will be used for C development, you should install Bison +since it is used to build many C programs. + +%prep +%setup -q + +%build +%configure --datadir=%{_libdir} +make LDFLAGS=-s + +%install +rm -rf $RPM_BUILD_ROOT +%makeinstall datadir=${RPM_BUILD_ROOT}%{_libdir} + +gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/bison.info* + +%post +/sbin/install-info %{_infodir}/bison.info.gz %{_infodir}/dir --entry="* bison: (bison). The GNU parser generator." + +%preun +if [ $1 = 0 ]; then + /sbin/install-info --delete %{_infodir}/bison.info.gz %{_infodir}/dir --entry="* bison: (bison). The GNU parser generator." +fi + +%files +%defattr(-,root,root) +%{_mandir}/*/* +%{_libdir}/* +%{_infodir}/bison.info* +%{_bindir}/* + +%clean +rm -rf $RPM_BUILD_ROOT + +%changelog +* Wed Jul 12 2000 Prospector +- automatic rebuild + +* Sun Jun 18 2000 Than Ngo +- rebuilt in the new build environment +- FHS packaging + +* Sat May 27 2000 Ngo Than +- rebuild for 7.0 +- put man pages and info files to correct place + +* Thu Feb 03 2000 Preston Brown +- rebuild to gzip man page. + +* Fri Jul 16 1999 Jeff Johnson +- update to 1.28. + +* Sun Mar 21 1999 Cristian Gafton +- auto rebuild in the new build environment (release 3) + +* Mon Mar 8 1999 Jeff Johnson +- configure with datadir=/usr/lib (#1386). + +* Mon Feb 22 1999 Jeff Johnson +- updated text in spec file. +- update to 1.27 + +* Thu Dec 17 1998 Cristian Gafton +- build for glibc 2.1 + +* Fri Apr 24 1998 Prospector System +- translations modified for de, fr, tr + +* Wed Apr 08 1998 Cristian Gafton +- built for Manhattan +- added build root + +* Wed Oct 15 1997 Donnie Barnes +- various spec file cleanups + +* Mon Jun 02 1997 Erik Troan +- built against glibc + diff --git a/sources b/sources index e69de29..e67d838 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4afb3989f2270043c47c3daa1fa7ffab bison-1.28.tar.gz