Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 50 lines (42 sloc) 1.298 kb
c40efec [alex @ 2004-06-05 16:53:34 by panne]
panne authored
1 %define name alex
c9998fe some 2.2 updates
Simon Marlow authored
2 %define version 2.2
c40efec [alex @ 2004-06-05 16:53:34 by panne]
panne authored
3 %define release 1
4
5 Name: %{name}
6 Version: %{version}
7 Release: %{release}
8 License: BSD-like
9 Group: Development/Languages/Haskell
9d987ff [alex @ 2004-06-05 18:01:00 by panne]
panne authored
10 URL: http://haskell.org/alex/
ab24c3b Fully cabalized Alex and bumped version to 2.1.0
sven.panne@aedion.de authored
11 Source: http://haskell.org/alex/dist/%{version}/alex-%{version}.tar.gz
9d987ff [alex @ 2004-06-05 18:01:00 by panne]
panne authored
12 Packager: Sven Panne <sven.panne@aedion.de>
c40efec [alex @ 2004-06-05 16:53:34 by panne]
panne authored
13 BuildRoot: %{_tmppath}/%{name}-%{version}-build
14 Prefix: %{_prefix}
bdeb69b [alex @ 2004-08-26 21:03:18 by panne]
panne authored
15 BuildRequires: happy, ghc, docbook-dtd, docbook-xsl-stylesheets, libxslt, libxml2, fop, xmltex, dvips
c40efec [alex @ 2004-06-05 16:53:34 by panne]
panne authored
16 Summary: The lexer generator for Haskell
86b43b7 [alex @ 2003-08-13 13:59:54 by simonmar]
simonmar authored
17
18 %description
19 Alex is a tool for generating lexical analysers in Haskell, given a
20 description of the tokens to be recognised in the form of regular
9d987ff [alex @ 2004-06-05 18:01:00 by panne]
panne authored
21 expressions. It is similar to the tool lex or flex for C/C++.
c40efec [alex @ 2004-06-05 16:53:34 by panne]
panne authored
22
86b43b7 [alex @ 2003-08-13 13:59:54 by simonmar]
simonmar authored
23 %prep
24 %setup -n alex-%{version}
25
26 %build
c0f9659 Install LICENSE in the correct place
sven.panne@aedion.de authored
27 runhaskell Setup.lhs configure --prefix=%{_prefix} --docdir=%{_datadir}/doc/packages/%{name}
00e0242 More cabalization
sven.panne@aedion.de authored
28 runhaskell Setup.lhs build
29 cd doc
c22d32a [alex @ 2003-08-27 09:39:34 by panne]
panne authored
30 test -f configure || autoreconf
00e0242 More cabalization
sven.panne@aedion.de authored
31 ./configure
9089a71 [alex @ 2004-09-05 19:12:20 by panne]
panne authored
32 make html
86b43b7 [alex @ 2003-08-13 13:59:54 by simonmar]
simonmar authored
33
34 %install
00e0242 More cabalization
sven.panne@aedion.de authored
35 runhaskell Setup.lhs copy --destdir=${RPM_BUILD_ROOT}
c40efec [alex @ 2004-06-05 16:53:34 by panne]
panne authored
36
37 %clean
38 rm -rf ${RPM_BUILD_ROOT}
86b43b7 [alex @ 2003-08-13 13:59:54 by simonmar]
simonmar authored
39
40 %files
c40efec [alex @ 2004-06-05 16:53:34 by panne]
panne authored
41 %defattr(-,root,root)
ab24c3b Fully cabalized Alex and bumped version to 2.1.0
sven.panne@aedion.de authored
42 %doc ANNOUNCE
43 %doc LICENSE
44 %doc README
45 %doc TODO
46 %doc doc/alex
47 %doc examples
86b43b7 [alex @ 2003-08-13 13:59:54 by simonmar]
simonmar authored
48 %{prefix}/bin/alex
ab24c3b Fully cabalized Alex and bumped version to 2.1.0
sven.panne@aedion.de authored
49 %{prefix}/share/alex-%{version}
Something went wrong with that request. Please try again.