diff options
Diffstat (limited to 'alex.spec')
-rw-r--r-- | alex.spec | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/alex.spec b/alex.spec new file mode 100644 index 0000000..236fe9e --- /dev/null +++ b/alex.spec @@ -0,0 +1,54 @@ +%bcond_without tests + +Name: alex +Version: 3.2.7.4 +Release: 1 +Summary: Alex is a tool for generating lexical analysers in Haskell +License: BSD-3-Clause +URL: https://hackage.haskell.org/package/%{name} +Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-array-devel +BuildRequires: ghc-array-prof +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-containers-devel +BuildRequires: ghc-containers-prof +BuildRequires: ghc-directory-devel +BuildRequires: ghc-directory-prof +BuildRequires: ghc-rpm-macros +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-process-devel +BuildRequires: ghc-process-prof +%endif + +%description +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 +%autosetup + +%build +%ghc_bin_build + +%install +%ghc_bin_install + +%check +%cabal_test + +%files +%license LICENSE +%doc CHANGELOG.md README.md examples +%{_bindir}/%{name} +%dir %{_datadir}/%{name}-%{version} +%{_datadir}/%{name}-%{version}/AlexTemplate.hs +%{_datadir}/%{name}-%{version}/AlexWrappers.hs + +%changelog +* Tue Aug 22 2023 Lin Runze <lrzlin@163.com> 3.2.7.4-1 +- Initial packaging (Version 3.2.7.4) |