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 Patch0: %{name}-sgml-CATALOG.patch
11 Patch1: %{name}-DESTDIR.patch
12 Patch2: %{name}-ac.patch
13 BuildRequires: autoconf
14 BuildRequires: automake
16 BuildRequires: gmp-devel
17 BuildRequires: jadetex
19 BuildRequires: ncurses-devel
20 BuildRequires: openjade
21 BuildRequires: readline-devel
22 BuildRequires: sgml-common
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. Generuja parser w Haskellu ze specyfikacji gramatyki w
34 notacji BNF. Happy pozwala mieæ wiele wygenerowanych parserów w jednym
51 %{__make} -C glafp-utils sgmlverb mkdirhier all
52 %{__make} -C happy all
53 %{__make} -C happy/doc html ps
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_examplesdir}/happy}
60 DESTDIR=$RPM_BUILD_ROOT
62 install happy/examples/* $RPM_BUILD_ROOT%{_examplesdir}/happy/
64 sed -e 's,@LIBDIR@,%{_libdir}/%{name}-%{version},g' \
65 -e 's,@DOCDIR@,%{_docdir}/%{name}-%{version},g' \
66 -e 's,@VERSION@,%{version},g' \
67 happy/doc/happy.1.in > $RPM_BUILD_ROOT%{_mandir}/man1/happy.1
68 ln -sf happy-%{version} $RPM_BUILD_ROOT%{_bindir}/happy
71 rm -rf $RPM_BUILD_ROOT
74 %defattr(644,root,root,755)
75 %doc happy/README happy/doc/happy.ps happy/doc/happy/*
76 %attr(755,root,root) %{_bindir}/*
77 %dir %{_libdir}/%{name}-%{version}
78 %dir %{_libdir}/%{name}-%{version}/happy
79 %attr(755,root,root) %{_libdir}/%{name}-%{version}/happy.bin
80 %{_libdir}/%{name}-%{version}/happy/*