Blame SPECS/bison.spec

93e840
Summary: A GNU general-purpose parser generator
93e840
Name: bison
93e840
Version: 3.0.4
93e840
Release: 10%{?dist}
93e840
License: GPLv3+
93e840
Group: Development/Tools
93e840
Source: ftp://ftp.gnu.org/pub/gnu/bison/bison-%{version}.tar.xz
93e840
93e840
# https://bugzilla.redhat.com/show_bug.cgi?id=948856
93e840
# Submitted for upstream inclusion on 2013-05-17.
93e840
Patch0: bison-3.0.4-c++-test-failure.patch
93e840
Patch1: bison-3.0.4-gnulib-fseterr.patch
93e840
93e840
# testsuite dependency
93e840
BuildRequires: autoconf
93e840
BuildRequires: flex
93e840
BuildRequires: gcc-c++
93e840
93e840
URL: http://www.gnu.org/software/bison/
93e840
BuildRoot: %{_tmppath}/%{name}-root
93e840
BuildRequires: m4 >= 1.4
93e840
#java-1.7.0-openjdk-devel
93e840
Requires: m4 >= 1.4
93e840
Requires(post): /sbin/install-info
93e840
Requires(preun): /sbin/install-info
93e840
93e840
# bison contains a copy of gnulib.  As a copylib, gnulib was granted
93e840
# an exception that allows bundling it with other software.  For
93e840
# details, see:
93e840
# https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries#Exceptions
93e840
Provides: bundled(gnulib)
93e840
93e840
%description
93e840
Bison is a general purpose parser generator that converts a grammar
93e840
description for an LALR(1) context-free grammar into a C program to
93e840
parse that grammar. Bison can be used to develop a wide range of
93e840
language parsers, from ones used in simple desk calculators to complex
93e840
programming languages. Bison is upwardly compatible with Yacc, so any
93e840
correctly written Yacc grammar should work with Bison without any
93e840
changes. If you know Yacc, you shouldn't have any trouble using
93e840
Bison. You do need to be very proficient in C programming to be able
93e840
to use Bison. Bison is only needed on systems that are used for
93e840
development.
93e840
93e840
If your system will be used for C development, you should install
93e840
Bison.
93e840
93e840
%package devel
93e840
Summary: -ly library for development using Bison-generated parsers
93e840
Group: Development/Libraries
93e840
Provides: bison-static = %{version}-%{release}
93e840
93e840
%description devel
93e840
The bison-devel package contains the -ly library sometimes used by
93e840
programs using Bison-generated parsers.  If you are developing programs
93e840
using Bison, you might want to link with this library.  This library
93e840
is not required by all Bison-generated parsers, but may be employed by
93e840
simple programs to supply minimal support for the generated parsers.
93e840
93e840
# -ly is kept static.  It only contains two symbols: main and yyerror,
93e840
# and both of these are extremely simple (couple lines of C total).
93e840
# It doesn't really pay off to introduce a shared library for that.
93e840
#
93e840
# Therefore -devel subpackage could have been created as -static, but
93e840
# the split was done in Jan 2005, which predates current guidelines.
93e840
# Besides there is logic to that: the library is devel in the sense
93e840
# that the generated parser could be distributed together with other
93e840
# sources, and only bison-devel would be necessary to wrap the build.
93e840
93e840
%package runtime
93e840
Summary: Runtime support files used by Bison-generated parsers
93e840
Group: Development/Libraries
93e840
93e840
%description runtime
93e840
The bison-runtime package contains files used at runtime by parsers
93e840
that Bison generates.  Packages whose binaries contain parsers
93e840
generated by Bison should depend on bison-runtime to ensure that
93e840
these files are available.  See the Internationalization in the
93e840
Bison manual section for more information.
93e840
93e840
%prep
93e840
%setup -q
93e840
%patch0 -p1
93e840
%patch1 -p1
93e840
93e840
%build
93e840
%configure
93e840
make
93e840
93e840
%check
93e840
make check
93e840
#make maintainer-check
93e840
93e840
%install
93e840
rm -rf $RPM_BUILD_ROOT
93e840
%makeinstall
93e840
93e840
# Remove unpackaged files.
93e840
rm -f $RPM_BUILD_ROOT/%{_bindir}/yacc
93e840
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
93e840
rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/yacc*
93e840
rm -f $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples/calc++/*
93e840
rm -f $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples/mfcalc/*
93e840
rm -f $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples/rpcalc/*
93e840
93e840
%find_lang %{name}
93e840
%find_lang %{name}-runtime
93e840
93e840
gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/bison.info*
93e840
93e840
%post
93e840
if [ -f %{_infodir}/bison.info.gz ]; then # for --excludedocs
93e840
   /sbin/install-info %{_infodir}/bison.info.gz %{_infodir}/dir --entry="* bison: (bison).                        The GNU parser generator." || :
93e840
fi
93e840
93e840
%preun
93e840
if [ $1 = 0 ]; then
93e840
    if [ -f %{_infodir}/bison.info.gz ]; then # for --excludedocs
93e840
      /sbin/install-info --delete %{_infodir}/bison.info.gz %{_infodir}/dir --entry="* bison: (bison).                        The GNU parser generator." || :
93e840
    fi
93e840
fi
93e840
93e840
# The distribution contains also source files.  These are used by m4
93e840
# when the target parser file is generated.
93e840
%files -f %{name}.lang
93e840
%defattr(-,root,root)
93e840
%doc AUTHORS ChangeLog NEWS README THANKS TODO COPYING
93e840
%{_mandir}/*/bison*
93e840
%{_datadir}/bison
93e840
%{_infodir}/bison.info*
93e840
%{_bindir}/bison
93e840
%{_datadir}/aclocal/bison*.m4
93e840
93e840
%files -f %{name}-runtime.lang runtime
93e840
%doc COPYING
93e840
93e840
%files devel
93e840
%doc COPYING
93e840
%defattr(-,root,root)
93e840
%{_libdir}/liby.a
93e840
93e840
%clean
93e840
rm -rf $RPM_BUILD_ROOT
93e840
93e840
%changelog
93e840
* Sun Aug 05 2018 Patsy Griffin Franklin <pfrankli@redhat.com> - 3.0.4-10
93e840
- Add changes needed to gnulib fseterr.c since libio.h has been removed.
93e840
 
