File bison.spec of Package bison

# spec file for package bison
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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

Name:           bison
BuildRequires:  flex
BuildRequires:  gcc-c++
BuildRequires:  xz
Requires(pre):  %install_info_prereq
# bug437293
%ifarch ppc64
Obsoletes:      bison-64bit
Version:        2.7
Release:        0
Summary:        The GNU Parser Generator
License:        GPL-3.0+
Group:          Development/Languages/C and C++
Source2:        baselibs.conf
Requires:       m4
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Bison is a parser generator similar to yacc(1).

%setup -q

%configure --disable-silent-rules --disable-rpath \
  gl_cv_func_printf_directive_n=yes \
make %{?_smp_mflags}

make %{?_smp_mflags} check

%find_lang %{name} --all-name

%files -f %{name}.lang
%dir %{_datadir}/aclocal
%dir %{_datadir}/aclocal
%doc %{_infodir}/*.gz
%doc %{_mandir}/man1/bison.1.gz
%doc %{_mandir}/man1/yacc.1.gz

%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

openSUSE Build Service is sponsored by