]> git.pld-linux.org Git - packages/alex.git/blob - alex.spec
- depend
[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 Patch1:         %{name}-debian.patch
12 URL:            http://www.haskell.org/alex/
13 BuildRequires:  ghc >= 5.04
14 BuildRequires:  automake
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Alex is a tool for generating lexical analysers in Haskell, given a
19 description of the tokens to be recognised in the form of regular
20 expressions. It is similar to the tool lex or flex for C/C++.
21
22 %description -l pl
23 Alex to narzêdzie do generowania analizatorów sk³adniowych w Haskellu
24 na podstawie opisu tokenów do rozpoznawania w postaci wyra¿eñ
25 regularnych. Jest podobne do narzêdzi lex lub flex dla C/C++.
26
27 %prep
28 %setup -q
29 %patch0 -p1
30 %patch1 -p1
31
32 %build
33 chmod u+w configure*
34 %{__aclocal}
35 %{__autoconf}
36 %configure
37 %{__make} depend
38 %{__make}
39 %{__make} ps -C alex/doc
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{%{_bindir},%{_examplesdir}/%{name}-%{version}}
44
45 %{__make} install \
46         DESTDIR=$RPM_BUILD_ROOT
47
48 cp -a alex/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc alex/{ANNOUNCE,LICENSE,README} alex/doc/alex.{ps,dvi}
56 %attr(755,root,root) %{_bindir}/*
57 %dir %{_libdir}/%{name}-%{version}
58 %{_libdir}/%{name}-%{version}/A*
59 %attr(755,root,root) %{_libdir}/%{name}-%{version}/alex.bin
60 %{_examplesdir}/%{name}-%{version}
This page took 0.069144 seconds and 4 git commands to generate.