From d9d354cf36a78710e309ca15512fe9b1784edd5b Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Mar 09 2009 22:28:23 +0000 Subject: update arch list and bring closer to cabal2spec-0.12 --- diff --git a/alex.spec b/alex.spec index 8865e4f..5c37d9c 100644 --- a/alex.spec +++ b/alex.spec @@ -1,18 +1,20 @@ # ghc does not emit debug information -%define debug_package %{nil} +%global debug_package %{nil} Name: alex Version: 2.3.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A lexer generator for Haskell Group: Development/Tools License: BSD URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/alex -Source: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz +Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -ExclusiveArch: i386 x86_64 ppc -BuildRequires: autoconf ghc docbook-style-xsl libxslt +# fedora ghc archs: +ExclusiveArch: %{ix86} x86_64 ppc alpha +BuildRequires: ghc +BuildRequires: autoconf docbook-style-xsl libxslt %description Alex is a tool for generating lexical analysers in Haskell, given a @@ -28,30 +30,33 @@ expressions. It is similar to the tool lex or flex for C/C++. %cabal_configure %cabal build -pushd doc +cd doc autoreconf ./configure --prefix=%{_prefix} --libdir=%{_libdir} make html -popd +cd - %install -rm -rf ${RPM_BUILD_ROOT} +rm -rf $RPM_BUILD_ROOT %cabal_install %clean -rm -rf ${RPM_BUILD_ROOT} +rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc ANNOUNCE LICENSE README TODO doc/alex examples -%{_bindir}/alex -%{_datadir}/alex-%{version} +%{_bindir}/%{name} +%{_datadir}/%{name}-%{version} %changelog +* Tue Mar 10 2009 Jens Petersen - 2.3.1-3 +- update arch list and bring closer to cabal2spec-0.12 + * Mon Feb 23 2009 Fedora Release Engineering - 2.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild