From da07f91b4a91a0ae1b4ab7dbd740d9305f3bb85c Mon Sep 17 00:00:00 2001 From: Bryan O'Sullivan Date: Sep 25 2007 22:03:03 +0000 Subject: Initial commit --- diff --git a/.cvsignore b/.cvsignore index e69de29..7933db4 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +alex-2.1.0.tar.gz diff --git a/alex.spec b/alex.spec new file mode 100644 index 0000000..4eabde7 --- /dev/null +++ b/alex.spec @@ -0,0 +1,61 @@ +Name: alex +Version: 2.1.0 +Release: 3%{?dist} +Summary: The lexer generator for Haskell + +Group: Development/Tools +License: BSD-like +URL: http://haskell.org/alex/ +Source: http://haskell.org/alex/dist/%{version}/alex-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: ghc docbook-style-xsl libxslt + +%description +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++. + + +%prep +%setup -q + + +%build +runhaskell Setup.lhs configure --prefix=%{_prefix} --libdir=%{_libdir} +runhaskell Setup.lhs build +cd doc +autoreconf +./configure --prefix=%{_prefix} --libdir=%{_libdir} +make html + + +%install +rm -rf ${RPM_BUILD_ROOT} +runhaskell Setup.lhs copy --destdir=${RPM_BUILD_ROOT} + + +%clean +rm -rf ${RPM_BUILD_ROOT} + + +%files +%defattr(-,root,root,-) +%doc ANNOUNCE LICENSE README TODO doc/alex examples +%{_bindir}/alex +%{_datadir}/alex-%{version} + + +%changelog +* Sun Jul 22 2007 Bryan O'Sullivan - 2.1.0-3 +- apply a few cleanups from Jens Petersen + +* Tue Apr 26 2007 Bryan O'Sullivan - 2.1.0-2 +- fix a few style issues + +* Fri Jan 19 2007 Bryan O'Sullivan - 2.1.0-1 +- update to 2.1.0 +- fix rpmlint errors + +* Fri May 6 2005 Jens Petersen - 2.0.1-1 +- initial packaging for Fedora Haskell based on upstream spec file diff --git a/sources b/sources index e69de29..457024e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +17e80d39cc3f1aba28dcea0e358c81e9 alex-2.1.0.tar.gz