]> git.pld-linux.org Git - packages/alex.git/blob - alex.spec
- pl, missing dir
[packages/alex.git] / alex.spec
1 Summary:        A lexical analyser generator for Haskell
2 Summary(pl):    Generator analizatorów sk³adniowych dla Haskella
3 Name:           alex
4 Version:        2.0
5 Release:        1
6 License:        BSD-like w/o adv. clause
7 Group:          Development/Tools
8 Source0:        http://www.haskell.org/alex/dist/%{name}-%{version}-src.tar.bz2
9 # Source0-md5:  14ff6abf21d81763b15afe151add9091
10 Patch0:         %{name}-DESTDIR.patch
11 URL:            http://www.haskell.org/alex/
12 BuildRequires:  ghc >= 5.04
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 Alex is a tool for generating lexical analysers in Haskell, given a
17 description of the tokens to be recognised in the form of regular
18 expressions. It is similar to the tool lex or flex for C/C++.
19
20 %description -l pl
21 Alex to narzêdzie do generowania analizatorów sk³adniowych w Haskellu
22 na podstawie opisu tokenów do rozpoznawania w postaci wyra¿eñ
23 regularnych. Jest podobne do narzêdzi lex lub flex dla C/C++.
24
25 %prep
26 %setup -q
27 %patch0 -p1
28
29 %build
30 %configure
31 %{__make}
32 %{__make} ps -C alex/doc
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT{%{_bindir},%{_examplesdir}/%{name}-%{version}}
37
38 %{__make} install \
39         DESTDIR=$RPM_BUILD_ROOT
40
41 cp -a alex/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %files
47 %defattr(644,root,root,755)
48 %doc alex/{ANNOUNCE,LICENSE,README} alex/doc/alex.{ps,dvi}
49 %attr(755,root,root) %{_bindir}/*
50 %dir %{_libdir}/%{name}-%{version}
51 %{_libdir}/%{name}-%{version}/A*
52 %attr(755,root,root) %{_libdir}/%{name}-%{version}/alex.bin
53 %{_examplesdir}/%{name}-%{version}
This page took 0.049044 seconds and 4 git commands to generate.