2009-02-28 14:10:17 +01:00
|
|
|
#
|
|
|
|
# spec file for package ghc-X11
|
|
|
|
#
|
|
|
|
# Copyright (c) 2005-2009 Herbert Graeber
|
|
|
|
#
|
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
# ghc does not emit debug information
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
2006-09-05 22:45:56 +02:00
|
|
|
Name: alex
|
2008-12-04 19:33:24 +01:00
|
|
|
Version: 2.3.1
|
2006-09-05 22:45:56 +02:00
|
|
|
Release: 0
|
2009-02-28 14:10:17 +01:00
|
|
|
Summary: The lexer generator for Haskell
|
2006-09-05 22:45:56 +02:00
|
|
|
Group: Development/Languages/Haskell
|
2009-02-28 14:10:17 +01:00
|
|
|
License: BSD3
|
2006-09-05 22:45:56 +02:00
|
|
|
URL: http://www.haskell.org/alex/
|
2009-02-28 14:10:17 +01:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
2007-11-15 09:58:50 +01:00
|
|
|
Requires: licenses
|
2006-09-05 22:45:56 +02:00
|
|
|
BuildRequires: ghc
|
|
|
|
BuildRequires: libxslt
|
|
|
|
BuildRequires: sgml-skel
|
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
|
|
|
BuildRequires: docbook-utils
|
2009-04-17 15:05:50 +02:00
|
|
|
BuildRequires: fop
|
2009-09-04 22:27:40 +02:00
|
|
|
%if 0%{?suse_version} >= 1100
|
|
|
|
BuildRequires: java-1_6_0-openjdk
|
|
|
|
%else
|
|
|
|
BuildRequires: java-1_5_0-sun
|
2009-04-17 15:17:45 +02:00
|
|
|
%endif
|
2007-11-15 09:58:50 +01:00
|
|
|
BuildRequires: licenses
|
2006-09-05 22:45:56 +02:00
|
|
|
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++.
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Alex Documentation
|
|
|
|
Group: Development/Languages/Haskell
|
2009-02-28 14:10:17 +01:00
|
|
|
Requires: %{name} = %{version}
|
2006-09-05 22:45:56 +02:00
|
|
|
|
|
|
|
%description doc
|
2009-02-28 14:10:17 +01:00
|
|
|
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++.
|
|
|
|
|
2006-09-05 22:45:56 +02:00
|
|
|
This is the documentation for Alex, a lexical analyser generator for Haskell.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2008-12-04 19:33:24 +01:00
|
|
|
%setup -q
|
2006-09-05 22:45:56 +02:00
|
|
|
|
2009-02-28 14:10:17 +01:00
|
|
|
|
2006-09-05 22:45:56 +02:00
|
|
|
%build
|
2009-02-28 14:10:17 +01:00
|
|
|
%cabal_configure --docdir=%{_docdir}/alex
|
|
|
|
%cabal build
|
|
|
|
pushd doc
|
|
|
|
autoreconf
|
|
|
|
./configure --prefix=%{_prefix} --libdir=%{_libdir}
|
2009-04-17 15:05:50 +02:00
|
|
|
make html pdf
|
2009-02-28 14:10:17 +01:00
|
|
|
popd
|
2006-09-05 22:45:56 +02:00
|
|
|
|
|
|
|
%install
|
2009-02-28 14:10:17 +01:00
|
|
|
%cabal_install
|
2009-04-17 15:05:50 +02:00
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
sed '
|
|
|
|
s|/@VERSION@|%{version}|
|
|
|
|
s|@DOCDIR@|%{_datadir}/doc/%{name}|
|
|
|
|
s|@DATADIR@|%{_datadir}/alex|
|
|
|
|
' < doc/alex.1.in | gzip >%{buildroot}%{_mandir}/man1/%{name}.1.gz
|
2009-04-17 15:13:44 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/doc/%{name}
|
2009-04-17 15:05:50 +02:00
|
|
|
cp -r doc/%{name} %{buildroot}%{_datadir}/doc/%{name}/html
|
|
|
|
cp -r doc/%{name}.pdf %{buildroot}%{_datadir}/doc/%{name}
|
2007-11-15 09:58:50 +01:00
|
|
|
for FILE in LICENSE ; do
|
2009-02-28 14:10:17 +01:00
|
|
|
MD5SUM=$(md5sum $FILE | sed 's/ .*//')
|
2007-11-15 09:58:50 +01:00
|
|
|
if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then
|
|
|
|
ln -sf /usr/share/doc/licenses/md5/$MD5SUM $FILE
|
|
|
|
fi
|
|
|
|
done
|
2009-02-28 14:10:17 +01:00
|
|
|
|
|
|
|
|
2006-09-05 22:45:56 +02:00
|
|
|
%files
|
2009-02-28 14:10:17 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc ANNOUNCE LICENSE README TODO examples
|
2009-04-17 15:05:50 +02:00
|
|
|
%doc %{_mandir}/man1/%{name}.1.gz
|
2009-02-28 14:10:17 +01:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/%{name}-%{version}
|
|
|
|
|
2006-09-05 22:45:56 +02:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr (-,root, root)
|
2009-04-16 23:07:45 +02:00
|
|
|
%{_datadir}/doc/%{name}
|
2009-02-28 14:10:17 +01:00
|
|
|
|
2006-09-05 22:45:56 +02:00
|
|
|
|
|
|
|
%changelog
|
2009-04-17 15:05:50 +02:00
|
|
|
* Thu Apr 17 2009 Herbert Graeber <herbert@links2linux.de> - 2.3.1
|
|
|
|
- Add man page
|
|
|
|
- Save HTML data only, not Makfile, etc.
|
|
|
|
- Add pdf file of documentation
|
|
|
|
|
2009-04-16 23:07:45 +02:00
|
|
|
* Thu Apr 16 2009 Herbert Graeber <herbert@links2linux.de> - 2.3.1
|
|
|
|
- Fix location of documentation
|
|
|
|
|
2009-02-28 14:10:17 +01:00
|
|
|
* Sat Feb 28 2009 Herbert Graeber <herbert@links2linux.de> - 2.3.1
|
|
|
|
- Changed to haskell packaging conventions
|
|
|
|
|
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
|