2023-01-21 09:06:33 +00:00
|
|
|
# generated by cabal-rpm-2.1.0
|
2020-06-04 11:24:45 +00:00
|
|
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
|
2014-04-21 00:46:44 +00:00
|
|
|
|
2020-02-09 13:38:16 +00:00
|
|
|
%bcond_without tests
|
2014-05-17 02:26:18 +00:00
|
|
|
|
2014-02-24 04:50:23 +00:00
|
|
|
Name: alex
|
2022-06-07 01:24:47 +00:00
|
|
|
Version: 3.2.7.1
|
2023-01-31 18:48:49 +00:00
|
|
|
Release: %autorelease
|
2014-04-21 00:46:44 +00:00
|
|
|
Summary: Tool for generating lexical analysers in Haskell
|
2014-02-24 04:50:23 +00:00
|
|
|
|
2023-01-21 09:06:33 +00:00
|
|
|
License: BSD-3-Clause
|
2015-09-17 06:56:36 +00:00
|
|
|
Url: https://hackage.haskell.org/package/%{name}
|
2018-10-22 09:16:04 +00:00
|
|
|
# Begin cabal-rpm sources:
|
2015-09-17 06:56:36 +00:00
|
|
|
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
|
2018-10-22 09:16:04 +00:00
|
|
|
# End cabal-rpm sources
|
2014-04-21 00:46:44 +00:00
|
|
|
|
2019-02-26 17:36:18 +00:00
|
|
|
# Begin cabal-rpm deps:
|
2014-02-24 04:50:23 +00:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
BuildRequires: ghc-rpm-macros
|
2023-01-21 09:06:33 +00:00
|
|
|
BuildRequires: ghc-array-devel
|
|
|
|
BuildRequires: ghc-base-devel
|
|
|
|
BuildRequires: ghc-containers-devel
|
|
|
|
BuildRequires: ghc-directory-devel
|
2014-05-17 02:26:18 +00:00
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-process-devel
|
|
|
|
%endif
|
2014-04-21 00:46:44 +00:00
|
|
|
# End cabal-rpm deps
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: docbook-style-xsl
|
2018-07-01 11:37:12 +00:00
|
|
|
BuildRequires: make
|
2014-04-21 00:46:44 +00:00
|
|
|
BuildRequires: libxslt
|
2014-02-24 04:50:23 +00:00
|
|
|
|
|
|
|
%description
|
2014-04-21 00:46:44 +00: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++.
|
2014-02-24 04:50:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2019-02-26 17:36:18 +00:00
|
|
|
# Begin cabal-rpm setup:
|
2014-02-24 04:50:23 +00:00
|
|
|
%setup -q
|
2019-02-26 17:36:18 +00:00
|
|
|
# End cabal-rpm setup
|
2014-08-03 14:40:00 +00:00
|
|
|
|
2014-02-24 04:50:23 +00:00
|
|
|
|
|
|
|
%build
|
2019-02-26 17:36:18 +00:00
|
|
|
# Begin cabal-rpm build:
|
2014-02-24 04:50:23 +00:00
|
|
|
%ghc_bin_build
|
2019-02-26 17:36:18 +00:00
|
|
|
# End cabal-rpm build
|
2014-02-24 04:50:23 +00:00
|
|
|
cd doc
|
|
|
|
autoreconf
|
|
|
|
./configure --prefix=%{_prefix} --libdir=%{_libdir}
|
|
|
|
make html
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
2019-02-26 17:36:18 +00:00
|
|
|
# Begin cabal-rpm install
|
2014-02-24 04:50:23 +00:00
|
|
|
%ghc_bin_install
|
2019-02-26 17:36:18 +00:00
|
|
|
# End cabal-rpm install
|
2016-06-23 02:25:47 +00:00
|
|
|
install -D -m 0644 doc/alex.1 %{buildroot}%{_mandir}/man1/alex.1
|
|
|
|
|
2014-02-24 04:50:23 +00:00
|
|
|
|
2014-05-17 02:26:18 +00:00
|
|
|
%check
|
2021-06-11 11:23:04 +00:00
|
|
|
%if %{with tests}
|
2016-09-27 10:11:07 +00:00
|
|
|
%cabal_test
|
2021-06-11 11:23:04 +00:00
|
|
|
%endif
|
2014-05-17 02:26:18 +00:00
|
|
|
|
|
|
|
|
2014-02-24 04:50:23 +00:00
|
|
|
%files
|
2018-10-22 09:16:04 +00:00
|
|
|
# Begin cabal-rpm files:
|
2015-09-17 06:56:36 +00:00
|
|
|
%license LICENSE
|
2018-07-22 13:40:43 +00:00
|
|
|
%doc CHANGELOG.md README.md TODO examples
|
2014-02-24 04:50:23 +00:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/%{name}-%{version}
|
2018-10-22 09:16:04 +00:00
|
|
|
# End cabal-rpm files
|
2018-07-22 13:40:43 +00:00
|
|
|
%doc doc/alex
|
2016-06-23 02:25:47 +00:00
|
|
|
%{_mandir}/man1/alex.1*
|
2014-12-03 10:40:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-01-31 18:48:49 +00:00
|
|
|
%autochangelog
|