2006-12-19 00:15:24 +01:00
|
|
|
#
|
2011-06-16 17:21:35 +02:00
|
|
|
# spec file for package bison
|
2006-12-19 00:15:24 +01:00
|
|
|
#
|
2020-02-05 17:49:03 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2006-12-19 00:15:24 +01:00
|
|
|
#
|
2008-11-02 15:34:45 +01:00
|
|
|
# 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.
|
|
|
|
|
2018-10-02 10:10:27 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:15:24 +01:00
|
|
|
#
|
|
|
|
|
2012-08-02 13:30:16 +02:00
|
|
|
|
2006-12-19 00:15:24 +01:00
|
|
|
Name: bison
|
2020-05-18 07:26:41 +02:00
|
|
|
Version: 3.6.2
|
2011-12-22 17:03:52 +01:00
|
|
|
Release: 0
|
2006-12-19 00:15:24 +01:00
|
|
|
Summary: The GNU Parser Generator
|
2018-06-18 09:12:29 +02:00
|
|
|
License: GPL-3.0-or-later
|
2011-12-22 17:03:52 +01:00
|
|
|
Group: Development/Languages/C and C++
|
2019-12-16 16:57:26 +01:00
|
|
|
URL: https://www.gnu.org/software/bison/bison.html
|
2018-10-02 10:11:25 +02:00
|
|
|
Source0: ftp://ftp.gnu.org/gnu/bison/bison-%{version}.tar.xz
|
|
|
|
Source1: ftp://ftp.gnu.org/gnu/bison/bison-%{version}.tar.xz.sig
|
2015-02-23 11:14:20 +01:00
|
|
|
Source2: %{name}.keyring
|
|
|
|
Source3: baselibs.conf
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: gcc-c++
|
2011-12-22 17:03:52 +01:00
|
|
|
Requires: m4
|
2018-06-18 09:12:29 +02:00
|
|
|
Requires(post): %{install_info_prereq}
|
2015-09-01 20:07:59 +02:00
|
|
|
Requires(preun): %{install_info_prereq}
|
2006-12-19 00:15:24 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Bison is a parser generator similar to yacc(1).
|
|
|
|
|
2015-01-23 11:36:49 +01:00
|
|
|
%lang_package
|
|
|
|
|
2006-12-19 00:15:24 +01:00
|
|
|
%prep
|
2019-12-16 16:57:26 +01:00
|
|
|
%autosetup
|
2006-12-19 00:15:24 +01:00
|
|
|
|
|
|
|
%build
|
2019-08-05 14:11:53 +02:00
|
|
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
2018-10-02 12:27:54 +02:00
|
|
|
%configure \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--disable-rpath \
|
|
|
|
--enable-nls \
|
|
|
|
--docdir=%{_docdir}/%{name} \
|
|
|
|
gl_cv_func_printf_directive_n=yes \
|
|
|
|
gl_cv_func_printf_infinite_long_double=yes
|
|
|
|
%if 0%{?do_profiling}
|
2020-02-05 17:49:03 +01:00
|
|
|
%make_build CFLAGS="%{optflags} %{cflags_profile_generate}"
|
2019-02-18 08:49:52 +01:00
|
|
|
# non-parallel profiling for reproducible results https://bugzilla.opensuse.org/show_bug.cgi?id=1040589
|
2020-02-05 17:49:03 +01:00
|
|
|
%make_build --jobs=1 CFLAGS="%{optflags}" check
|
|
|
|
%make_build clean
|
|
|
|
%make_build CFLAGS="%{optflags} %{cflags_profile_feedback}"
|
2018-10-02 12:27:54 +02:00
|
|
|
%else
|
2020-02-05 17:49:03 +01:00
|
|
|
%make_build CFLAGS="%{optflags}"
|
2018-10-02 12:27:54 +02:00
|
|
|
%endif
|
2011-06-16 17:21:24 +02:00
|
|
|
|
|
|
|
%check
|
2019-05-28 13:09:24 +02:00
|
|
|
# Tests dont work reliably in parallel
|
2020-04-13 09:56:05 +02:00
|
|
|
%make_build --jobs=1 check
|
2006-12-19 00:15:24 +01:00
|
|
|
|
|
|
|
%install
|
2018-06-18 09:12:29 +02:00
|
|
|
%make_install
|
2011-06-16 17:21:24 +02:00
|
|
|
%find_lang %{name} --all-name
|
2006-12-19 00:15:24 +01:00
|
|
|
|
2019-05-28 12:43:48 +02:00
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
2015-01-23 11:36:49 +01:00
|
|
|
%files
|
|
|
|
%{_docdir}/%{name}
|
2011-12-22 17:03:52 +01:00
|
|
|
%dir %{_datadir}/aclocal
|
2006-12-19 00:15:24 +01:00
|
|
|
%{_bindir}/bison
|
|
|
|
%{_bindir}/yacc
|
|
|
|
%{_libdir}/liby.a
|
2011-12-22 17:03:52 +01:00
|
|
|
%{_datadir}/bison
|
2012-01-09 11:01:56 +01:00
|
|
|
%dir %{_datadir}/aclocal
|
2011-12-22 17:03:52 +01:00
|
|
|
%{_datadir}/aclocal/bison-i18n.m4
|
2015-01-23 11:36:49 +01:00
|
|
|
%{_infodir}/bison.info*.gz
|
2018-06-18 09:12:29 +02:00
|
|
|
%{_mandir}/man1/bison.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/yacc.1%{?ext_man}
|
2015-01-23 11:36:49 +01:00
|
|
|
|
2008-04-10 13:08:53 +02:00
|
|
|
%changelog
|