]> git.pld-linux.org Git - packages/happy.git/blame - happy.spec
- updated md5sum
[packages/happy.git] / happy.spec
CommitLineData
d7e6ed80
JB
1#
2# Conditional build:
3%bcond_with bootstrap # use foreign (non-rpm) ghc
4#
45aa1d35 5Summary: Yacc-like LALR(1) Parser Generator for Haskell
ffa6c29d 6Summary(pl.UTF-8): Generator parserów LALR(1) w stylu yacc-a dla Haskella
45aa1d35 7Name: happy
3bc40af6
JR
8Version: 1.18.5
9Release: 1
8d8818fa 10License: BSD-like w/o adv. clause
11Group: Development/Tools
7cb0ced7 12Source0: http://hackage.haskell.org/packages/archive/happy/%{version}/%{name}-%{version}.tar.gz
4940be38 13# Source0-md5: 9e77b67df7b6a4d7273383cc890f39e8
45aa1d35 14URL: http://haskell.org/happy/
5957d632 15BuildRequires: autoconf
8d8818fa 16BuildRequires: docbook-dtd42-xml
17BuildRequires: docbook-style-xsl
18%{!?with_bootstrap:BuildRequires: ghc >= 6.6}
9730f6df 19BuildRequires: gmp-devel
8d8818fa 20BuildRequires: libxslt-progs
21#For generating documentation in PDF: fop or xmltex
45aa1d35
JR
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
8d8818fa 25Happy is a parser generator system for Haskell, similar to the tool
26‘yacc’ for C. Like ‘yacc’, it takes a file containing an annotated BNF
27specification of a grammar and produces a Haskell module containing a
28parser for the grammar.
29
30Happy is flexible: you can have several Happy parsers in the same
31program, and several entry points to a single grammar. Happy can work
32in conjunction with a lexical analyser supplied by the user (either
33hand-written or generated by another program), or it can parse a
34stream of characters directly (but this isn't practical in most
35cases).
36
37Authors:
38--------
39 Simon Marlow <simonmar@microsoft.com>
40 Andy Gill <andy@galconn.com>
45aa1d35 41
497125eb 42%description -l pl.UTF-8
8d8818fa 43Happy to system generatorów parserów dla Haskella, podobny do
44narzędzia yacc dla C. Na podstawie specyfikacji gramatyki w notacji
45BNF generuje moduł w Haskellu zawierający parser tej gramatyki.
46
47Happy jest elastyczny: można mieć kilka parserów wygenerowanych przez
48Happy w jednym programie tudzież kilka symboli startowych dla tej
49samej gramatyki. Happy może współpracować z analizatorem leksykalnym
50dostarczonym przez programistę (napisanym ręcznie albo wygenerowanym
51przez inny program), może też parsować strumień znaków bezpośrednio
52(co zwykle jest mniej praktyczne).
53
54Autorzy:
55--------
56 Simon Marlow <simonmar@microsoft.com>
57 Andy Gill <andy@galconn.com>
5957d632 58
45aa1d35
JR
59%prep
60%setup -q
45aa1d35
JR
61
62%build
8d8818fa 63%{?with_bootstrap:PATH=$PATH:/usr/local/bin}
64runhaskell Setup.lhs configure --prefix=%{_prefix}
65runhaskell Setup.lhs build
45aa1d35 66
8d8818fa 67cd doc
68%{__autoconf}
69%configure
70%{__make} html
71cd ..
45aa1d35
JR
72
73%install
74rm -rf $RPM_BUILD_ROOT
8d8818fa 75%{?with_bootstrap:PATH=$PATH:/usr/local/bin}
76runhaskell Setup.lhs copy --destdir=$RPM_BUILD_ROOT
45aa1d35 77
8d8818fa 78install -d $RPM_BUILD_ROOT%{_examplesdir}
79cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
45aa1d35 80
5957d632
JB
81%clean
82rm -rf $RPM_BUILD_ROOT
83
45aa1d35
JR
84%files
85%defattr(644,root,root,755)
8d8818fa 86%doc ANNOUNCE CHANGES README TODO doc/happy
45aa1d35 87%attr(755,root,root) %{_bindir}/*
8d8818fa 88%{_datadir}/%{name}-%{version}
89%{_examplesdir}/%{name}-%{version}
This page took 0.129113 seconds and 4 git commands to generate.