Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 607d70b5555dae1df61e7a25fc6b25c1 > files > 2

alex-2.3.1-2mdv2010.1.src.rpm

Name:		alex
Summary:	The lexer generator for Haskell
Version:	2.3.1
Release:	%mkrel 2
License:	BSD
Group:		Development/Other
URL:		http://haskell.org/alex/
Source0:	http://haskell.org/alex/dist/%{version}/alex-%{version}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-build
BuildRequires:	happy
BuildRequires:	ghc
BuildRequires:	docbook-style-xsl
BuildRequires:	libxslt-proc
BuildRequires:	libxml2
BuildRequires:	xmltex
BuildRequires:	gmp-devel

%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++.

# the debuginfo subpackage is currently empty anyway, so don't generate it
%define debug_package %{nil}
%define __spec_install_post /usr/lib/rpm/brp-compress

%define alexdir %{_datadir}/%{name}-%{version}

%prep
%setup -q

%build
runhaskell Setup.lhs configure --prefix=%{_prefix}
runhaskell Setup.lhs build
cd doc
test -f configure || autoreconf
./configure
make html

%install
rm -rf %{buildroot}

runhaskell Setup.lhs copy --destdir=%{buildroot}

rm -rf %{buildroot}%{_docdir}/%{name}-%{version}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc ANNOUNCE  LICENSE  README  Setup.lhs  TODO examples
%{_bindir}/alex*
%{alexdir}



%changelog
* Wed Feb 10 2010 Funda Wang <fwang@mandriva.org> 2.3.1-2mdv2010.1
+ Revision: 503520
- rebuild for new gmp

* Sat Nov 28 2009 Jérôme Brenier <incubusss@mandriva.org> 2.3.1-1mdv2010.1
+ Revision: 470827
- new version 2.3.1

  + Thierry Vignaud <tvignaud@mandriva.com>
    - rebuild
    - rebuild

* Thu Aug 07 2008 Adam Williamson <awilliamson@mandriva.org> 2.2-1mdv2009.0
+ Revision: 266817
- clean spec
- new release 2.2

  + Thierry Vignaud <tvignaud@mandriva.com>
    - rebuild
    - kill re-definition of %%buildroot on Pixel's request

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Sat Aug 25 2007 Gaëtan Lehmann <glehmann@mandriva.org> 2.1.0-1mdv2008.0
+ Revision: 71309
- 2.1.0


* Wed Jun 28 2006 Lenny Cartier <lenny@mandriva.com> 2.0.1-3mdv2007.0
- rebuild

* Thu Oct 06 2005 Nicolas Lécureuil <neoclust@mandriva.org> 2.0.1-2mdk
- Fix BuildRequires

* Wed Jun 15 2005 Gaetan Lehmann <gaetan.lehmann@jouy.inra.fr> 2.0.1-1mdk
- initial contrib

* Fri May 06 2005 Jens Petersen <petersen@redhat.com> - 2.0.1-1
- initial packaging for Fedora Haskell based on upstream spec file