2012-11-17 19:19:45 +01:00
|
|
|
#
|
|
|
|
# spec file for package alex
|
|
|
|
#
|
2023-03-30 19:51:31 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
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
|
|
|
%bcond_without tests
|
2012-01-12 16:23:29 +01:00
|
|
|
Name: alex
|
2023-04-06 18:14:39 +02:00
|
|
|
Version: 3.2.7.2
|
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
|
2016-09-30 10:08:45 +02:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
2015-05-02 11:33:50 +02:00
|
|
|
BuildRequires: ghc-array-devel
|
2023-03-30 10:26:17 +02:00
|
|
|
BuildRequires: ghc-array-prof
|
|
|
|
BuildRequires: ghc-base-devel
|
|
|
|
BuildRequires: ghc-base-prof
|
2015-05-02 11:33:50 +02:00
|
|
|
BuildRequires: ghc-containers-devel
|
2023-03-30 10:26:17 +02:00
|
|
|
BuildRequires: ghc-containers-prof
|
2015-05-02 11:33:50 +02:00
|
|
|
BuildRequires: ghc-directory-devel
|
2023-03-30 10:26:17 +02:00
|
|
|
BuildRequires: ghc-directory-prof
|
2013-08-01 09:58:01 +02:00
|
|
|
BuildRequires: ghc-rpm-macros
|
2020-12-19 18:47:25 +01:00
|
|
|
ExcludeArch: %{ix86}
|
2016-07-16 21:53:55 +02:00
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-process-devel
|
2023-03-30 10:26:17 +02:00
|
|
|
BuildRequires: ghc-process-prof
|
2016-07-16 21:53:55 +02:00
|
|
|
%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:09:50 +02:00
|
|
|
%autosetup
|
2006-09-05 22:45:56 +02:00
|
|
|
|
|
|
|
%build
|
2012-01-12 16:23:29 +01:00
|
|
|
%ghc_bin_build
|
2021-09-07 17:04:08 +02:00
|
|
|
|
2012-01-12 16:23:29 +01:00
|
|
|
%install
|
|
|
|
%ghc_bin_install
|
2009-02-28 14:10:17 +01:00
|
|
|
|
2016-07-16 21:53:55 +02:00
|
|
|
%check
|
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
|
2023-04-06 18:14:39 +02:00
|
|
|
%doc CHANGELOG.md README.md examples
|
2016-07-16 21:53:55 +02:00
|
|
|
%{_bindir}/%{name}
|
2018-04-02 20:44:27 +02:00
|
|
|
%dir %{_datadir}/%{name}-%{version}
|
2022-02-09 14:44:51 +01:00
|
|
|
%{_datadir}/%{name}-%{version}/AlexTemplate.hs
|
|
|
|
%{_datadir}/%{name}-%{version}/AlexWrappers.hs
|
2009-02-28 14:10:17 +01:00
|
|
|
|
2006-09-05 22:45:56 +02:00
|
|
|
%changelog
|