forked from pool/bison
198 lines
6.1 KiB
RPMSpec
198 lines
6.1 KiB
RPMSpec
#
|
|
# spec file for package bison (Version 2.3)
|
|
#
|
|
# Copyright (c) 2008 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: bison
|
|
BuildRequires: gcc-c++
|
|
License: GPL v2 or later
|
|
Group: Development/Languages/C and C++
|
|
PreReq: %install_info_prereq
|
|
AutoReqProv: on
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: bison-64bit
|
|
%endif
|
|
%ifarch %ix86 ppc
|
|
Obsoletes: bison-32bit
|
|
%endif
|
|
#
|
|
Requires: m4
|
|
Version: 2.3
|
|
Release: 126
|
|
Summary: The GNU Parser Generator
|
|
Url: http://www.gnu.org/software/bison/bison.html
|
|
Source: bison-%{version}.tar.bz2
|
|
Patch1: bison-%{version}-subpipe.diff
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Bison is a parser generator similar to yacc(1).
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
David J. MacKenzie <djm@gnu.org>
|
|
Noah Friedman <friedman@gnu.org>
|
|
Richard Stallman <rms@gnu.org>
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1
|
|
|
|
%build
|
|
# CXXFLAGS is for c++ examples / test cases
|
|
# these are not installed, but building them with $RPM_OPT_FLAGS could
|
|
# catch possible problems in bison-generated C++ sources
|
|
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
|
|
--prefix=%{_prefix} \
|
|
--mandir=%{_mandir} \
|
|
--infodir=%{_infodir} \
|
|
--libdir=%{_libdir}
|
|
make
|
|
make check
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
%find_lang %{name}
|
|
# FIXME: this should probably go to separate subpackage (see PACKAGING)
|
|
%find_lang %{name}-runtime
|
|
cat %{name}-runtime.lang >>%{name}.lang
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%doc COPYING ChangeLog NEWS README
|
|
%{_bindir}/bison
|
|
%{_bindir}/yacc
|
|
%{_libdir}/liby.a
|
|
/usr/share/bison
|
|
/usr/share/aclocal/bison-i18n.m4
|
|
%doc %{_infodir}/bison.info*.gz
|
|
%doc %{_mandir}/man1/bison.1.gz
|
|
|
|
%post
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%postun
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%changelog
|
|
* Thu Oct 30 2008 olh@suse.de
|
|
- obsolete old -XXbit packages (bnc#437293)
|
|
* Thu Apr 10 2008 ro@suse.de
|
|
- added baselibs.conf file to build xxbit packages
|
|
for multilib support
|
|
* Wed Jan 24 2007 mmarek@suse.cz
|
|
- use more $RPM_OPT_FLAGS
|
|
* Mon Jun 26 2006 mmarek@suse.cz
|
|
- updated to 2.3
|
|
* all generated scanners can be used in non-free programs
|
|
(previously, only LALR(1) scanners in C had the exception)
|
|
* multiple %%union declarations can be used, they will be
|
|
concatenated
|
|
* unused values with a %%destructor are warned about
|
|
* %%destructors are not run for values in the action that called
|
|
YYABORT/YYACCEPT/YYERROR
|
|
* unsatisfied number of %%expect/%%expect-rr conflicts is an error,
|
|
not warning
|
|
* ability to depend on a minimal bison version via
|
|
%%require "VERSION"
|
|
* no global YYSTYPE and YYLTYPE macros and token names in C++
|
|
scanners -- yy::parser::semantic_type, yy::parser::location_type
|
|
and yy::parser::token::<token> should be used instead
|
|
(can be reverted by '%%define "global_tokens_and_yystype" "1"')
|
|
* Wed Jan 25 2006 mls@suse.de
|
|
- converted neededforbuild to BuildRequires
|
|
* Wed Dec 21 2005 mmarek@suse.cz
|
|
- push the 2.1 update into factory
|
|
* Thu Dec 15 2005 mmarek@suse.cz
|
|
- update to 2.1
|
|
* Fri Nov 05 2004 tcrhak@suse.cz
|
|
- fixed wrong variable name (bug #47961, patch output)
|
|
* Mon Jan 26 2004 kukuk@suse.de
|
|
- Readd m4 requirement
|
|
* Sun Jan 11 2004 adrian@suse.de
|
|
- build as user
|
|
* Tue Jan 06 2004 tcrhak@suse.cz
|
|
- update to version 1.875
|
|
- use %%{_libdir}
|
|
- run the testsuite
|
|
- applied Michael Matz's patch
|
|
- GCC does not support attributes on label in C++
|
|
* Fri Sep 12 2003 tcrhak@suse.cz
|
|
- require m4, issue an error message and return a non-zero
|
|
exit code if m4 binary is not found [bug #30653], patch readpipe
|
|
* Thu Apr 24 2003 ro@suse.de
|
|
- fix install_info --delete call and move from preun to postun
|
|
* Fri Mar 07 2003 tcrhak@suse.cz
|
|
- Improved fix for the scaner: treat @ and initial comments
|
|
the right way
|
|
* Fri Feb 07 2003 ro@suse.de
|
|
- added install_info macros
|
|
* Sat Nov 09 2002 aj@suse.de
|
|
- Fix one more problem encountered in building gcc with $
|
|
(all work done by jh@suse.cz).
|
|
* Sat Nov 09 2002 aj@suse.de
|
|
- Fix last patch to handle $ in comments correctly.
|
|
* Sat Nov 09 2002 aj@suse.de
|
|
- Fix handling of $ in scan-gram.
|
|
* Wed Nov 06 2002 tcrhak@suse.cz
|
|
- update to version 1.75
|
|
- removed YYPARSE_RETURN_TYPE: no package uses this and yyparse()
|
|
relies on having its return type compatible with int
|
|
- do not use C++ kludges fix with the new version
|
|
* Tue Sep 17 2002 ro@suse.de
|
|
- removed bogus self-provides
|
|
* Tue Jul 23 2002 tcrhak@suse.cz
|
|
- a stack overflow fix for `C++ kludges': do extend stack
|
|
even if location tracking is not enabled
|
|
* Wed Jun 26 2002 tcrhak@suse.cz
|
|
- update to 1.35
|
|
* Wed Feb 13 2002 schwab@suse.de
|
|
- Don't use NULL when it may not be defined.
|
|
* Fri Feb 08 2002 tcrhak@suse.cz
|
|
- update to version 1.33
|
|
* Fri Jan 25 2002 tcrhak@suse.cz
|
|
- update to version 1.32
|
|
* Tue Dec 11 2001 schwab@suse.de
|
|
- Fix double free.
|
|
* Fri Nov 30 2001 schwab@suse.de
|
|
- Fix use of YYSTACK_USE_ALLOCA in parser skeleton.
|
|
* Fri Nov 30 2001 tcrhak@suse.cz
|
|
- update to 1.30
|
|
* Sun Dec 03 2000 schwab@suse.de
|
|
- Fix line numbers in bison.simple.
|
|
* Thu Aug 24 2000 nadvornik@suse.cz
|
|
- update to 1.28
|
|
* Fri Jan 28 2000 schwab@suse.de
|
|
- Fix missing declaration
|
|
- Specfile cleanup, get rid of Makefile.Linux
|
|
- /usr/{info,man} -> /usr/share/{info,man}
|
|
* Mon Sep 13 1999 bs@suse.de
|
|
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
|
* Fri Jun 13 1997 rj@suse.de
|
|
- yacc emulation removed, because of existing mid-age technology
|
|
* Fri May 16 1997 rj@suse.de
|
|
- version 1.25
|
|
- yacc-functionality emulated thru script
|