packages bison.spec
      Pages: < 1 >  DOWNLOAD      
Name:          bison
Version:       2.5
Release:       1mamba2
Summary:       A GNU general-purpose parser generator
Group:         Applications/Development
Vendor:        openmamba
Distribution:  openmamba
Packager:      Silvan Calarco <silvan.calarco@...>
URL:           http://www.gnu.org/software/bison/bison.html
Source:        ftp://ftp.gnu.org/pub/gnu/bison/bison-%{version}.tar.bz2
License:       GPL
Requires(post):%{__install_info}
BuildRequires: gettext-devel
%if "%{?stage1}" != "1"
BuildRequires: valgrind
%endif
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: m4
## AUTOBUILDREQ-END
Requires:      m4
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
Bison is a general purpose parser generator which converts a grammar description for an LALR 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 (but you do need to be very proficient in C programming to be able to use Bison).
Many programs use Bison as part of their build process.
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 --disable-rpath
%make
%if "%{_host}" == "%{_build}"
%make check
%endif

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall

%find_lang %{name}
%find_lang %{name}-runtime
cat %{name}-runtime.lang >> %{name}.lang

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%post
%install_info %{name}.info

%preun
%uninstall_info %{name}.info

%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/bison
%{_bindir}/yacc
%dir %{_datadir}/bison
%{_datadir}/bison/*
%{_datadir}/aclocal/bison-i18n.m4
%{_libdir}/liby.a
%{_infodir}/bison.info.*
%{_mandir}/man1/bison.*
%{_mandir}/man1/yacc.*
%doc AUTHORS ChangeLog COPYING NEWS README THANKS TODO

%changelog
* Sat May 12 2012 Silvan Calarco <silvan.calarco@...> 2.5-1mamba2
- mamba2 milestone rebuild

* Sun May 15 2011 Automatic Build System <autodist@...> 2.5-1mamba
- automatic update by autodist

* Mon Aug 09 2010 Automatic Build System <autodist@...> 2.4.3-1mamba
- automatic update to 2.4.3 by autodist

* Mon Mar 22 2010 Silvan Calarco <silvan.calarco@...> 2.4.2-1mamba
- update to 2.4.2

* Fri Dec 12 2008 Silvan Calarco <silvan.o at mambasoft.it> 2.4.1-1mamba
- automatic update to 2.4.1 by autodist

* Mon Nov 03 2008 Silvan Calarco <silvan.o at mambasoft.it> 2.4-1mamba
- automatic update to 2.4 by autodist

* Mon May 05 2008 Aleph0 <aleph0 at openmamba.org> 2.3a-1mamba
- specfile updated

* Wed Jun 07 2006 Davide Madrisan <davide.n at qilinux.it> 2.3-1qilnx
- update to version 2.3 by autospec

* Mon May 22 2006 Davide Madrisan <davide.n at qilinux.it> 2.2-1qilnx
- update to version 2.2 by autospec

* Tue Sep 20 2005 Davide Madrisan <davide.n at qilinux.it> 2.1-1qilnx
- update to version 2.1 by autospec

* Wed Aug 31 2005 Davide Madrisan <davide.n at qilinux.it> 1.875-4qilnx
- specfile fixes

* Fri Aug 06 2004 Silvan Calarco <silvan.o at mambasoft.it> 1.875-3qilnx
- added a missing '#' at the beginning of /usr/bin/yacc

* Fri Mar 05 2004 Silvan Calarco <silvan.o at mambasoft.it> 1.875-2qilnx
- attribute patch applied, fix compilation problems with some packages

* Tue Nov 18 2003 Silvan Calarco <silvan.o at mambasoft.it> 1.875-1qilnx
- new version rebuild

* Mon Apr 16 2003 Silvan Calarco <silvan.o at qinet.it> 1.35-3qilnx
- removed Prefix declaration
- removed /usr/share/info/dir

* Mon Apr 14 2003 Alessandro Ramazzina <alessandro.a at qinet.it>
- creation of bison package