File byacc.spec of Package byacc

#
# spec file for package byacc
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 Guido Berhoerster.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           byacc
Version:        20100216
Release:        1
Summary:        LALR(1) parser generator
Group:          Development/Languages/C and C++
License:        Public Domain
Url:            http://invisible-island.net/byacc/byacc.html
Source:         http://invisible-island.net/datafiles/release/byacc.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Berkeley Yacc is a LALR(1) parser generator. It has been made as compatible as
possible with AT&T Yacc and it accepts any input specification that conforms to
the AT&T Yacc documentation. In contrast to bison, it is written to avoid
dependencies upon a particular compiler.

%prep
%setup

%build
# without --with-warnings several functions will not be marked with gcc's
# noreturn attribute and produce warnings when $RPM_OPT_FLAGS contains -Wall
%configure --with-warnings
make %{?_smp_mflags}

%install
%makeinstall
mv %{buildroot}%{_bindir}/yacc %{buildroot}%{_bindir}/byacc
mv %{buildroot}%{_mandir}/man1/yacc.1 %{buildroot}%{_mandir}/man1/byacc.1

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

%changelog
openSUSE Build Service is sponsored by