]> git.pld-linux.org Git - packages/alex.git/blob - alex.spec
1bbe9f0bfd2cfa8e4115863ed171e22e1fe6292a
[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.1
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.gz
9 # Source0-md5:  edb62560e29c8de23913c65c52adbf19
10 Patch0:         %{name}-DESTDIR.patch
11 URL:            http://www.haskell.org/alex/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  docbook-dtd31-sgml
15 BuildRequires:  docbook-style-dsssl
16 BuildRequires:  ghc >= 5.04
17 BuildRequires:  gmp-devel
18 BuildRequires:  jadetex
19 BuildRequires:  openjade
20 BuildRequires:  sed >= 4.0
21 BuildRequires:  tetex-dvips
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
37 sed -i -e 's/alpha\*-unknown-linux/alpha*-*-linux/' configure.ac
38
39 %build
40 %{__aclocal}
41 %{__autoconf}
42 cp -f /usr/share/automake/config.sub .
43 %configure
44 %{__make} depend
45 %{__make}
46 %{__make} html -C alex/doc
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_bindir},%{_examplesdir}/%{name}-%{version}}
51
52 %{__make} install \
53         bindir=$RPM_BUILD_ROOT%{_bindir} \
54         libdir=$RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}
55
56 cp -a alex/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc alex/{ANNOUNCE,LICENSE,README} alex/doc/alex
64 %attr(755,root,root) %{_bindir}/*
65 %dir %{_libdir}/%{name}-%{version}
66 %{_libdir}/%{name}-%{version}/A*
67 %attr(755,root,root) %{_libdir}/%{name}-%{version}/alex.bin
68 %{_examplesdir}/%{name}-%{version}
This page took 0.271515 seconds and 2 git commands to generate.