source: spec/trunk/SPECS/bison.spec@ 1711

Last change on this file since 1711 was 1652, checked in by Silvan Scherrer, 6 years ago

spec: bison: Release version 3.4.1-1.

File size: 4.1 KB
Line 
1Summary: A GNU general-purpose parser generator
2Name: bison
3Version: 3.4.1
4Release: 1%{?dist}
5License: GPLv3+
6Group: Development/Tools
7
8%scm_source github https://github.com/bitwiseworks/%{name}-os2 %{version}-os2
9Vendor: bww bitwise works GmbH
10
11# testsuite dependency
12BuildRequires: gcc
13BuildRequires: autoconf
14BuildRequires: flex
15
16URL: http://www.gnu.org/software/bison/
17BuildRequires: m4 >= 1.4
18#BuildRequires: java-1.6.0-openjdk-devel
19Requires: m4 >= 1.4
20
21
22%description
23Bison is a general purpose parser generator that converts a grammar
24description for an LALR(1) context-free grammar into a C program to
25parse that grammar. Bison can be used to develop a wide range of
26language parsers, from ones used in simple desk calculators to complex
27programming languages. Bison is upwardly compatible with Yacc, so any
28correctly written Yacc grammar should work with Bison without any
29changes. If you know Yacc, you shouldn't have any trouble using
30Bison. You do need to be very proficient in C programming to be able
31to use Bison. Bison is only needed on systems that are used for
32development.
33
34If your system will be used for C development, you should install
35Bison.
36
37%package devel
38Summary: -ly library for development using Bison-generated parsers
39Group: Development/Libraries
40Provides: bison-static = %{version}-%{release}
41
42%description devel
43The bison-devel package contains the -ly library sometimes used by
44programs using Bison-generated parsers. If you are developing programs
45using Bison, you might want to link with this library. This library
46is not required by all Bison-generated parsers, but may be employed by
47simple 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
60Summary: Runtime support files used by Bison-generated parsers
61
62%description runtime
63The bison-runtime package contains files used at runtime by parsers
64that Bison generates. Packages whose binaries contain parsers
65generated by Bison should depend on bison-runtime to ensure that
66these files are available. See the Internationalization in the
67Bison manual section for more information.
68
69%debug_package
70
71%prep
72%scm_setup
73
74%build
75autoreconf -fvi
76export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
77export LIBS="-lcx"
78%configure --docdir=%{_docdir}/%{name}-%{version}
79make %{?_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
88rm -rf $RPM_BUILD_ROOT
89%makeinstall
90
91# Remove unpackaged files.
92rm -f $RPM_BUILD_ROOT/%{_bindir}/yacc
93rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
94rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/yacc*
95rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples/*
96find $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
101gzip -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.
Note: See TracBrowser for help on using the repository browser.