]> git.pld-linux.org Git - packages/alex.git/blame - alex.spec
- 2.3.1
[packages/alex.git] / alex.spec
CommitLineData
bae258c1
JB
1#
2# Conditional build:
3%bcond_with bootstrap # use foreign (non-rpm) ghc
4#
1aeb4c39 5Summary: A lexical analyser generator for Haskell
760206bf 6Summary(pl.UTF-8): Generator analizatorów składniowych dla Haskella
1aeb4c39 7Name: alex
eed98eef
JR
8Version: 2.3.1
9Release: 1
1aeb4c39
JR
10License: BSD-like w/o adv. clause
11Group: Development/Tools
eed98eef
JR
12Source0: http://hackage.haskell.org/packages/archive/alex/%{version}/%{name}-%{version}.tar.gz
13# Source0-md5: a8c26af3370388297cee4b8c767d72d9
c66e49ce 14URL: http://haskell.org/alex/
e4687fb4 15BuildRequires: autoconf
c66e49ce 16BuildRequires: docbook-dtd42-xml
17BuildRequires: docbook-style-xsl
18%{!?with_bootstrap:BuildRequires: ghc >= 6.6}
4deb6cff 19BuildRequires: gmp-devel
c66e49ce 20%{!?with_bootstrap:BuildRequires: happy}
21BuildRequires: libxslt-progs
22#For generating documentation in PDF: fop or xmltex
1aeb4c39
JR
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
675cb3e4
JB
26Alex is a tool for generating lexical analysers in Haskell, given a
27description of the tokens to be recognised in the form of regular
28expressions. It is similar to the tool lex or flex for C/C++.
29
89ffd96d
JR
30%description -l pl.UTF-8
31Alex to narzędzie do generowania analizatorów składniowych w Haskellu
32na podstawie opisu tokenów do rozpoznawania w postaci wyrażeń
33regularnych. Jest podobne do narzędzi lex lub flex dla C/C++.
1aeb4c39
JR
34
35%prep
36%setup -q
37
38%build
c66e49ce 39%{?with_bootstrap:PATH=$PATH:/usr/local/bin}
40runhaskell Setup.lhs configure --prefix=%{_prefix}
41runhaskell Setup.lhs build
42
43cd doc
d25e6c2c 44%{__autoconf}
1aeb4c39 45%configure
c66e49ce 46%{__make} html
47cd ..
1aeb4c39
JR
48
49%install
50rm -rf $RPM_BUILD_ROOT
c66e49ce 51%{?with_bootstrap:PATH=$PATH:/usr/local/bin}
52runhaskell Setup.lhs copy --destdir=$RPM_BUILD_ROOT
1aeb4c39 53
c66e49ce 54install -d $RPM_BUILD_ROOT%{_examplesdir}
55cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
b6eadff7 56
1aeb4c39
JR
57%clean
58rm -rf $RPM_BUILD_ROOT
59
60%files
61%defattr(644,root,root,755)
c66e49ce 62%doc ANNOUNCE README TODO doc/alex
63%attr(755,root,root) %{_bindir}/alex
64%{_datadir}/%{name}-%{version}
b6eadff7 65%{_examplesdir}/%{name}-%{version}
This page took 0.672339 seconds and 4 git commands to generate.