From 26674aafdbb80ebf493794ff688df6ff2c962b64 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 25 Nov 2008 04:09:50 +0000 Subject: [PATCH] - build with new macros - update urls to point to hackage --- alex.spec | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/alex.spec b/alex.spec index 6556519..73c0584 100644 --- a/alex.spec +++ b/alex.spec @@ -1,14 +1,17 @@ +# ghc does not emit debug information +%define debug_package %{nil} + Name: alex Version: 2.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: The lexer generator for Haskell Group: Development/Tools License: BSD -URL: http://haskell.org/alex/ -Source: http://haskell.org/alex/dist/%{version}/alex-%{version}.tar.gz +URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/alex +Source: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -ExcludeArch: alpha ppc64 +ExclusiveArch: i386 x86_64 ppc BuildRequires: autoconf ghc docbook-style-xsl libxslt @@ -23,17 +26,19 @@ expressions. It is similar to the tool lex or flex for C/C++. %build -runhaskell Setup.lhs configure --prefix=%{_prefix} --libdir=%{_libdir} -runhaskell Setup.lhs build -cd doc +%cabal_configure +%cabal_build + +pushd doc autoreconf ./configure --prefix=%{_prefix} --libdir=%{_libdir} make html +popd %install rm -rf ${RPM_BUILD_ROOT} -runhaskell Setup.lhs copy --destdir=${RPM_BUILD_ROOT} +%cabal_install %clean @@ -48,6 +53,10 @@ rm -rf ${RPM_BUILD_ROOT} %changelog +* Tue Nov 25 2008 Jens Petersen - 2.3-2 +- build with new macros +- update urls to point to hackage + * Mon Oct 13 2008 Bryan O'Sullivan - 2.3-1 - Update to 2.3