Blame SPECS/bison.spec

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