summaryrefslogtreecommitdiff
path: root/packaging/byacc.spec
blob: 8c7a44776b4b4680f819fdeeaf74a497ac1f82e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Name:           byacc
Version:        20100216
Release:        1
Summary:        LALR(1) parser generator
Group:          Development/Languages/C and C++
License:        SUSE-Public-Domain
Url:            http://invisible-island.net/byacc/byacc.html
Source:         http://invisible-island.net/datafiles/release/byacc.tar.gz
Source1001: 	byacc.manifest
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Berkeley Yacc is a LALR(1) parser generator. It has been made as compatible as
possible with AT&T Yacc and it accepts any input specification that conforms to
the AT&T Yacc documentation. In contrast to bison, it is written to avoid
dependencies upon a particular compiler.

%prep
%setup
cp %{SOURCE1001} .

%build
# without --with-warnings several functions will not be marked with gcc's
# noreturn attribute and produce warnings when $RPM_OPT_FLAGS contains -Wall
%configure --with-warnings
make %{?_smp_mflags}

%install
%make_install
mv %{buildroot}%{_bindir}/yacc %{buildroot}%{_bindir}/byacc

%remove_docs

%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_bindir}/byacc

%changelog