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