]> git.pld-linux.org Git - packages/happy.git/blame - happy.spec
- converted to UTF-8
[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
497125eb 6Summary(pl.UTF-8): Generator parserów LALR(1) w stylu yacc-a dla Haskella
45aa1d35 7Name: happy
b4886acf 8Version: 1.15
d7e6ed80 9Release: 2
45aa1d35
JR
10License: BSD w/o adv. clause
11Group: Development/Languages
45aa1d35
JR
12URL: http://haskell.org/happy/
13Source0: http://haskell.org/happy/dist/%{version}/%{name}-%{version}-src.tar.gz
b4886acf 14# Source0-md5: 02ceb122b904fa4a4290e6ea1072d59e
15Patch0: %{name}-arch.patch
5957d632 16BuildRequires: autoconf
9730f6df 17BuildRequires: automake
d7e6ed80 18%{!?with_bootstrap:BuildRequires: ghc}
9730f6df
JB
19BuildRequires: gmp-devel
20BuildRequires: jadetex
bda95546 21BuildRequires: elfutils-libelf
45aa1d35 22BuildRequires: ncurses-devel
9730f6df 23BuildRequires: openjade
45aa1d35 24BuildRequires: readline-devel
45aa1d35 25BuildRequires: sgml-common
26aee277 26BuildRequires: tetex-dvips
45aa1d35
JR
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30Happy is a LALR(1) parser generator for Haskell - similar to yacc for
31C. It generates a Haskell parser from an annotated BNF specification
32of a grammar. Happy allows to have several Happy generated parsers in
33one program.
34
497125eb
JR
35%description -l pl.UTF-8
36Happy jest generatorem parserów LALR(1) dla Haskella - podobnym do
b4886acf 37yacc-a dla C. Generuje parser w Haskellu ze specyfikacji gramatyki w
497125eb 38notacji BNF. Happy pozwala mieć wiele wygenerowanych parserów w jednym
b4886acf 39programie.
5957d632 40
45aa1d35
JR
41%prep
42%setup -q
c1634d68 43%patch0 -p1
45aa1d35
JR
44
45%build
df36d47b 46cp -f /usr/share/automake/config.sub .
cd988657 47%{__autoconf}
bda95546 48%configure \
a5f3d2b9 49 --with-gcc="%{__cc}"
45aa1d35
JR
50
51%{__make} -C glafp-utils sgmlverb mkdirhier all
bda95546 52%{__make} -C happy/src depend
45aa1d35 53%{__make} -C happy all
b4886acf 54%{__make} -C happy/doc html
45aa1d35
JR
55
56%install
57rm -rf $RPM_BUILD_ROOT
58install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_examplesdir}/happy}
59
60%{__make} install \
b4886acf 61 bindir=$RPM_BUILD_ROOT%{_bindir} \
62 libdir=$RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}
45aa1d35 63
bda95546 64cp -a happy/examples/* $RPM_BUILD_ROOT%{_examplesdir}/happy/
45aa1d35
JR
65
66sed -e 's,@LIBDIR@,%{_libdir}/%{name}-%{version},g' \
67 -e 's,@DOCDIR@,%{_docdir}/%{name}-%{version},g' \
68 -e 's,@VERSION@,%{version},g' \
69 happy/doc/happy.1.in > $RPM_BUILD_ROOT%{_mandir}/man1/happy.1
1553e8a6 70ln -sf happy-%{version} $RPM_BUILD_ROOT%{_bindir}/happy
45aa1d35 71
5957d632
JB
72%clean
73rm -rf $RPM_BUILD_ROOT
74
45aa1d35
JR
75%files
76%defattr(644,root,root,755)
b4886acf 77%doc happy/README happy/doc/happy
45aa1d35
JR
78%attr(755,root,root) %{_bindir}/*
79%dir %{_libdir}/%{name}-%{version}
45aa1d35 80%attr(755,root,root) %{_libdir}/%{name}-%{version}/happy.bin
bda95546 81%{_libdir}/%{name}-%{version}/Happy*
b4886acf 82%{_libdir}/%{name}-%{version}/GLR*
45aa1d35 83%{_mandir}/man1/*
ffe9a9d8 84%{_examplesdir}/%{name}
This page took 0.047835 seconds and 4 git commands to generate.