2012-11-17 19:19:45 +01:00
|
|
|
#
|
|
|
|
# spec file for package alex
|
|
|
|
#
|
2016-01-11 08:26:30 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-01-12 16:23:29 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2013-08-01 09:58:01 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-05-02 11:33:50 +02:00
|
|
|
%bcond_without tests
|
2012-01-12 16:23:29 +01:00
|
|
|
Name: alex
|
2016-01-11 08:26:30 +01:00
|
|
|
Version: 3.1.7
|
2012-01-12 16:23:29 +01:00
|
|
|
Release: 0
|
2016-07-16 21:53:55 +02:00
|
|
|
Summary: Alex is a tool for generating lexical analysers in Haskell
|
2012-02-29 09:04:29 +01:00
|
|
|
License: BSD-3-Clause
|
2016-07-16 21:53:55 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
Url: https://hackage.haskell.org/package/%{name}
|
|
|
|
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
|
2012-01-12 16:23:29 +01:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
2016-07-16 21:53:55 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
# Begin cabal-rpm deps:
|
2012-01-12 16:23:29 +01:00
|
|
|
BuildRequires: ghc-QuickCheck-devel
|
2015-05-02 11:33:50 +02:00
|
|
|
BuildRequires: ghc-array-devel
|
|
|
|
BuildRequires: ghc-containers-devel
|
|
|
|
BuildRequires: ghc-directory-devel
|
2013-08-01 09:58:01 +02:00
|
|
|
BuildRequires: ghc-rpm-macros
|
2016-07-16 21:53:55 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-process-devel
|
|
|
|
%endif
|
|
|
|
# End cabal-rpm deps
|
2006-09-05 22:45:56 +02:00
|
|
|
|
|
|
|
%description
|
2015-05-02 11:33:50 +02:00
|
|
|
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++.
|
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
|
|
|
|
2016-07-16 21:53:55 +02:00
|
|
|
|
2006-09-05 22:45:56 +02:00
|
|
|
%build
|
2012-01-12 16:23:29 +01:00
|
|
|
%ghc_bin_build
|
2016-07-16 21:53:55 +02:00
|
|
|
|
2012-05-07 20:42:14 +02:00
|
|
|
cd doc
|
|
|
|
test -f configure || autoreconf
|
|
|
|
./configure
|
2006-09-05 22:45:56 +02:00
|
|
|
|
2012-01-12 16:23:29 +01:00
|
|
|
%install
|
|
|
|
%ghc_bin_install
|
2016-07-16 21:53:55 +02:00
|
|
|
|
2012-05-07 20:42:14 +02:00
|
|
|
mkdir -p %{buildroot}/%{_mandir}/man1
|
|
|
|
cp doc/alex.1 %{buildroot}/%{_mandir}/man1
|
2009-02-28 14:10:17 +01:00
|
|
|
|
2016-07-16 21:53:55 +02:00
|
|
|
%check
|
|
|
|
%if %{with tests}
|
|
|
|
%{cabal} test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2006-09-05 22:45:56 +02:00
|
|
|
%files
|
2012-01-12 16:23:29 +01:00
|
|
|
%defattr(-,root,root,-)
|
2016-07-16 21:53:55 +02:00
|
|
|
%doc LICENSE
|
|
|
|
%doc CHANGELOG.md README TODO doc examples
|
|
|
|
%{_bindir}/%{name}
|
2009-02-28 14:10:17 +01:00
|
|
|
%{_datadir}/%{name}-%{version}
|
2012-05-07 20:42:14 +02:00
|
|
|
%{_mandir}/man1/*
|
2009-02-28 14:10:17 +01:00
|
|
|
|
2006-09-05 22:45:56 +02:00
|
|
|
%changelog
|