2012-11-17 19:19:45 +01:00
|
|
|
#
|
|
|
|
# spec file for package alex
|
|
|
|
#
|
2020-09-04 17:02:51 +02:00
|
|
|
# Copyright (c) 2019 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.
|
|
|
|
|
2018-10-18 11:46:39 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-08-01 09:58:01 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-01-01 16:27:50 +01:00
|
|
|
# Disable tests on aarch64. See: https://github.com/simonmar/alex/issues/130
|
|
|
|
%ifarch aarch64
|
2018-11-28 12:04:41 +01:00
|
|
|
%bcond_with tests
|
2020-01-01 16:27:50 +01:00
|
|
|
%else
|
|
|
|
%bcond_without tests
|
|
|
|
%endif
|
2012-01-12 16:23:29 +01:00
|
|
|
Name: alex
|
2019-11-08 03:01:54 +01:00
|
|
|
Version: 3.2.5
|
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
|
2017-08-15 15:51:05 +02:00
|
|
|
URL: https://hackage.haskell.org/package/%{name}
|
2016-07-16 21:53:55 +02:00
|
|
|
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
|
2018-05-16 15:48:46 +02:00
|
|
|
BuildRequires: autoconf
|
2016-09-30 10:08:45 +02:00
|
|
|
BuildRequires: ghc-Cabal-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
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-process-devel
|
|
|
|
%endif
|
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
|
2020-09-04 17:02:51 +02:00
|
|
|
%setup -q
|
2006-09-05 22:45:56 +02:00
|
|
|
|
|
|
|
%build
|
2012-01-12 16:23:29 +01:00
|
|
|
%ghc_bin_build
|
2018-05-16 15:48:46 +02:00
|
|
|
cd doc
|
|
|
|
test -f configure || autoreconf
|
|
|
|
# FIXME: you should use the %%configure macro
|
|
|
|
./configure
|
2006-09-05 22:45:56 +02:00
|
|
|
|
2012-01-12 16:23:29 +01:00
|
|
|
%install
|
|
|
|
%ghc_bin_install
|
2018-05-16 15:48:46 +02:00
|
|
|
mkdir -p %{buildroot}/%{_mandir}/man1
|
|
|
|
cp doc/alex.1 %{buildroot}/%{_mandir}/man1
|
2018-07-30 21:07:59 +02:00
|
|
|
rm -f doc/autom4te.cache/requests doc/config.log # varies across builds, breaking build-compare
|
2009-02-28 14:10:17 +01:00
|
|
|
|
2016-07-16 21:53:55 +02:00
|
|
|
%check
|
2018-04-02 20:44:27 +02:00
|
|
|
# Ensure that the test suite can find the alex binary.
|
|
|
|
export PATH="%{buildroot}%{_bindir}:$PATH"
|
2016-07-22 23:34:08 +02:00
|
|
|
%cabal_test
|
2016-07-16 21:53:55 +02:00
|
|
|
|
2006-09-05 22:45:56 +02:00
|
|
|
%files
|
2018-04-26 09:07:28 +02:00
|
|
|
%license LICENSE
|
2017-02-22 18:18:47 +01:00
|
|
|
%doc CHANGELOG.md README.md TODO doc examples
|
2016-07-16 21:53:55 +02:00
|
|
|
%{_bindir}/%{name}
|
2018-04-02 20:44:27 +02:00
|
|
|
%dir %{_datadir}/%{name}-%{version}
|
|
|
|
%{_datadir}/%{name}-%{version}/AlexTemplate
|
|
|
|
%{_datadir}/%{name}-%{version}/AlexTemplate-debug
|
|
|
|
%{_datadir}/%{name}-%{version}/AlexTemplate-ghc
|
|
|
|
%{_datadir}/%{name}-%{version}/AlexTemplate-ghc-debug
|
|
|
|
%{_datadir}/%{name}-%{version}/AlexTemplate-ghc-nopred
|
2018-05-16 15:48:46 +02:00
|
|
|
%{_datadir}/%{name}-%{version}
|
|
|
|
%{_mandir}/man1/*
|
2018-04-02 20:44:27 +02:00
|
|
|
%{_datadir}/%{name}-%{version}/AlexWrapper-basic
|
|
|
|
%{_datadir}/%{name}-%{version}/AlexWrapper-basic-bytestring
|
|
|
|
%{_datadir}/%{name}-%{version}/AlexWrapper-gscan
|
|
|
|
%{_datadir}/%{name}-%{version}/AlexWrapper-monad
|
|
|
|
%{_datadir}/%{name}-%{version}/AlexWrapper-monad-bytestring
|
|
|
|
%{_datadir}/%{name}-%{version}/AlexWrapper-monadUserState
|
|
|
|
%{_datadir}/%{name}-%{version}/AlexWrapper-monadUserState-bytestring
|
|
|
|
%{_datadir}/%{name}-%{version}/AlexWrapper-posn
|
|
|
|
%{_datadir}/%{name}-%{version}/AlexWrapper-posn-bytestring
|
|
|
|
%{_datadir}/%{name}-%{version}/AlexWrapper-strict-bytestring
|
2009-02-28 14:10:17 +01:00
|
|
|
|
2006-09-05 22:45:56 +02:00
|
|
|
%changelog
|