Blame SPECS/bison.spec

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