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