Herbert Graeber
e935a45faa
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/alex?expand=0&rev=18
127 lines
3.6 KiB
RPMSpec
127 lines
3.6 KiB
RPMSpec
Name: alex
|
|
Summary: The lexer generator for Haskell
|
|
Version: 2.3.1
|
|
Release: 0
|
|
License: BSD3
|
|
Group: Development/Languages/Haskell
|
|
Packager: Herbert Graeber <herbert@graeber-clan.de>
|
|
URL: http://www.haskell.org/alex/
|
|
Source: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.bz2
|
|
%if 0%suse_version >= 1030
|
|
Requires: licenses
|
|
%endif
|
|
BuildRequires: ghc
|
|
BuildRequires: libxslt
|
|
BuildRequires: sgml-skel
|
|
BuildRequires: docbook-xsl-stylesheets
|
|
BuildRequires: docbook-utils
|
|
%if 0%suse_version >= 1030
|
|
BuildRequires: licenses
|
|
%endif
|
|
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
|
|
aus eine Beschreibung von Symbolen durch reguläre Ausdrücke ein
|
|
Haskell-Modul, das aus einem Text eine Folge von Symbolen erzeugt. Alex ist
|
|
ein vergleichbar mit 'lex' bzw. 'flex' für C und C++.
|
|
|
|
%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
|
|
Dieses ist Dokumentation für Alex.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
runhaskell Setup.lhs configure --prefix=%{_prefix} --libdir=%{_libdir} \
|
|
--libexecdir=%{_libexecdir} --datadir=%{_datadir} --docdir=%{_docdir}/%{name}
|
|
runhaskell Setup.lhs build
|
|
cd doc
|
|
test -f configure || autoreconf
|
|
./configure
|
|
make html
|
|
|
|
%install
|
|
%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
|
|
runhaskell Setup.lhs copy --destdir=${RPM_BUILD_ROOT}
|
|
|
|
%files
|
|
%defattr (-,root,root)
|
|
%doc ANNOUNCE
|
|
%doc LICENSE
|
|
%doc README
|
|
%doc TODO
|
|
%{_bindir}/alex
|
|
%{_datadir}/alex-%{version}
|
|
|
|
%files doc
|
|
%defattr (-,root, root)
|
|
%doc examples
|
|
%doc doc/alex
|
|
|
|
%changelog
|
|
* Wed Dec 4 2008 Herbert Graeber <herbert@links2linux.de> 2.3.1
|
|
- Update to version 2.3.1
|
|
|
|
* 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
|
|
- Update to version 2.2.0
|
|
* Cabal 1.2 is now required.
|
|
* ByteString wrappers: use Alex to lex ByteStrings directly.
|
|
- Use shared license file
|
|
|
|
* Thu Jan 18 2007 Herbert Graeber <herbert@links2linux.de>A 2.1.0
|
|
- Update to version 2.1.0
|
|
|
|
* Wed Sep 06 2006 Herbert Graeber <herbert@links2linux.de>
|
|
- Haddock isn't needed for build
|
|
|
|
* 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
|