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