2006-09-05 22:45:56 +02:00
|
|
|
Name: alex
|
|
|
|
Summary: The lexer generator for Haskell
|
2008-12-04 19:33:24 +01:00
|
|
|
Version: 2.3.1
|
2006-09-05 22:45:56 +02:00
|
|
|
Release: 0
|
2008-10-29 22:04:32 +01:00
|
|
|
License: BSD3
|
2006-09-05 22:45:56 +02:00
|
|
|
Group: Development/Languages/Haskell
|
|
|
|
Packager: Herbert Graeber <herbert@graeber-clan.de>
|
|
|
|
URL: http://www.haskell.org/alex/
|
2008-12-04 19:33:24 +01:00
|
|
|
Source: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.bz2
|
2007-11-15 09:58:50 +01:00
|
|
|
%if 0%suse_version >= 1030
|
|
|
|
Requires: licenses
|
|
|
|
%endif
|
2006-09-05 22:45:56 +02:00
|
|
|
BuildRequires: ghc
|
|
|
|
BuildRequires: libxslt
|
|
|
|
BuildRequires: sgml-skel
|
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
|
|
|
BuildRequires: docbook-utils
|
2007-11-15 09:58:50 +01:00
|
|
|
%if 0%suse_version >= 1030
|
|
|
|
BuildRequires: licenses
|
|
|
|
%endif
|
2006-09-05 22:45:56 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
Prefix: /usr
|
|
|
|
|
|
|
|
%description
|
|
|
|
Alex is a tool for generating lexical analysers in Haskell, given a
|
|
|
|
description of the tokens to be recognised in the form of regular
|
|
|
|
expressions. It is similar to the tool 'lex' or 'flex' for C/C++.
|
|
|
|
|
|
|
|
%description -l de
|
|
|
|
Alex ist ein Tool zum Erzeugen von lexkialischen Analysatoren. Er erzeugt
|
2007-11-15 09:58:50 +01:00
|
|
|
aus eine Beschreibung von Symbolen durch reguläre Ausdrücke ein
|
2006-09-05 22:45:56 +02:00
|
|
|
Haskell-Modul, das aus einem Text eine Folge von Symbolen erzeugt. Alex ist
|
2007-11-15 09:58:50 +01:00
|
|
|
ein vergleichbar mit 'lex' bzw. 'flex' für C und C++.
|
2006-09-05 22:45:56 +02:00
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Alex Documentation
|
|
|
|
Group: Development/Languages/Haskell
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This is the documentation for Alex, a lexical analyser generator for Haskell.
|
|
|
|
|
|
|
|
%description doc -l de
|
2007-11-15 09:58:50 +01:00
|
|
|
Dieses ist Dokumentation für Alex.
|
2006-09-05 22:45:56 +02:00
|
|
|
|
|
|
|
%prep
|
2008-12-04 19:33:24 +01:00
|
|
|
%setup -q
|
2006-09-05 22:45:56 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
2007-11-15 09:58:50 +01:00
|
|
|
runhaskell Setup.lhs configure --prefix=%{_prefix} --libdir=%{_libdir} \
|
|
|
|
--libexecdir=%{_libexecdir} --datadir=%{_datadir} --docdir=%{_docdir}/%{name}
|
2007-01-18 22:20:05 +01:00
|
|
|
runhaskell Setup.lhs build
|
|
|
|
cd doc
|
2006-09-05 22:45:56 +02:00
|
|
|
test -f configure || autoreconf
|
2007-01-18 22:20:05 +01:00
|
|
|
./configure
|
2006-09-05 22:45:56 +02:00
|
|
|
make html
|
|
|
|
|
|
|
|
%install
|
2007-11-15 09:58:50 +01:00
|
|
|
%if 0%suse_version >= 1030
|
|
|
|
for FILE in LICENSE ; do
|
|
|
|
MD5SUM=$(md5sum $FILE | sed 's/ .*//')
|
|
|
|
if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then
|
|
|
|
ln -sf /usr/share/doc/licenses/md5/$MD5SUM $FILE
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
%endif
|
2007-01-18 22:20:05 +01:00
|
|
|
runhaskell Setup.lhs copy --destdir=${RPM_BUILD_ROOT}
|
2006-09-05 22:45:56 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr (-,root,root)
|
2007-01-18 22:29:36 +01:00
|
|
|
%doc ANNOUNCE
|
|
|
|
%doc LICENSE
|
|
|
|
%doc README
|
|
|
|
%doc TODO
|
2007-01-18 23:11:08 +01:00
|
|
|
%{_bindir}/alex
|
|
|
|
%{_datadir}/alex-%{version}
|
2006-09-05 22:45:56 +02:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr (-,root, root)
|
2007-01-18 22:29:36 +01:00
|
|
|
%doc examples
|
|
|
|
%doc doc/alex
|
2006-09-05 22:45:56 +02:00
|
|
|
|
|
|
|
%changelog
|
2008-12-04 19:33:24 +01:00
|
|
|
* Wed Dec 4 2008 Herbert Graeber <herbert@links2linux.de> 2.3.1
|
|
|
|
- Update to version 2.3.1
|
|
|
|
|
2008-10-29 22:04:32 +01:00
|
|
|
* Wed Oct 29 2008 Herbert Graeber <herbert@links2linux.de> 2.3
|
|
|
|
- Update to version 2.3
|
|
|
|
|
|
|
|
* Thu Nov 15 2007 Herbert Graeber <herbert@links2linux.de> 2.2.0
|
2007-11-15 09:03:29 +01:00
|
|
|
- Update to version 2.2.0
|
|
|
|
* Cabal 1.2 is now required.
|
|
|
|
* ByteString wrappers: use Alex to lex ByteStrings directly.
|
2007-11-15 09:58:50 +01:00
|
|
|
- Use shared license file
|
2007-11-15 09:03:29 +01:00
|
|
|
|
2008-10-29 22:04:32 +01:00
|
|
|
* Thu Jan 18 2007 Herbert Graeber <herbert@links2linux.de>A 2.1.0
|
2007-01-18 22:20:05 +01:00
|
|
|
- Update to version 2.1.0
|
|
|
|
|
2006-09-06 14:35:39 +02:00
|
|
|
* Wed Sep 06 2006 Herbert Graeber <herbert@links2linux.de>
|
|
|
|
- Haddock isn't needed for build
|
|
|
|
|
2006-09-05 22:45:56 +02:00
|
|
|
* Mon Sep 04 2006 Herbert Graeber <herbert@links2linux.de>
|
|
|
|
- Use docbook-utils for html documentation
|
|
|
|
- Require sgml-skel for build
|
|
|
|
|
|
|
|
* Tue Aug 29 2006 - Herbert Graeber <herbert@links2linux.de>
|
|
|
|
- Disabled ps documentation (no fop without java)
|
|
|
|
|
|
|
|
* Mon Aug 28 2006 - Herbert Graeber <herbert@links2linux.de>
|
|
|
|
- Enabled full documentation build
|
|
|
|
|
|
|
|
* Mon Aug 28 2006 - Herbert Graeber <herbert@links2linux.de>
|
|
|
|
- Move to the SUSE Build Service
|
|
|
|
- Disabled extended documentation for the first build
|
|
|
|
|
|
|
|
* Thu Apr 20 2006 - Herbert Graeber <herbert@links2linux.de>
|
|
|
|
- Rebuild with GHC 6.4.2
|
|
|
|
|
|
|
|
* Wed Sep 21 2005 - Herbert Graeber <herbert@links2linux.de>
|
|
|
|
- Recompiled with ghc 6.4.1
|
|
|
|
|
|
|
|
* Wed Apr 20 2005 - Herbert Graeber <herbert@links2linux.de>
|
|
|
|
- Changes for x86_64
|
|
|
|
|
|
|
|
* Thu Apr 07 2005 - Herbert Graeber <herbert@links2linux.de>
|
|
|
|
- update to version 2.0.1 for ghc 6.4 compatibility
|