93e840
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.4-9
93e840
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
93e840
93e840
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.4-8
93e840
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
93e840
93e840
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.4-7
93e840
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
93e840
93e840
* Mon Feb 13 2017 Patsy Franklin <pfrankli@redhat.com> - 3.0.4-6
93e840
- Proposed upstream patch to fix testsuite failures for tests 430-432.
93e840
  BZ #1422261
93e840
93e840
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.4-5
93e840
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
93e840
93e840
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.4-4
93e840
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
93e840
93e840
* Thu Oct 22 2015 Patsy Franklin <pfrankli@redhat.com> - 3.0.4-3
93e840
- Remove unpackaged files.
93e840
93e840
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.4-2
93e840
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
93e840
93e840
* Mon Mar 02 2015 Patsy Franklin <pfrankli@redhat.com> - 2.0.4-1
93e840
- Rebase to 3.0.4.
93e840
93e840
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2-3
93e840
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
93e840
93e840
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2-2
93e840
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
93e840
93e840
* Mon Dec 09 2013 Patsy Franklin <pfrankli@redhat.com> - 3.0.2-1
93e840
- Rebase to 3.0.2.  Add BuildRequires: flex for testsuite.
93e840
93e840
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7-3
93e840
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
93e840
93e840
* Fri May 17 2013 Petr Machata <pmachata@redhat.com> - 2.7-2
93e840
- Drop unused options --raw, -n, -e, --include and -I
93e840
93e840
* Thu Mar 21 2013 Petr Machata <pmachata@redhat.com> - 2.7-1
93e840
- Rebase to 2.7
93e840
93e840
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.4-2
93e840
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
93e840
93e840
* Fri Nov  2 2012 Orion Poplawski <orion@cora.nwra.com> - 2.6.4-1
93e840
- Update to 2.6.4
93e840
93e840
* Tue Jul 31 2012 Petr Machata <pmachata@redhat.com> - 2.6.1-1
93e840
- Rebase to 2.6.1
93e840
  - Drop bison-2.4.2-drop-test-67.patch
93e840
- Resolves: #829028
93e840
93e840
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-5
93e840
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
93e840
93e840
* Tue May 15 2012 Petr Machata <pmachata@redhat.com> - 2.5-4
93e840
- Add a virtual provides for bundled(gnulib).
93e840
- Resolves: #821746
93e840
93e840
* Tue Apr 17 2012 Bill Nottingham <notting@redhat.com> - 2.5-2
93e840
- swap java-openjdk-1.6.0 for 1.7.0 in buildrequirements
93e840
93e840
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-2
93e840
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
93e840
93e840
* Wed Jun 22 2011 Petr Machata <pmachata@redhat.com> - 2.5-1
93e840
- Upstream 2.5
93e840
93e840
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.3-2
93e840
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
93e840
93e840
* Wed Aug 11 2010 Petr Machata <pmachata@redhat.com> - 2.4.3-1
93e840
- Rebase to 2.4.3
93e840
- Resolves: #621854
93e840
93e840
* Thu Jul  1 2010 Petr Machata <pmachata@redhat.com> - 2.4.2-3
93e840
- Devel subpackage now provides boost-static, as per Fedora
93e840
  guidelines.
