update arch list and bring closer to cabal2spec-0.12

epel9
Jens Petersen 16 years ago
parent aac7facd15
commit d9d354cf36

@ -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 <petersen@redhat.com> - 2.3.1-3
- update arch list and bring closer to cabal2spec-0.12
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

Loading…
Cancel
Save