Find file
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (42 sloc) 1.27 KB
%define name alex
%define version 2.2
%define release 1
Name: %{name}
Version: %{version}
Release: %{release}
License: BSD-like
Group: Development/Languages/Haskell
Packager: Sven Panne <>
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Prefix: %{_prefix}
BuildRequires: happy, ghc, docbook-dtd, docbook-xsl-stylesheets, libxslt, libxml2, fop, xmltex, dvips
Summary: The lexer generator for Haskell
Alex is a tool for generating lexical analysers in Haskell, given a
description of the tokens to be recognised in the form of regular
expressions. It is similar to the tool lex or flex for C/C++.
%setup -n alex-%{version}
runhaskell Setup.lhs configure --prefix=%{_prefix} --docdir=%{_datadir}/doc/packages/%{name}
runhaskell Setup.lhs build
cd doc
test -f configure || autoreconf
make html
runhaskell Setup.lhs copy --destdir=${RPM_BUILD_ROOT}
rm -rf ${RPM_BUILD_ROOT}
%doc TODO
%doc doc/alex
%doc examples