summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-29 18:07:31 -0700
committerAnas Nashif <anas.nashif@intel.com>2012-10-29 18:07:31 -0700
commit65f1e16ab02f008ee2cf91c821ed1c0203fb2468 (patch)
tree2566f8c28730e81b6b17ef9de5df8d24d677a87d
parente83b5dbc94116983df1ec99d4f02cc8640f63da5 (diff)
downloadbyacc-65f1e16ab02f008ee2cf91c821ed1c0203fb2468.tar.gz
byacc-65f1e16ab02f008ee2cf91c821ed1c0203fb2468.tar.bz2
byacc-65f1e16ab02f008ee2cf91c821ed1c0203fb2468.zip
-rw-r--r--packaging/byacc.spec36
1 files changed, 36 insertions, 0 deletions
diff --git a/packaging/byacc.spec b/packaging/byacc.spec
new file mode 100644
index 0000000..5ecd575
--- /dev/null
+++ b/packaging/byacc.spec
@@ -0,0 +1,36 @@
+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
+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
+
+%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
+%defattr(-,root,root,-)
+%{_bindir}/byacc
+
+%changelog