parent
064dd6f139
commit
cf3e76fefa
@ -0,0 +1 @@
|
||||
alex-2.1.0.tar.gz
|
@ -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 <bos@serpentine.com> - 2.1.0-3
|
||||
- apply a few cleanups from Jens Petersen
|
||||
|
||||
* Tue Apr 26 2007 Bryan O'Sullivan <bos@serpentine.com> - 2.1.0-2
|
||||
- fix a few style issues
|
||||
|
||||
* Fri Jan 19 2007 Bryan O'Sullivan <bos@serpentine.com> - 2.1.0-1
|
||||
- update to 2.1.0
|
||||
- fix rpmlint errors
|
||||
|
||||
* Fri May 6 2005 Jens Petersen <petersen@redhat.com> - 2.0.1-1
|
||||
- initial packaging for Fedora Haskell based on upstream spec file
|
Loading…
Reference in new issue