alex/alex.spec

83 lines
1.8 KiB
RPMSpec
Raw Normal View History

# 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
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
License: BSD-3-Clause
2015-09-17 06:56:36 +00:00
Url: https://hackage.haskell.org/package/%{name}
# Begin cabal-rpm sources:
2015-09-17 06:56:36 +00:00
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
# End cabal-rpm sources
2014-04-21 00:46:44 +00:00
2019-02-26 17:36:18 +00:00
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
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
%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++.
%prep
2019-02-26 17:36:18 +00:00
# Begin cabal-rpm setup:
%setup -q
2019-02-26 17:36:18 +00:00
# End cabal-rpm setup
2014-08-03 14:40:00 +00:00
%build
2019-02-26 17:36:18 +00:00
# Begin cabal-rpm build:
%ghc_bin_build
2019-02-26 17:36:18 +00:00
# End cabal-rpm build
cd doc
autoreconf
./configure --prefix=%{_prefix} --libdir=%{_libdir}
make html
cd ..
%install
2019-02-26 17:36:18 +00:00
# Begin cabal-rpm install
%ghc_bin_install
2019-02-26 17:36:18 +00:00
# End cabal-rpm install
install -D -m 0644 doc/alex.1 %{buildroot}%{_mandir}/man1/alex.1
2014-05-17 02:26:18 +00:00
%check
2021-06-11 11:23:04 +00:00
%if %{with tests}
%cabal_test
2021-06-11 11:23:04 +00:00
%endif
2014-05-17 02:26:18 +00:00
%files
# 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
%{_bindir}/%{name}
%{_datadir}/%{name}-%{version}
# End cabal-rpm files
2018-07-22 13:40:43 +00:00
%doc doc/alex
%{_mandir}/man1/alex.1*
%changelog
2023-01-31 18:48:49 +00:00
%autochangelog