Summary: A lexical analyser generator for Haskell
Summary(pl): Generator analizatorów sk³adniowych dla Haskella
Name: alex
-Version: 2.0
-Release: 4
+Version: 2.0.1
+Release: 1
License: BSD-like w/o adv. clause
Group: Development/Tools
-Source0: http://www.haskell.org/alex/dist/%{name}-%{version}-src.tar.bz2
-# Source0-md5: 14ff6abf21d81763b15afe151add9091
+Source0: http://www.haskell.org/alex/dist/%{name}-%{version}-src.tar.gz
+# Source0-md5: edb62560e29c8de23913c65c52adbf19
Patch0: %{name}-DESTDIR.patch
-Patch1: %{name}-debian.patch
-Patch2: %{name}-amd64.patch
-Patch3: %{name}-pld-sparc.patch
URL: http://www.haskell.org/alex/
BuildRequires: autoconf
BuildRequires: automake
%prep
%setup -q
-%patch0 -p1
-%patch1 -p1
-%patch2
-%patch3
%build
chmod u+w configure*
%configure
%{__make} depend
%{__make}
-%{__make} ps -C alex/doc
+%{__make} html -C alex/doc
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_examplesdir}/%{name}-%{version}}
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
+ bindir=$RPM_BUILD_ROOT%{_bindir} \
+ libdir=$RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}
cp -a alex/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/
%files
%defattr(644,root,root,755)
-%doc alex/{ANNOUNCE,LICENSE,README} alex/doc/alex.{ps,dvi}
+%doc alex/{ANNOUNCE,LICENSE,README} alex/doc/alex docs/building/building docs/docbook-cheat-sheet/docbook-cheat-sheet
%attr(755,root,root) %{_bindir}/*
%dir %{_libdir}/%{name}-%{version}
%{_libdir}/%{name}-%{version}/A*