93e840
- Resolves: #609599
93e840
93e840
* Thu Apr  8 2010 Petr Machata <pmachata@redhat.com> - 2.4.2-2
93e840
- Disable the mysteriously failing test no. 67.  Details in associated
93e840
  bugreport. (bison-2.4.2-drop-test-67.patch)
93e840
- Resolves: #576513
93e840
93e840
* Wed Apr  7 2010 Petr Machata <pmachata@redhat.com> - 2.4.2-1
93e840
- Rebase to 2.4.2
93e840
- Drop reap_subpipe patch, upstream has a fix
93e840
- Resolves: #576513
93e840
93e840
* Fri Mar  5 2010 Petr Machata <pmachata@redhat.com> - 2.4.1-5
93e840
- Fix the license tag
93e840
- Install COPYING
93e840
93e840
* Mon Aug 24 2009 Petr Machata <pmachata@redhat.com> - 2.4.1-4
93e840
- Fix installation with --excludedocs
93e840
- Resolves: #515939
93e840
93e840
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-3
93e840
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
93e840
93e840
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-2
93e840
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
93e840
93e840
* Sun Dec 28 2008 Petr Machata <pmachata@redhat.com> - 2.4.1-1
93e840
- Rebase to 2.4.1
93e840
- Resolves: #478348
93e840
93e840
* Wed Nov 12 2008 Petr Machata <pmachata@redhat.com> - 2.4-2
93e840
- Rebase to 2.4
93e840
- Resolves: #471183
93e840
93e840
* Mon Sep 15 2008 Petr Machata <pmachata@redhat.com> - 2.3-6
93e840
- Merge review:
93e840
  - Drop terminating dot from Summary
93e840
  - Escape macros inadvertently left in changelog
93e840
  - Explain why are there source files in the main package
