File byacc.spec of Package byacc

# norootforbuild

Name:           byacc
Version:        1.9
Release:        1.0
License:        Public Domain
Group:          Development/Languages/C and C++
# The source is taken from FreeBSD's CVS as of Thu Sep 28 2000
Source:         byacc-1.9.tar.bz2
Patch0:         bsdyacc-linux.patch
Patch1:         byacc-1.9-security.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
#Conflicts:      bison
Summary:        A Public Domain Yacc Parser Generator

%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
this package.

%prep
%setup -q -n yacc
%patch0 -p1 -b .lnx
%patch1 -p1 -b .security

%build
%__make CFLAGS="%{optflags}" LINKER=%{__cc} %{?_smp_mflags}

%install
install -Dm 0755 yacc %{buildroot}/usr/bin/byacc
install -Dm 0644 yacc.1 %{buildroot}%{_mandir}/man1/byacc.1

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc ACKNOWLEDGEMENTS NEW_FEATURES NOTES README
%{_bindir}/byacc
%{_mandir}/man1/byacc.1*

openSUSE Build Service is sponsored by