Compare commits
110 Commits
Author | SHA256 | Date | |
---|---|---|---|
43735285c8 | |||
a44184c80c | |||
4e775727ac | |||
bf8fa11603 | |||
01d125db0b | |||
0ee1e245fb | |||
433f2d8550 | |||
0b8759d74f | |||
34aaeb84bf | |||
c171ab6e87 | |||
6965c8b561 | |||
c26a12b048 | |||
b91e78f983 | |||
481435e981 | |||
55380498a2 | |||
a79b7d5a0e | |||
9b424c3c0d | |||
d2b78de5d0 | |||
a11ef3fc20 | |||
7b70309afb | |||
0259e55d6e | |||
c478806365 | |||
e79b9b351b | |||
be678c1123 | |||
523ef8a2cd | |||
00848dd2b6 | |||
96b8ffc1c9 | |||
d39cff7e12 | |||
e56cdbea47 | |||
0c1296c94a | |||
4cd6170b51 | |||
e354392fa3 | |||
3c1ff48506 | |||
456669f32c | |||
c1b06b28aa | |||
6cf322787c | |||
18f662c481 | |||
9bd37f3fe5 | |||
18efe92a21 | |||
72da87c6b6 | |||
1f228aa0c7 | |||
bcd85e3af1 | |||
a1c145da66 | |||
32372eb3a9 | |||
10df2561ef | |||
725f961105 | |||
3642835492 | |||
13accab949 | |||
3cb5a3a719 | |||
1de2ffe04c | |||
6bf90ea68a | |||
b21f6cb55f | |||
69c02cd32b | |||
2dbeaa588a | |||
9fede69d94 | |||
e9a9b49f4a | |||
187dbfb763 | |||
eaff2581ad | |||
8b1a326339 | |||
a732e51fea | |||
cdb70a31fd | |||
a1ffe1a9c2 | |||
6c9e1803ba | |||
96cbf7e803 | |||
0f99e17a49 | |||
89f0f2e759 | |||
8fbb5d563e | |||
65ceb1f7f2 | |||
e8a0d6381c | |||
6dd1987f71 | |||
125acfc84f | |||
cbdff6908a | |||
a1e56a96cf | |||
5136889437 | |||
671a74b869 | |||
df3b284786 | |||
6fd4a83489 | |||
671b27fd34 | |||
60d5bdb3eb | |||
bfe04dcc86 | |||
a0bc4ba72b | |||
66d3844df9 | |||
2e1fb4d2a7 | |||
d554db873a | |||
dafaa616f0 | |||
993c061904 | |||
2d171a9e4e | |||
32ff3c6f02 | |||
d942f9791d | |||
31fc6deb21 | |||
e6d3ff3d55 | |||
405cc446ec | |||
b05fcd0655 | |||
|
e3a67d774a | ||
0aba86db09 | |||
|
df2d442e13 | ||
|
13fd05b10c | ||
8bc98c2e80 | |||
|
083ef914c6 | ||
|
e3b51bfe92 | ||
|
37d2662c09 | ||
|
2258eaaac7 | ||
|
d6289f5170 | ||
|
b0b3fdd775 | ||
|
872f555f28 | ||
|
d35e08c6d4 | ||
|
62371f049a | ||
|
823d82b96f | ||
|
f15d3ba0a0 | ||
|
85cdfae461 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:195fa390380fb8776084175e6d2c1581312b8ce4e7747171c716a5c5c0aebfb8
|
||||
size 63480
|
3
alex-3.5.1.0.tar.gz
Normal file
3
alex-3.5.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c92efe86f8eb959ee03be6c04ee57ebc7e4abc75a6c4b26551215d7443e92a07
|
||||
size 85982
|
406
alex.changes
406
alex.changes
@@ -1,5 +1,407 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 4 20:26:44 UTC 2009 - herbert@graeber-clan.de
|
||||
Thu Feb 29 13:15:15 UTC 2024 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- use java-1_6_0-openjdk for 11.0 and above, java-1_5_0-sun else
|
||||
- Update alex to version 3.5.1.0.
|
||||
## Changes in 3.5.1.0
|
||||
|
||||
* Drop generating output for GHC < 6.4.
|
||||
* Use qualified imports in generated code (except for `Prelude`)
|
||||
([Issue #258](https://github.com/haskell/alex/issues/258)).
|
||||
* Suppress warnings `tabs` and `unused-imports` for generated code
|
||||
([Issue #255](https://github.com/haskell/alex/issues/255)).
|
||||
* Tested with GHC 8.0 - 9.8.2.
|
||||
|
||||
_Andreas Abel, 2024-02-29_
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 30 15:01:39 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update alex to version 3.5.0.0.
|
||||
## Changes in 3.5.0.0
|
||||
|
||||
* Add option `--numeric-version`.
|
||||
* Remove deprecated `-v` as alias for `--version`.
|
||||
* Add `-v` as placeholder for a future `--verbose` option.
|
||||
* Make `alex{G,S}etUserState` available with the `monadUserState-bytestring` wrapper
|
||||
([Issue #220](https://github.com/haskell/alex/issues/220)).
|
||||
* Debugging lexer: print character in addition to its ASCII code
|
||||
([PR #252](https://github.com/haskell/alex/pull/252)).
|
||||
* Tested with GHC 8.0 - 9.8.1.
|
||||
|
||||
_Andreas Abel, 2023-12-30_
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 29 08:11:28 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update alex to version 3.4.0.1.
|
||||
## Changes in 3.4.0.1
|
||||
|
||||
* Address new `x-partial` warning of GHC 9.8.
|
||||
* Alex 3.4.0.1 needs GHC 8.0 or higher to build.
|
||||
The code it generates is the same as 3.4.0.0, so it will likely work for older GHCs.
|
||||
* Tested with GHC 8.0 - 9.8.1.
|
||||
|
||||
_Andreas Abel, 2023-10-29_
|
||||
|
||||
## Changes in 3.4.0.0
|
||||
|
||||
* New wrappers to lex strict `Text`:
|
||||
`strict-text`, `posn-strict-text`, `monad-strict-text` and `monadUserState-strict-text`
|
||||
(PR [#240](https://github.com/haskell/alex/pull/240)).
|
||||
These complement the existing wrappers for `String` and `ByteString`.
|
||||
* Tested with GHC 7.0 - 9.6.2.
|
||||
|
||||
_Andreas Abel, 2023-06-20_
|
||||
|
||||
## Changes in 3.3.0.0
|
||||
|
||||
* Add an `Ord` instance to `AlexPosn` (Issue [#233](https://github.com/haskell/alex/issues/233)).
|
||||
This breaks developments that define their own (orphan) `instance Ord AlexPosn`.
|
||||
If this is the derived stock instance, the fix is to delete the orphan instance and require
|
||||
`build-tool-depends: alex:alex >= 3.3.0.0`.
|
||||
* Switch to Haskell PVP versioning with four digits.
|
||||
* Tested with GHC 7.0 - 9.6.1.
|
||||
|
||||
_Andreas Abel, 2023-05-25_
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 2 09:42:48 UTC 2023 - Andreas Schwab <schwab@suse.de>
|
||||
|
||||
- Drop constraints for riscv64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 2 06:58:58 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update alex to version 3.2.7.4.
|
||||
## Change in 3.2.7.4
|
||||
|
||||
* The user-supplied "epilogue" Haskell code is now put _last_ in the generated file.
|
||||
This enables use of Template Haskell in the epilogue.
|
||||
(Issue [#125](https://github.com/haskell/alex/issues/125).)
|
||||
* Tested with GHC 7.0 - 9.6.1.
|
||||
|
||||
_Andreas Abel, 2023-05-02_
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 14 05:54:54 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update alex to version 3.2.7.3.
|
||||
## Change in 3.2.7.3
|
||||
|
||||
* Amend last change (3.2.7.2)
|
||||
so that Alex-generated code does not need `LANGUAGE PatternGuards`.
|
||||
* Tested with GHC 7.0 - 9.6.1.
|
||||
|
||||
_Andreas Abel, 2023-04-14_
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- Updated spec file to conform with ghc-rpm-macros-2.5.2.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 23 23:20:45 UTC 2022 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update alex to version 3.2.7.1.
|
||||
## Change in 3.2.7.1
|
||||
|
||||
* Fix bug with repeated numeral characters *outside* of `r{n,m}`
|
||||
repetitions. This was a regression introduced in 3.2.7.
|
||||
|
||||
## Changes in 3.2.7
|
||||
|
||||
* Allow arbitrary repetitions in regexps.
|
||||
Previously, the `r{n,m}` and related forms were restricted to single
|
||||
digit numbers `n` and `m`.
|
||||
|
||||
* DFA minimization used to crash on tokens of the form `c*` which
|
||||
produce automata with only accepting states. Considering the empty
|
||||
set of non-accepting states as an equivalence class caused
|
||||
minimization to crash with exception.
|
||||
|
||||
* The `small_base` flag is removed. Extremely old GHCs will no longer
|
||||
build.
|
||||
|
||||
* A number of bug fixes and clearer diagnostics.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 7 18:43:27 UTC 2021 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||
|
||||
- make rpmlint happy
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||
|
||||
- disable %{ix86} build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 15 16:30:27 UTC 2020 - psimons@suse.com
|
||||
|
||||
- Update alex to version 3.2.6.
|
||||
## Changes in 3.2.6:
|
||||
|
||||
* Support for the GHC 9.2.
|
||||
|
||||
The array access primops now use the fixed-sized numeric types
|
||||
corresponding to the width of the data accessed. Additionally, the
|
||||
primops to convert to and from fixed-sized numeric types have been
|
||||
given new names.
|
||||
|
||||
9.2 isn't cut yet, so these changes are somewhat speculative.
|
||||
Unfortunately, GHC must used a released version of Alex (and Happy)
|
||||
at all times until further changes have been made, so we must make
|
||||
the release to actually implement these changes in GHC.
|
||||
|
||||
If the final GHC 9.2 ends up being different, this release will be
|
||||
marked broken to make it less likely people use it by accident.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 21 12:51:40 UTC 2020 - Andreas Schwab <schwab@suse.de>
|
||||
|
||||
- Add memory constraints for riscv64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 18 10:43:42 UTC 2020 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Replace %setup -q with the more modern %autosetup macro.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 16 11:13:34 UTC 2020 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Re-generate file with latest version of spec-cleaner.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 7 06:42:07 UTC 2019 - psimons@suse.com
|
||||
|
||||
- Drop obsolete group attributes.
|
||||
|
||||
- Update alex to version 3.2.5.
|
||||
* Build fixes for GHC 8.8.x. This allows us to run the test
|
||||
suite again.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 28 10:15:25 UTC 2018 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Disable tests on aarch64 as they are broken.
|
||||
See: https://github.com/simonmar/alex/issues/130
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 20 11:31:04 UTC 2018 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Use https URL to refer to bugs.opensuse.org.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 30 03:30:56 UTC 2018 - bwiedemann@suse.com
|
||||
|
||||
- Drop config.log from doc to fix build-compare
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 18 14:26:08 UTC 2018 - psimons@suse.com
|
||||
|
||||
- Cosmetic: replace tabs with blanks, strip trailing white space,
|
||||
and update copyright headers with spec-cleaner.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 5 16:50:43 UTC 2018 - psimons@suse.com
|
||||
|
||||
- Run the test suite by default.
|
||||
- Build and install the man page and the documentation.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 14 17:02:11 UTC 2018 - psimons@suse.com
|
||||
|
||||
- Update alex to version 3.2.4.
|
||||
* Remove dependency on QuickCheck
|
||||
* Change the way that bootstrapping is done: see README.md for build
|
||||
instructions
|
||||
* fix issue when using cpphs (#116)
|
||||
* Manage line length in generated files [GH-84]
|
||||
* Fix issue when identifier with multiple single quotes, e.g. `foo''` was used
|
||||
* Allow omitting spaces around `=` in macro definitions
|
||||
* Include pre-generated Parser.hs and Scan.hs in the Hackage upload, to
|
||||
make bootstrapping easier.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 9 12:59:47 UTC 2017 - bwiedemann@suse.com
|
||||
|
||||
- Drop autom4te.cache/requests from doc to fix build-compare
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com
|
||||
|
||||
- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 29 18:32:34 UTC 2017 - psimons@suse.com
|
||||
|
||||
- Update to version 3.2.1 revision 1 with cabal2obs.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 12 14:17:48 UTC 2017 - psimons@suse.com
|
||||
|
||||
- Update to version 3.2.1 with cabal2obs.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 10 17:07:27 UTC 2016 - psimons@suse.com
|
||||
|
||||
- Update to version 3.1.7 revision 0 with cabal2obs.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 11 07:22:38 UTC 2016 - mimi.vx@gmail.com
|
||||
|
||||
- update to 3.1.7
|
||||
* Add support for %encoding directive (allows to control --latin1 from inside
|
||||
Alex scripts)
|
||||
* Make code forward-compatible with in-progress proposals
|
||||
* Suppress more warnings
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 7 10:19:36 UTC 2015 - mimi.vx@gmail.com
|
||||
|
||||
- update to 3.1.6
|
||||
* drop dependency on happy
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 29 17:05:31 UTC 2015 - mimi.vx@gmail.com
|
||||
|
||||
- update to 3.1.5
|
||||
- drop alex-3.1.4-ghc-7.10.patch, merged by upstream
|
||||
* Generate less warning-laden code, and suppress other warnings.
|
||||
* Bug fixes.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 13 09:19:35 UTC 2015 - mimi.vx@gmail.com
|
||||
|
||||
- add alex-3.1.4-ghc-7.10.patch
|
||||
* temporary disable tests
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 10 13:35:55 UTC 2015 - mimi.vx@gmail.com
|
||||
|
||||
- update to 3.1.4
|
||||
* Add Applicative/Functor instances for GHC 7.10
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 8 20:08:49 UTC 2014 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- update to 3.1.3
|
||||
* fix ghc 7.8 builds
|
||||
* needed by Haskell Platform 2014.2.0.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 2 01:17:20 UTC 2014 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- package examples
|
||||
- cleanup spec file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 22 23:46:53 UTC 2014 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- enable PowerPC builds
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 7 14:03:17 UTC 2013 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- update to 3.0.5 from upstream
|
||||
* performance improvement with certain grammars ~30%
|
||||
- part of Haskell Platform 2013.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 17 13:46:06 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- service localonly for Factory submission
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 1 19:01:07 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- update to 3.0.2 from upstream
|
||||
- needed by Haskell Platform 2012.4.0.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 4 06:59:04 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- update to 3.0.1 from upstream
|
||||
* Unicode support (contributed mostly by Jean-Philippe Bernardy,
|
||||
with help from Alan Zimmerman).
|
||||
|
||||
* An Alex lexer now takes a UTF-8 encoded byte sequence as input
|
||||
(see Section 5.1, “Unicode and UTF-8”. If you are using the
|
||||
"basic" wrapper or one of the other wrappers that takes a
|
||||
Haskell String as input, the string is automatically encoded
|
||||
into UTF-8 by Alex. If your input is a ByteString, you are
|
||||
responsible for ensuring that the input is UTF-8 encoded. The
|
||||
old 8-bit behaviour is still available via the --latin1
|
||||
option.
|
||||
|
||||
* Alex source files are asumed to be in UTF-8, like Haskell
|
||||
source files. The lexer specification can use Unicode
|
||||
characters and ranges.
|
||||
|
||||
* alexGetChar is renamed to alexGetByte in the generated code.
|
||||
|
||||
* There is a new option, --latin1, that restores the old
|
||||
behaviour.
|
||||
|
||||
* Alex now does DFA minimization, which helps to reduce the size
|
||||
of the generated tables, especially for lexers that use Unicode.
|
||||
- dropped patch alex-2.3.5-generate-man-page.patch
|
||||
- required by Haskell Platform 2012.2.0.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 7 18:40:00 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- add patch to enable man page generation
|
||||
- generate, install and package man page alex.1
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 29 11:47:39 UTC 2011 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- Clean up install section
|
||||
- Add three word to description to make rpmlint happier
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 28 20:47:31 UTC 2011 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- Adjusted version for platform 2011.4
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 10 16:48:35 UTC 2011 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- Added /usr/share/alex-3.0.1 files
|
||||
- Fixed file owner
|
||||
- Deleted additional LICENSE file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 5 09:04:47 UTC 2011 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- Added QuickCheck BR
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 19 21:44:36 UTC 2011 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- enabled i586 build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 11 19:50:28 UTC 2011 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- created new package
|
||||
|
194
alex.spec
194
alex.spec
@@ -1,157 +1,69 @@
|
||||
#
|
||||
# spec file for package ghc-X11
|
||||
#
|
||||
# Copyright (c) 2005-2009 Herbert Graeber
|
||||
#
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
# ghc does not emit debug information
|
||||
%global debug_package %{nil}
|
||||
#
|
||||
# spec file for package alex
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# 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.
|
||||
|
||||
Name: alex
|
||||
Version: 2.3.1
|
||||
Release: 0
|
||||
Summary: The lexer generator for Haskell
|
||||
Group: Development/Languages/Haskell
|
||||
License: BSD3
|
||||
URL: http://www.haskell.org/alex/
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
Requires: licenses
|
||||
BuildRequires: ghc
|
||||
BuildRequires: libxslt
|
||||
BuildRequires: sgml-skel
|
||||
BuildRequires: docbook-xsl-stylesheets
|
||||
BuildRequires: docbook-utils
|
||||
BuildRequires: fop
|
||||
%if 0%{?suse_version} >= 1100
|
||||
BuildRequires: java-1_6_0-openjdk
|
||||
%else
|
||||
BuildRequires: java-1_5_0-sun
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%bcond_without tests
|
||||
Name: alex
|
||||
Version: 3.5.1.0
|
||||
Release: 0
|
||||
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
|
||||
BuildRequires: licenses
|
||||
Prefix: /usr
|
||||
|
||||
%description
|
||||
Alex is a tool for generating lexical analysers in Haskell, given a
|
||||
description of the tokens to be recognised in the form of regular
|
||||
expressions. It is similar to the tool 'lex' or 'flex' for C/C++.
|
||||
|
||||
|
||||
%package doc
|
||||
Summary: Alex Documentation
|
||||
Group: Development/Languages/Haskell
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description doc
|
||||
Alex is a tool for generating lexical analysers in Haskell, given a
|
||||
description of the tokens to be recognised in the form of regular
|
||||
expressions. It is similar to the tool 'lex' or 'flex' for C/C++.
|
||||
|
||||
This is the documentation for Alex, a lexical analyser generator for Haskell.
|
||||
|
||||
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
|
||||
%setup -q
|
||||
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
%cabal_configure --docdir=%{_docdir}/alex
|
||||
%cabal build
|
||||
pushd doc
|
||||
autoreconf
|
||||
./configure --prefix=%{_prefix} --libdir=%{_libdir}
|
||||
make html pdf
|
||||
popd
|
||||
%ghc_bin_build
|
||||
|
||||
%install
|
||||
%cabal_install
|
||||
mkdir -p %{buildroot}%{_mandir}/man1
|
||||
sed '
|
||||
s|/@VERSION@|%{version}|
|
||||
s|@DOCDIR@|%{_datadir}/doc/%{name}|
|
||||
s|@DATADIR@|%{_datadir}/alex|
|
||||
' < doc/alex.1.in | gzip >%{buildroot}%{_mandir}/man1/%{name}.1.gz
|
||||
mkdir -p %{buildroot}%{_datadir}/doc/%{name}
|
||||
cp -r doc/%{name} %{buildroot}%{_datadir}/doc/%{name}/html
|
||||
cp -r doc/%{name}.pdf %{buildroot}%{_datadir}/doc/%{name}
|
||||
for FILE in LICENSE ; do
|
||||
MD5SUM=$(md5sum $FILE | sed 's/ .*//')
|
||||
if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then
|
||||
ln -sf /usr/share/doc/licenses/md5/$MD5SUM $FILE
|
||||
fi
|
||||
done
|
||||
%ghc_bin_install
|
||||
|
||||
%check
|
||||
%cabal_test
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc ANNOUNCE LICENSE README TODO examples
|
||||
%doc %{_mandir}/man1/%{name}.1.gz
|
||||
%license LICENSE
|
||||
%doc CHANGELOG.md README.md examples
|
||||
%{_bindir}/%{name}
|
||||
%{_datadir}/%{name}-%{version}
|
||||
|
||||
|
||||
%files doc
|
||||
%defattr (-,root, root)
|
||||
%{_datadir}/doc/%{name}
|
||||
|
||||
%dir %{_datadir}/%{name}-%{version}
|
||||
%{_datadir}/%{name}-%{version}/AlexTemplate.hs
|
||||
%{_datadir}/%{name}-%{version}/AlexWrappers.hs
|
||||
|
||||
%changelog
|
||||
* Thu Apr 17 2009 Herbert Graeber <herbert@links2linux.de> - 2.3.1
|
||||
- Add man page
|
||||
- Save HTML data only, not Makfile, etc.
|
||||
- Add pdf file of documentation
|
||||
|
||||
* Thu Apr 16 2009 Herbert Graeber <herbert@links2linux.de> - 2.3.1
|
||||
- Fix location of documentation
|
||||
|
||||
* Sat Feb 28 2009 Herbert Graeber <herbert@links2linux.de> - 2.3.1
|
||||
- Changed to haskell packaging conventions
|
||||
|
||||
* Wed Dec 4 2008 Herbert Graeber <herbert@links2linux.de> 2.3.1
|
||||
- Update to version 2.3.1
|
||||
|
||||
* Wed Oct 29 2008 Herbert Graeber <herbert@links2linux.de> 2.3
|
||||
- Update to version 2.3
|
||||
|
||||
* Thu Nov 15 2007 Herbert Graeber <herbert@links2linux.de> 2.2.0
|
||||
- Update to version 2.2.0
|
||||
* Cabal 1.2 is now required.
|
||||
* ByteString wrappers: use Alex to lex ByteStrings directly.
|
||||
- Use shared license file
|
||||
|
||||
* Thu Jan 18 2007 Herbert Graeber <herbert@links2linux.de>A 2.1.0
|
||||
- Update to version 2.1.0
|
||||
|
||||
* Wed Sep 06 2006 Herbert Graeber <herbert@links2linux.de>
|
||||
- Haddock isn't needed for build
|
||||
|
||||
* Mon Sep 04 2006 Herbert Graeber <herbert@links2linux.de>
|
||||
- Use docbook-utils for html documentation
|
||||
- Require sgml-skel for build
|
||||
|
||||
* Tue Aug 29 2006 - Herbert Graeber <herbert@links2linux.de>
|
||||
- Disabled ps documentation (no fop without java)
|
||||
|
||||
* Mon Aug 28 2006 - Herbert Graeber <herbert@links2linux.de>
|
||||
- Enabled full documentation build
|
||||
|
||||
* Mon Aug 28 2006 - Herbert Graeber <herbert@links2linux.de>
|
||||
- Move to the SUSE Build Service
|
||||
- Disabled extended documentation for the first build
|
||||
|
||||
* Thu Apr 20 2006 - Herbert Graeber <herbert@links2linux.de>
|
||||
- Rebuild with GHC 6.4.2
|
||||
|
||||
* Wed Sep 21 2005 - Herbert Graeber <herbert@links2linux.de>
|
||||
- Recompiled with ghc 6.4.1
|
||||
|
||||
* Wed Apr 20 2005 - Herbert Graeber <herbert@links2linux.de>
|
||||
- Changes for x86_64
|
||||
|
||||
* Thu Apr 07 2005 - Herbert Graeber <herbert@links2linux.de>
|
||||
- update to version 2.0.1 for ghc 6.4 compatibility
|
||||
|
Reference in New Issue
Block a user