1
0
forked from rpm/alex
alex/alex.spec
Ondřej Súkup f07a8416ed - update to 3.1.7
* Add support for %encoding directive (allows to control --latin1 from inside
    Alex scripts)
* Make code forward-compatible with in-progress proposals
* Suppress more warnings

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/alex?expand=0&rev=49
2016-01-11 07:26:30 +00:00

70 lines
2.1 KiB
RPMSpec

#
# spec file for package alex
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Peter Trommler peter.trommler@ohm-hochschule.de
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%bcond_without tests
Name: alex
Version: 3.1.7
Release: 0
Summary: Tool for generating lexical analysers in Haskell
License: BSD-3-Clause
Group: Development/Languages/Other
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://hackage.haskell.org/package/%{name}
Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-array-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-rpm-macros
%description
Alex is a tool for generating lexical analysers in Haskell. It takes a
description of tokens based on regular expressions and generates a Haskell
module containing code for scanning text efficiently. It is similar to the tool
lex or flex for C/C++.
%prep
%setup -q
%build
%ghc_bin_build
cd doc
test -f configure || autoreconf
./configure
%install
%ghc_bin_install
mkdir -p %{buildroot}/%{_mandir}/man1
cp doc/alex.1 %{buildroot}/%{_mandir}/man1
%files
%defattr(-,root,root,-)
%doc LICENSE README TODO CHANGELOG.md
%doc examples
%attr(755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}-%{version}
%{_mandir}/man1/*
%changelog