| 1 | Summary: A GNU general-purpose parser generator
|
|---|
| 2 | Name: bison
|
|---|
| 3 | Version: 3.4.1
|
|---|
| 4 | Release: 1%{?dist}
|
|---|
| 5 | License: GPLv3+
|
|---|
| 6 | Group: Development/Tools
|
|---|
| 7 |
|
|---|
| 8 | %scm_source github https://github.com/bitwiseworks/%{name}-os2 %{version}-os2
|
|---|
| 9 | Vendor: bww bitwise works GmbH
|
|---|
| 10 |
|
|---|
| 11 | # testsuite dependency
|
|---|
| 12 | BuildRequires: gcc
|
|---|
| 13 | BuildRequires: autoconf
|
|---|
| 14 | BuildRequires: flex
|
|---|
| 15 |
|
|---|
| 16 | URL: http://www.gnu.org/software/bison/
|
|---|
| 17 | BuildRequires: m4 >= 1.4
|
|---|
| 18 | #BuildRequires: java-1.6.0-openjdk-devel
|
|---|
| 19 | Requires: m4 >= 1.4
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 | %description
|
|---|
| 23 | Bison is a general purpose parser generator that converts a grammar
|
|---|
| 24 | description for an LALR(1) context-free grammar into a C program to
|
|---|
| 25 | parse that grammar. Bison can be used to develop a wide range of
|
|---|
| 26 | language parsers, from ones used in simple desk calculators to complex
|
|---|
| 27 | programming languages. Bison is upwardly compatible with Yacc, so any
|
|---|
| 28 | correctly written Yacc grammar should work with Bison without any
|
|---|
| 29 | changes. If you know Yacc, you shouldn't have any trouble using
|
|---|
| 30 | Bison. You do need to be very proficient in C programming to be able
|
|---|
| 31 | to use Bison. Bison is only needed on systems that are used for
|
|---|
| 32 | development.
|
|---|
| 33 |
|
|---|
| 34 | If your system will be used for C development, you should install
|
|---|
| 35 | Bison.
|
|---|
| 36 |
|
|---|
| 37 | %package devel
|
|---|
| 38 | Summary: -ly library for development using Bison-generated parsers
|
|---|
| 39 | Group: Development/Libraries
|
|---|
| 40 | Provides: bison-static = %{version}-%{release}
|
|---|
| 41 |
|
|---|
| 42 | %description devel
|
|---|
| 43 | The bison-devel package contains the -ly library sometimes used by
|
|---|
| 44 | programs using Bison-generated parsers. If you are developing programs
|
|---|
| 45 | using Bison, you might want to link with this library. This library
|
|---|
| 46 | is not required by all Bison-generated parsers, but may be employed by
|
|---|
| 47 | simple programs to supply minimal support for the generated parsers.
|
|---|
| 48 |
|
|---|
| 49 | # -ly is kept static. It only contains two symbols: main and yyerror,
|
|---|
| 50 | # and both of these are extremely simple (couple lines of C total).
|
|---|
| 51 | # It doesn't really pay off to introduce a shared library for that.
|
|---|
| 52 | #
|
|---|
| 53 | # Therefore -devel subpackage could have been created as -static, but
|
|---|
| 54 | # the split was done in Jan 2005, which predates current guidelines.
|
|---|
| 55 | # Besides there is logic to that: the library is devel in the sense
|
|---|
| 56 | # that the generated parser could be distributed together with other
|
|---|
| 57 | # sources, and only bison-devel would be necessary to wrap the build.
|
|---|
| 58 |
|
|---|
| 59 | %package runtime
|
|---|
| 60 | Summary: Runtime support files used by Bison-generated parsers
|
|---|
| 61 |
|
|---|
| 62 | %description runtime
|
|---|
| 63 | The bison-runtime package contains files used at runtime by parsers
|
|---|
| 64 | that Bison generates. Packages whose binaries contain parsers
|
|---|
| 65 | generated by Bison should depend on bison-runtime to ensure that
|
|---|
| 66 | these files are available. See the Internationalization in the
|
|---|
| 67 | Bison manual section for more information.
|
|---|
| 68 |
|
|---|
| 69 | %debug_package
|
|---|
| 70 |
|
|---|
| 71 | %prep
|
|---|
| 72 | %scm_setup
|
|---|
| 73 |
|
|---|
| 74 | %build
|
|---|
| 75 | autoreconf -fvi
|
|---|
| 76 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 77 | export LIBS="-lcx"
|
|---|
| 78 | %configure --docdir=%{_docdir}/%{name}-%{version}
|
|---|
| 79 | make %{?_smp_mflags}
|
|---|
| 80 |
|
|---|
| 81 | %check
|
|---|
| 82 | # checks are still disabled, even all work
|
|---|
| 83 | # but enabling it means a very long buildtime, as tests run slow
|
|---|
| 84 | #make check
|
|---|
| 85 | #make maintainer-check
|
|---|
| 86 |
|
|---|
| 87 | %install
|
|---|
| 88 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 89 | %makeinstall
|
|---|
| 90 |
|
|---|
| 91 | # Remove unpackaged files.
|
|---|
| 92 | rm -f $RPM_BUILD_ROOT/%{_bindir}/yacc
|
|---|
| 93 | rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
|
|---|
| 94 | rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/yacc*
|
|---|
| 95 | rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples/*
|
|---|
| 96 | find $RPM_BUILD_ROOT/%{_datadir}/locale/* -type f -name "bison-gnulib.mo" -exec rm -f {} ';'
|
|---|
| 97 |
|
|---|
| 98 | %find_lang %{name}
|
|---|
| 99 | %find_lang %{name}-runtime
|
|---|
| 100 |
|
|---|
| 101 | gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/bison.info*
|
|---|
| 102 |
|
|---|
| 103 |
|
|---|
| 104 | # The distribution contains also source files. These are used by m4
|
|---|
| 105 | # when the target parser file is generated.
|
|---|
| 106 | %files -f %{name}.lang
|
|---|
| 107 | %doc AUTHORS ChangeLog NEWS README THANKS TODO COPYING
|
|---|
| 108 | %{_mandir}/*/bison*
|
|---|
| 109 | %{_datadir}/bison
|
|---|
| 110 | %{_infodir}/bison.info*
|
|---|
| 111 | %{_bindir}/bison.exe
|
|---|
| 112 | %{_datadir}/aclocal/bison*.m4
|
|---|
| 113 |
|
|---|
| 114 | %files -f %{name}-runtime.lang runtime
|
|---|
| 115 | %doc COPYING
|
|---|
| 116 |
|
|---|
| 117 | %files devel
|
|---|
| 118 | %{_libdir}/liby.a
|
|---|
| 119 |
|
|---|
| 120 |
|
|---|
| 121 | %changelog
|
|---|
| 122 | * Fri Jun 14 2019 Silvan Scherrer <silvan.scherrer@aroa.ch> 3.4.1-1
|
|---|
| 123 | - update to version 3.4.1
|
|---|
| 124 |
|
|---|
| 125 | * Mon Jun 27 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 3.0.4-1
|
|---|
| 126 | - update to version 3.0.4
|
|---|
| 127 | - add debug package
|
|---|
| 128 |
|
|---|
| 129 | * Tue Feb 28 2012 yd
|
|---|
| 130 | - fixed m4 executable location.
|
|---|
| 131 |
|
|---|
| 132 | * Fri Jan 06 2012 yd
|
|---|
| 133 | - initial unixroot build.
|
|---|