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