1 Summary: Yacc-like LALR(1) Parser Generator for Haskell
2 Summary(pl): Generator parserów LALR(1) w stylu yacc-a dla Haskella
6 License: BSD w/o adv. clause
7 Group: Development/Languages
8 URL: http://haskell.org/happy/
9 Source0: http://haskell.org/happy/dist/%{version}/%{name}-%{version}-src.tar.gz
10 # Source0-md5: 02ceb122b904fa4a4290e6ea1072d59e
11 Patch0: %{name}-arch.patch
12 BuildRequires: autoconf
13 BuildRequires: automake
15 BuildRequires: gmp-devel
16 BuildRequires: jadetex
17 BuildRequires: elfutils-libelf
18 BuildRequires: ncurses-devel
19 BuildRequires: openjade
20 BuildRequires: readline-devel
21 BuildRequires: sgml-common
22 BuildRequires: tetex-dvips
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Happy is a LALR(1) parser generator for Haskell - similar to yacc for
27 C. It generates a Haskell parser from an annotated BNF specification
28 of a grammar. Happy allows to have several Happy generated parsers in
32 Happy jest generatorem parserów LALR(1) dla Haskella - podobnym do
33 yacc-a dla C. Generuje parser w Haskellu ze specyfikacji gramatyki w
34 notacji BNF. Happy pozwala mieæ wiele wygenerowanych parserów w jednym
42 cp -f /usr/share/automake/config.sub .
47 %{__make} -C glafp-utils sgmlverb mkdirhier all
48 %{__make} -C happy/src depend
49 %{__make} -C happy all
50 %{__make} -C happy/doc html
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_examplesdir}/happy}
57 bindir=$RPM_BUILD_ROOT%{_bindir} \
58 libdir=$RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}
60 cp -a happy/examples/* $RPM_BUILD_ROOT%{_examplesdir}/happy/
62 sed -e 's,@LIBDIR@,%{_libdir}/%{name}-%{version},g' \
63 -e 's,@DOCDIR@,%{_docdir}/%{name}-%{version},g' \
64 -e 's,@VERSION@,%{version},g' \
65 happy/doc/happy.1.in > $RPM_BUILD_ROOT%{_mandir}/man1/happy.1
66 ln -sf happy-%{version} $RPM_BUILD_ROOT%{_bindir}/happy
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
73 %doc happy/README happy/doc/happy
74 %attr(755,root,root) %{_bindir}/*
75 %dir %{_libdir}/%{name}-%{version}
76 %attr(755,root,root) %{_libdir}/%{name}-%{version}/happy.bin
77 %{_libdir}/%{name}-%{version}/Happy*
78 %{_libdir}/%{name}-%{version}/GLR*