]> git.pld-linux.org Git - packages/alex.git/blame - alex.spec
- release 1
[packages/alex.git] / alex.spec
CommitLineData
1aeb4c39
JR
1Summary: A lexical analyser generator for Haskell
2Name: alex
3Version: 2.0
b6eadff7 4Release: 1
1aeb4c39
JR
5License: BSD-like w/o adv. clause
6Group: Development/Tools
7Source0: http://www.haskell.org/alex/dist/%{name}-%{version}-src.tar.bz2
8# Source0-md5: 14ff6abf21d81763b15afe151add9091
b6eadff7 9Patch0: %{name}-DESTDIR.patch
1aeb4c39
JR
10URL: http://www.haskell.org/alex/
11BuildRequires: ghc >= 5.04
12BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14%description
15Alex is a tool for generating lexical analysers in Haskell,
16given a description of the tokens to be recognised in the form
17of regular expressions.
18It is similar to the tool lex or flex for C/C++.
19
20%prep
21%setup -q
b6eadff7 22%patch0 -p1
1aeb4c39
JR
23
24%build
1aeb4c39
JR
25%configure
26%{__make}
b6eadff7 27%{__make} ps -C alex/doc
1aeb4c39
JR
28
29%install
30rm -rf $RPM_BUILD_ROOT
b6eadff7 31install -d $RPM_BUILD_ROOT{%{_bindir},%{_examplesdir}/%{name}-%{version}}
1aeb4c39
JR
32
33%{__make} install \
34 DESTDIR=$RPM_BUILD_ROOT
35
b6eadff7
JR
36cp -a alex/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/
37
1aeb4c39
JR
38%clean
39rm -rf $RPM_BUILD_ROOT
40
41%files
42%defattr(644,root,root,755)
b6eadff7 43%doc alex/{ANNOUNCE,LICENSE,README} alex/doc/alex.{ps,dvi}
1aeb4c39 44%attr(755,root,root) %{_bindir}/*
b6eadff7
JR
45%{_libdir}/%{name}-%{version}/A*
46%attr(755,root,root) %{_libdir}/%{name}-%{version}/alex.bin
47%{_examplesdir}/%{name}-%{version}
This page took 0.037408 seconds and 4 git commands to generate.