Blame SPECS/bison.spec

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