Accepting request 1077763 from devel:languages:haskell

version update

OBS-URL: https://build.opensuse.org/request/show/1077763
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/alex?expand=0&rev=31
This commit is contained in:
Dominique Leuenberger 2023-04-07 16:16:40 +00:00 committed by Git OBS Bridge
commit 4b924c4917
4 changed files with 28 additions and 29 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9bd2f1a27e8f1b2ffdb5b2fbd3ed82b6f0e85191459a1b24ffcbef4e68a81bec
size 108229

3
alex-3.2.7.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bede87b8ca5bbe940fa50b5e4bf9ff32c62c9ec37dc85963e08a1b6c63c2ce13
size 85450

View File

@ -1,3 +1,23 @@
-------------------------------------------------------------------
Mon Apr 3 21:20:37 UTC 2023 - Peter Simons <psimons@suse.com>
- Update alex to version 3.2.7.2.
* Fix bug with out-of-bound access to `alex_check` array.
(Surfaced with GHC's JS backend, fixed by Sylvain Henry in
PR [#223](https://github.com/haskell/alex/pull/223).)
* Upstream dropped installable documentation and man pages. The
documentation can now be found at these locations:
- Online (HTML): https://haskell-alex.readthedocs.io
- PDF: https://haskell-alex.readthedocs.io/_/downloads/en/latest/pdf/
- Downloadable HTML: https://haskell-alex.readthedocs.io/_/downloads/en/latest/htmlzip/
* Re-enabled the test suite for aarch64. The underlying issue
https://github.com/simonmar/alex/issues/130 was closed by
upstream.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Mar 30 17:05:37 UTC 2023 - Peter Simons <psimons@suse.com> Thu Mar 30 17:05:37 UTC 2023 - Peter Simons <psimons@suse.com>
@ -31,13 +51,13 @@ Sun Jan 23 23:20:45 UTC 2022 - Peter Simons <psimons@suse.com>
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Sep 7 18:43:27 UTC 2021 - Ondřej Súkup <mimi.vx@gmail.com> Tue Sep 7 18:43:27 UTC 2021 - Ondřej Súkup <mimi.vx@gmail.com>
- make rpmlint happy - make rpmlint happy
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com> Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
- disable %{ix86} build - disable %{ix86} build
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Dec 15 16:30:27 UTC 2020 - psimons@suse.com Tue Dec 15 16:30:27 UTC 2020 - psimons@suse.com

View File

@ -16,20 +16,14 @@
# #
# Disable tests on aarch64. See: https://github.com/simonmar/alex/issues/130
%ifarch aarch64
%bcond_with tests
%else
%bcond_without tests %bcond_without tests
%endif
Name: alex Name: alex
Version: 3.2.7.1 Version: 3.2.7.2
Release: 0 Release: 0
Summary: Alex is a tool for generating lexical analysers in Haskell Summary: Alex is a tool for generating lexical analysers in Haskell
License: BSD-3-Clause License: BSD-3-Clause
URL: https://hackage.haskell.org/package/%{name} URL: https://hackage.haskell.org/package/%{name}
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: ghc-Cabal-devel BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-array-devel BuildRequires: ghc-array-devel
BuildRequires: ghc-array-prof BuildRequires: ghc-array-prof
@ -57,34 +51,19 @@ lex or flex for C/C++.
%build %build
%ghc_bin_build %ghc_bin_build
chmod a-x TODO *.md
chmod a-x ./doc/*
chmod a-x ./examples/*
cd doc
test -f configure || autoreconf
# FIXME: you should use the %%configure macro
./configure
%install %install
%ghc_bin_install %ghc_bin_install
mkdir -p %{buildroot}/%{_mandir}/man1
cp doc/alex.1 %{buildroot}/%{_mandir}/man1
rm -f doc/autom4te.cache/requests doc/config.log # varies across builds, breaking build-compare
%check %check
# Ensure that the test suite can find the alex binary.
export PATH="%{buildroot}%{_bindir}:$PATH"
%cabal_test %cabal_test
%files %files
%license LICENSE %license LICENSE
%doc CHANGELOG.md README.md TODO doc examples %doc CHANGELOG.md README.md examples
%{_bindir}/%{name} %{_bindir}/%{name}
%dir %{_datadir}/%{name}-%{version} %dir %{_datadir}/%{name}-%{version}
%{_datadir}/%{name}-%{version}/AlexTemplate.hs %{_datadir}/%{name}-%{version}/AlexTemplate.hs
%{_datadir}/%{name}-%{version}/AlexWrappers.hs %{_datadir}/%{name}-%{version}/AlexWrappers.hs
%{_datadir}/%{name}-%{version}
%{_mandir}/man1/*
%changelog %changelog