|
|
|
@ -7,14 +7,13 @@
|
|
|
|
|
Name: alex
|
|
|
|
|
# part of haskell-platform-2009.2.0.2
|
|
|
|
|
Version: 2.3.1
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Release: 8%{?dist}
|
|
|
|
|
Summary: A lexer generator for Haskell
|
|
|
|
|
|
|
|
|
|
Group: Development/Tools
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/alex
|
|
|
|
|
URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{name}
|
|
|
|
|
Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
# fedora ghc archs:
|
|
|
|
|
ExclusiveArch: %{ix86} x86_64 ppc alpha
|
|
|
|
|
BuildRequires: ghc, ghc-rpm-macros
|
|
|
|
@ -31,7 +30,7 @@ expressions. It is similar to the tool lex or flex for C/C++.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cabal_configure %{?with_dynamic:--ghc-option=-dynamic}
|
|
|
|
|
%cabal_configure
|
|
|
|
|
%cabal build
|
|
|
|
|
|
|
|
|
|
cd doc
|
|
|
|
@ -42,7 +41,6 @@ cd ..
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%cabal_install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -58,6 +56,10 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Jan 11 2010 Jens Petersen <petersen@redhat.com> - 2.3.1-8
|
|
|
|
|
- dynamic bcond is now handled by cabal_configure
|
|
|
|
|
- drop redundant buildroot and its install cleaning
|
|
|
|
|
|
|
|
|
|
* Tue Dec 22 2009 Jens Petersen <petersen@redhat.com>
|
|
|
|
|
- add bcond for dynamic linking
|
|
|
|
|
|
|
|
|
|