93e840
93e840
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.3-5
93e840
- Autorebuild for GCC 4.3
93e840
93e840
* Tue Aug 28 2007 Roland McGrath <roland@redhat.com> - 2.3-4
93e840
- Canonicalize License tag.
93e840
93e840
* Sun Jan 21 2007 Roland McGrath <roland@redhat.com> - 2.3-3
93e840
- Canonicalize post/preun use of install-info.
93e840
- Resolves: 223679
93e840
93e840
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.3-2.1
93e840
- rebuild
93e840
93e840
* Wed Jun  7 2006 Roland McGrath <roland@redhat.com> - 2.3-2
93e840
- Add BuildRequires on m4.
93e840
93e840
* Wed Jun  7 2006 Roland McGrath <roland@redhat.com> - 2.3-1
93e840
- New upstream version 2.3
93e840
93e840
* Mon May 22 2006 Roland McGrath <roland@redhat.com> - 2.2-1
93e840
- New upstream version 2.2
93e840
93e840
* Mon May  1 2006 Roland McGrath <roland@redhat.com> - 2.1-3
93e840
- Fix K&R parser definition when it has no arguments (#190376).
93e840
93e840
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.1-1.2.1
93e840
- bump again for double-long bug on ppc(64)
93e840
93e840
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.1-1.2
93e840
- rebuilt for new gcc4.1 snapshot and glibc changes
93e840
93e840
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
93e840
- rebuilt
93e840
93e840
* Fri Oct 14 2005 Roland McGrath <roland@redhat.com> - 2.1-1
93e840
- New upstream version 2.1
93e840
- New subpackage bison-runtime for i18n support files used by parsers.
93e840
93e840
* Thu Apr  7 2005 Roland McGrath <roland@redhat.com> - 2.0-6
93e840
- run test suite in %%check
93e840
93e840
* Mon Mar 14 2005 Roland McGrath <roland@redhat.com> - 2.0-5
93e840
- rebuilt
93e840
93e840
* Thu Jan  6 2005 Roland McGrath <roland@redhat.com> - 2.0-4
93e840
- update upstream URLs, add doc files (#144346)
93e840
93e840
* Thu Jan  6 2005 Roland McGrath <roland@redhat.com> - 2.0-3
93e840
- missing %%defattr for subpackage
93e840
93e840
* Thu Jan  6 2005 Roland McGrath <roland@redhat.com> - 2.0-2
93e840
- split liby.a into bison-devel package
93e840
93e840
* Tue Jan  4 2005 Roland McGrath <roland@redhat.com> - 2.0-1
93e840
- new upstream version
93e840
93e840
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
93e840
- rebuilt
93e840
93e840
* Fri Jun  4 2004 Roland McGrath <roland@redhat.com> 1.875c-1
93e840
- new upstream version (fixes bug #116823)
93e840
93e840
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
93e840
- rebuilt
93e840
93e840
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
93e840
- rebuilt
93e840
93e840
* Thu Oct 30 2003 Roland McGrath <roland@redhat.com> 1.875-6
93e840
- add dependency on m4 (bug #108655)
93e840
93e840
* Wed Sep 24 2003 Roland McGrath <roland@redhat.com> 1.875-5
93e840
- remove problematic __attribute__ use for label (bug #105034)
93e840
93e840
* Fri Aug  1 2003 Havoc Pennington <hp@redhat.com> 1.875-3
93e840
- put #ifndef __cplusplus around attribute(unused) on goto label in yacc.c
93e840
93e840
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
93e840
- rebuilt
93e840
93e840
* Sat Mar 22 2003 Roland McGrath <roland@redhat.com> 1.875-2
93e840
- update specs for new files installed by new version
93e840
93e840
* Wed Mar 19 2003 Roland McGrath <roland@redhat.com> 1.875-1
93e840
- new upstream version 1.875 (bug #83184)
93e840
93e840
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
93e840
- rebuilt
93e840
93e840
* Wed Nov 27 2002 Than Ngo <than@redhat.com> 1.35-5
93e840
- rebuild in new build enviroment
93e840
- remove unneeded file
93e840
93e840
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
93e840
- automated rebuild
93e840
93e840
* Tue Jun 18 2002 Than Ngo <than@redhat.com> 1.35-3
93e840
- don't forcibly strip binaries
93e840
93e840
* Thu May 23 2002 Tim Powers <timp@redhat.com>
93e840
- automated rebuild
93e840
93e840
* Wed Mar 27 2002 Than Ngo <than@redhat.com> 1.35-1
93e840
- 1.35 fix incompatible with C++ compilers (bug #62121)
93e840
93e840
* Sun Mar 17 2002 Florian La Roche <Florian.LaRoche@redhat.de>
93e840
- update to 1.34
93e840
93e840
* Sat Feb 09 2002 Florian La Roche <Florian.LaRoche@redhat.de>
93e840
- update to 1.33
93e840
93e840
* Sat Jan 26 2002 Florian La Roche <Florian.LaRoche@redhat.de>
93e840
- update to 1.32
93e840
93e840
* Tue Jan 15 2002 Florian La Roche <Florian.LaRoche@redhat.de>
93e840
- update to 1.31
93e840
93e840
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
93e840
- automated rebuild
93e840
93e840
* Tue Nov 27 2001 Than Ngo <than@redhat.com> 1.30-4
93e840
- add missing Url
93e840
93e840
* Sun Nov 25 2001 Than Ngo <than@redhat.com> 1.30-3
93e840
- fixed coredumps on some input bug #56607i, thanks to Enrico for locating this bug
93e840
93e840
* Tue Nov 06 2001 Than Ngo <than@redhat.com> 1.30-2
93e840
- FHS packaging
93e840
- use find_lang
93e840
93e840
* Sun Nov 04 2001 Florian La Roche <Florian.LaRoche@redhat.de>
93e840
- update to 1.30
93e840
93e840
* Mon Oct 15 2001 Than Ngo <than@redhat.de> 1.29-1
93e840
- update to 1.29
93e840
- update Url (bug #54597)
93e840
93e840
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
93e840
- Bump release + rebuild.
93e840
93e840
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
93e840
- automatic rebuild
93e840
93e840
* Sun Jun 18 2000 Than Ngo <than@redhat.de>
93e840
- rebuilt in the new build environment
93e840
- FHS packaging
93e840
93e840
* Sat May 27 2000 Ngo Than <than@redhat.de>
93e840
- rebuild for 7.0
93e840
- put man pages and info files to correct place
93e840
93e840
* Thu Feb 03 2000 Preston Brown <pbrown@redhat.com>
93e840
- rebuild to gzip man page.
93e840
93e840
* Fri Jul 16 1999 Jeff Johnson <jbj@redhat.com>
93e840
- update to 1.28.
93e840
93e840
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
93e840
- auto rebuild in the new build environment (release 3)
93e840
93e840
* Mon Mar  8 1999 Jeff Johnson <jbj@redhat.com>
93e840
- configure with datadir=/usr/lib (#1386).
93e840
93e840
* Mon Feb 22 1999 Jeff Johnson <jbj@redhat.com>
93e840
- updated text in spec file.
93e840
- update to 1.27
93e840
93e840
* Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
93e840
- build for glibc 2.1
93e840
93e840
* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
93e840
- translations modified for de, fr, tr
93e840
93e840
* Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
93e840
- built for Manhattan
93e840
- added build root
93e840
93e840
* Wed Oct 15 1997 Donnie Barnes <djb@redhat.com>
93e840
- various spec file cleanups
93e840
93e840
* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
93e840
- built against glibc