Compare commits
96 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 83c39be759 | |||
| d2072c7569 | |||
| 5c961f0ad3 | |||
| 6947578fe8 | |||
| d8896432f1 | |||
| b4c04f6f61 | |||
| c0130cab76 | |||
| a3cd54cb10 | |||
| 022b226d2e | |||
| 64066fbe33 | |||
| b068e9490f | |||
| 4c4ea7f090 | |||
| 456bc8dcc4 | |||
| 9890d7ef19 | |||
| 6e816e51ed | |||
| 39c72296a5 | |||
| d25fa55037 | |||
| 45311f6fc5 | |||
| 1c00c04f80 | |||
| 8f85ff04a2 | |||
| fb27baa600 | |||
| 2af50af676 | |||
| 8504c7f4d7 | |||
| c5f602484c | |||
| 4f2c106c0f | |||
| 746305c62f | |||
| 537b5fa993 | |||
| 0465015d35 | |||
| 48a5d9a6c1 | |||
| 691892fad2 | |||
| ea26fbcf8a | |||
| 4d3d60d3d2 | |||
| 8dfd4f385d | |||
| f37f3ed2ad | |||
| 49601c1e3c | |||
| 608f63f3d6 | |||
| df70800041 | |||
| 39d2b6824c | |||
| f876e3d87e | |||
| 7ffce04a58 | |||
| 661c5a24fa | |||
| 07482fd066 | |||
| f359bc39d8 | |||
| d468f19b9d | |||
| 85e19d1766 | |||
| 1ff1dceec5 | |||
| 9d12f9a7f7 | |||
| d47fce239d | |||
| 5d33e11e84 | |||
| 3b4b51c881 | |||
| 8890d2cc0a | |||
| 7a60fce691 | |||
| e739de511f | |||
| 1757b8071f | |||
| e640c1cc71 | |||
| 6ad7342aa1 | |||
| f074d4b2a4 | |||
| 6666c799e2 | |||
| 31c88d44b0 | |||
| 17af7d94d0 | |||
| 5a3af8fe79 | |||
| 6af3cc334d | |||
| b37f4b7859 | |||
| 87893fc722 | |||
| 92f564d306 | |||
| d8ea646870 | |||
| db70ec1a8f | |||
| 3c8f2d8438 | |||
| 6a5844150b | |||
| 1f7ba5f0a7 | |||
| 76e7fef6f4 | |||
| 7f97517006 | |||
| e3684881eb | |||
|
|
a4e563bc9a | ||
| ca68015587 | |||
|
|
9292cd7a9c | ||
|
|
e52b76b436 | ||
| 1ebfd465a6 | |||
|
|
8fb8e57931 | ||
|
|
316a681a47 | ||
| acd9faefea | |||
|
|
4e9540ff63 | ||
|
|
25b1061ce0 | ||
|
|
0b63fdb3ee | ||
|
|
0e675693b7 | ||
|
|
b79d086e66 | ||
|
|
376ae775bc | ||
|
|
d618352f4d | ||
|
|
2a78f7dbdd | ||
|
|
0eb1130472 | ||
|
|
b9c610a087 | ||
|
|
c955edb11b | ||
|
|
db0dd5d8f0 | ||
|
|
c07b004f94 | ||
|
|
3acbccee64 | ||
|
|
261268d63b |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5555e5c29f71948893d0d9aa4d58f010b71ef73c6b203f090b0728e66e2f3fe6
|
||||
size 134896
|
||||
3
happy-2.1.6.tar.gz
Normal file
3
happy-2.1.6.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9b473961010cb5673510f4133d914b9d5ad667b16aafe4a5555d9962dbf05b19
|
||||
size 61435
|
||||
410
happy.changes
410
happy.changes
@@ -1,11 +1,411 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 28 18:55:35 UTC 2009 - herbert@graeber-clan.de
|
||||
Thu Jul 17 09:15:57 UTC 2025 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- remove support for openSUSE < 11.0
|
||||
- use "BuildRecommends: happy" for openSUSE >= 11.2
|
||||
- Update happy to version 2.1.6.
|
||||
## 2.1.6
|
||||
|
||||
* No longer emit `{-# LANGUAGE PartialTypeSignatures #-}` twice
|
||||
([#339](https://github.com/haskell/happy/issues/339)).
|
||||
|
||||
* No longer emit `import Data.Function` twice
|
||||
([#341](https://github.com/haskell/happy/issues/341)).
|
||||
|
||||
* Tested with GHC 8.0 - 9.12.2.
|
||||
The Haskell code generated by Happy is for GHC 8.0 and up.
|
||||
|
||||
## 2.1.5
|
||||
|
||||
Add `Data.Tuple` to `Happy_Prelude` in order to fix the `--debug` build (#330).
|
||||
|
||||
## 2.1.4
|
||||
|
||||
Move `Paths_happy_lib` into `tabular` to prevent a Cabal bug concerning
|
||||
--libsubdir (#328). It is likely that this release fixes
|
||||
`cabal v1-install happy` as well, which was broken since happy-2.0 (#315).
|
||||
|
||||
## 2.1.3
|
||||
|
||||
Auto-resolve shift/reduce conflicts involving the catch token.
|
||||
This was to support on going work in GHC to utilise the catch token.
|
||||
|
||||
## 2.1.2
|
||||
|
||||
Fix a breaking change (#325) introduced by the previous fix for #131.
|
||||
Prelude is no longer used by Happy.
|
||||
|
||||
## 2.1.1
|
||||
|
||||
This release fixes two breaking changes:
|
||||
|
||||
* Properly qualify all uses of Prelude functions, fixing #131
|
||||
* Bring back the old `%errorhandlertype` directive, the use of which is
|
||||
discouraged in favour of the "Reporting expected tokens" mechanism
|
||||
in Happy 2.1, accesible via `%error.expected`.
|
||||
|
||||
## 2.1
|
||||
|
||||
* Added `--numeric-version` CLI flag.
|
||||
* Documented and implemented the new feature "Resumptive parsing with ``catch``"
|
||||
* Documented (and reimplemented) the "Reporting expected tokens" feature
|
||||
(which turned to cause a breaking change in this release: #320)
|
||||
|
||||
## 2.0.2
|
||||
|
||||
The 2.0.1 release in turn exposed two more regressions:
|
||||
|
||||
* Generated code uses PatternGuards without declaring it (#309)
|
||||
* Use of `happy-lib:*` syntax to depend on private library components triggered
|
||||
a bug in Cabal versions 3.0 and 3.2 (#311)
|
||||
|
||||
This release fixes both.
|
||||
|
||||
## 2.0.1
|
||||
|
||||
The 2.0 release changed the indentation character from tabs to two spaces, triggering an
|
||||
unforced breaking change in GHC (#303).
|
||||
This release provides the fix by using eight spaces for indentation.
|
||||
|
||||
## 2.0
|
||||
|
||||
There are two main breaking changes in this release:
|
||||
|
||||
1. Removed non-array, non-GHC modes, so flags `-ag` are the default now and
|
||||
become no-ops.
|
||||
2. Generated parsers now activate the language extension `-XNoStrictData` without
|
||||
which every use of a happy parser would lead to an immediate crash (#273).
|
||||
This causes us to drop support for GHC < 8.0.
|
||||
|
||||
Furthermore, the project structure was modularized and a library `happy-lib`
|
||||
containing the implmentation of the `happy` executable was extracted.
|
||||
|
||||
Quite similar to the situation with GHC vs. the GHC API, we expect that `happy`
|
||||
will continue to be a stable CLI tool with solid (if occasionally out of date)
|
||||
documentation, while the design, documentation and implementation of `happy-lib`
|
||||
is still in flux and use is only recommended to expert users.
|
||||
|
||||
Other, more minor changes:
|
||||
|
||||
* Revert the new bootstrapping system of 1.21.0 to mitigate build issues (#255, #274).
|
||||
|
||||
* Encode action table offsets in 32 bit instead of 16 bit (#93, #199, #266).
|
||||
This increases the size of generated parsers a bit (about 250KB for GHC's
|
||||
parser), but also manages to generate parsers for grammars that were
|
||||
previously running into the size limit (#199).
|
||||
|
||||
* The documentation has been converted to ReStructuredText,
|
||||
hosted at https://haskell-happy.readthedocs.io/en/latest/ (#226)
|
||||
|
||||
* A few internal refactorings to the structure of generated code.
|
||||
|
||||
## 1.21.0
|
||||
|
||||
The main focus of this release was revamping the build system and bootstrapping.
|
||||
|
||||
* The release no longer contains generated source code. Instead of simply
|
||||
requiring a pre-built bootstrap version of Happy in that event, we have a
|
||||
parser-combination-based implementation of enough of Happy to bootstrap the
|
||||
rest. (Currently, the bootstrap version is everything but attribute grammars,
|
||||
and thus sufficient for e.g. GHC, but this is subject to change.) The
|
||||
bootstrap version of Happy is then sufficient to build Happy once again with
|
||||
all features enabled.
|
||||
|
||||
Note, this means users of attribute grammars will have to modify the way
|
||||
they build happy if they were previously building from Hackage relying on the
|
||||
pre-generated sources.
|
||||
|
||||
* Rather than creating many "templates" at build time, there is a single
|
||||
combined template. Different implementations are chosen using CPP, as was
|
||||
already done within the templates before.
|
||||
|
||||
* Some imports were tightened down, which may help building with newer versions
|
||||
of `base`.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 4 20:34:53 UTC 2009 - herbert@graeber-clan.de
|
||||
Wed Oct 4 08:34:54 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- use java-1_6_0-openjdk for 11.0 and above, java-1-5_0-sun else
|
||||
- Drop obsolete code to remove +x permission from data files.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 30 17:09:16 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Updated spec file to conform with ghc-rpm-macros-2.5.2.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 7 23:08:04 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update happy to version 1.20.1.1.
|
||||
Upstream has not updated the file "ChangeLog.md" since the last
|
||||
release.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 6 22:21:29 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update happy to version 1.20.1 revision 1.
|
||||
Upstream has renamed and modified the change log file(s) in this
|
||||
release. Unfortunately, the automatic updater cannot reliable
|
||||
determine relevant entries for this release.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun May 8 00:28:51 UTC 2022 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update happy to version 1.20.0 revision 1.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 10 10:24:16 PM UTC 2022 - psimons@suse.com
|
||||
|
||||
- Downgrade to version 1.20.0.
|
||||
Upstream has retracted release 1.21.0 on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 1 08:37:25 UTC 2021 - psimons@suse.com
|
||||
|
||||
- Update happy to version 1.21.0.
|
||||
Upstream has renamed and modified the change log file(s) in this
|
||||
release. Unfortunately, the automatic updater cannot reliable
|
||||
determine relevant entries for this release.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||
|
||||
- disable %{ix86} build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 26 02:02:05 UTC 2020 - psimons@suse.com
|
||||
|
||||
- Update happy to version 1.20.0.
|
||||
Upstream has edited the change log file since the last release in
|
||||
a non-trivial way, i.e. they did more than just add a new entry
|
||||
at the top. You can review the file at:
|
||||
http://hackage.haskell.org/package/happy-1.20.0/src/CHANGES
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 18 10:46:50 UTC 2020 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Replace %setup -q with the more modern %autosetup macro.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 16 11:14:55 UTC 2020 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Re-generate file with latest version of spec-cleaner.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 8 16:15:19 UTC 2019 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Drop obsolete group attributes.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 4 02:03:27 UTC 2019 - psimons@suse.com
|
||||
|
||||
- Update happy to version 1.19.12.
|
||||
1.19.12
|
||||
|
||||
* Fix for building with GHC 8.8.x
|
||||
* Move custom Setup preprocessing steps into a separate
|
||||
executable, like Alex
|
||||
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 7 02:01:39 UTC 2019 - psimons@suse.com
|
||||
|
||||
- Update happy to version 1.19.11.
|
||||
1.19.11
|
||||
|
||||
* Fix for building with GHC 8.6.x
|
||||
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 10 13:28:46 UTC 2019 - psimons@suse.com
|
||||
|
||||
- Update happy to version 1.19.10.
|
||||
1.19.10
|
||||
|
||||
* Fix polymorphic (rank-n) non-terminals
|
||||
* Fix for GHC 8.8.1
|
||||
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 20 11:26:41 UTC 2018 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update Cabal build instructions to support ghc-8.6.1.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 18 14:26:49 UTC 2018 - psimons@suse.com
|
||||
|
||||
- Cosmetic: replace tabs with blanks, strip trailing white space,
|
||||
and update copyright headers with spec-cleaner.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 13 18:35:28 UTC 2018 - ptrommler@icloud.com
|
||||
|
||||
- Another tweak for SLE 12
|
||||
* use plain make to build documentation
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 12 18:09:12 UTC 2018 - ptrommler@icloud.com
|
||||
|
||||
- Fix build on SLE 12 SP 3
|
||||
* configure in doc directory chokes on
|
||||
--disable-dependency-tracking
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 16 14:19:58 UTC 2018 - psimons@suse.com
|
||||
|
||||
- Update to version 1.19.9.
|
||||
* Fix build with GHC 8.4.1-alpha
|
||||
* Fix issue #94 (some grammars don't compile due to new type
|
||||
signatures introduced to allow overloading to be used)
|
||||
* Fix misisng test suite files in the sdist
|
||||
* Manually generate Parser.hs using Makefile before sdist,
|
||||
to fix bootstrapping problems with cabal sandboxes & new-build
|
||||
* Documentation fixes
|
||||
* Fixed GLR support
|
||||
* new option -p/--pretty prints the grammar rules (only) to a file
|
||||
* Added generation of additional type signatures to enable use
|
||||
of typeclasses in monadic parsers.
|
||||
* Code cleanups (thanks Index Int <vlad.z.4096@gmail.com>)
|
||||
* fix for GHC 7.10 (Applicative/Monad, #19, #21)
|
||||
* fix for GHC 7.2 (#16)
|
||||
* fixes for clang (XCode 5)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com
|
||||
|
||||
- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 11 04:02:43 UTC 2017 - bwiedemann@suse.com
|
||||
|
||||
- Drop build logs from rpm to fix build-compare
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 29 18:32:34 UTC 2017 - psimons@suse.com
|
||||
|
||||
- Update to version 1.19.5 revision 2 with cabal2obs.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 10 17:23:32 UTC 2016 - psimons@suse.com
|
||||
|
||||
- Update to version 1.19.5 revision 1 with cabal2obs.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 13 09:06:25 UTC 2015 - mimi.vx@gmail.com
|
||||
|
||||
- temporary disable tests
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 9 16:46:01 UTC 2015 - mimi.vx@gmail.com
|
||||
|
||||
- update to 1.19.5
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 2 19:11:21 UTC 2015 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- downgrade to 1.19.4
|
||||
* strict version requirement by Haskell Platform
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 2 12:02:42 UTC 2015 - mimi.vx@gmail.com
|
||||
|
||||
- change line endings from dos to unix in examples
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 18 20:18:58 UTC 2015 - mimi.vx@gmail.com
|
||||
|
||||
- update to 1.19.5
|
||||
- remove rpmlintrc
|
||||
* fixes for GHC 7.10
|
||||
* Code cleanups (thanks Index Int <vlad.z.4096@gmail.com>)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 24 08:29:34 UTC 2014 - mimi.vx@gmail.com
|
||||
|
||||
- change licence to BSD-2-Clause
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 23 19:02:58 UTC 2014 - mimi.vx@gmail.com
|
||||
|
||||
- typo in Summary
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 23 18:20:06 UTC 2014 - mimi.vx@gmail.com
|
||||
|
||||
- add tests
|
||||
- suppres warnings with rpmlintrc
|
||||
- spec file cleanup with cabal-rpm and spec-cleaner
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 12 06:55:24 UTC 2014 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- update to 1.19.4
|
||||
* fix manual page
|
||||
* fix build with ghc 7.8 and (future) 7.10
|
||||
* Haskell Platform 2014.2.0.0
|
||||
- drop happy-1.18.6-generate-man-page.patch
|
||||
* fixed upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 23 00:32:47 UTC 2014 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- enable PowerPC builds
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 6 13:24:22 UTC 2013 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- spec file cleanup and reformatting by OBS service
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 27 13:51:50 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- fixed license tag
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 17 14:59:53 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- make service localonly for Factory submission
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 1 19:14:05 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- update to 1.18.10 from upstream for Haskell Platform 2012.4.0.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 10 06:50:15 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- dropped BuildRequires xmltex (not needed)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 5 13:26:11 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- update to 1.18.9 from upstream for Haskell Platform 2012.2.0.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 7 19:23:10 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- patch file added
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 7 19:22:17 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- added patch to enable man page generation
|
||||
- build, install and package man page
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 23 08:03:09 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- SPDX compliant version tag
|
||||
- BR autoconf explicitly
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 5 09:00:46 UTC 2011 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- Fixed ExclusiveArch for OBS
|
||||
- Added ghc-mtl-devel BR
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 24 21:30:04 UTC 2011 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- Initial packaging.
|
||||
|
||||
200
happy.spec
200
happy.spec
@@ -1,165 +1,69 @@
|
||||
# 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.
|
||||
#
|
||||
# Please submit bugfixes or comments to herbert@links2linux.de
|
||||
# spec file for package happy
|
||||
#
|
||||
# Copyright (c) 2025 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.
|
||||
|
||||
# norootforbuild
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
Name: happy
|
||||
Version: 1.18.2
|
||||
Release: 0
|
||||
Summary: The LALR(1) Parser Generator for Haskell
|
||||
License: BSD3
|
||||
Group: Development/Languages/Haskell
|
||||
URL: http://www.haskell.org/happy/
|
||||
Source: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.bz2
|
||||
BuildRequires: ghc
|
||||
%if %{suse_version} <= 1110
|
||||
BuildRequires: happy
|
||||
%else
|
||||
BuildRecommends: happy
|
||||
|
||||
%bcond_with tests
|
||||
Name: happy
|
||||
Version: 2.1.6
|
||||
Release: 0
|
||||
Summary: Happy is a parser generator for Haskell
|
||||
License: BSD-2-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-happy-lib-devel
|
||||
BuildRequires: ghc-happy-lib-prof
|
||||
BuildRequires: ghc-mtl-devel
|
||||
BuildRequires: ghc-mtl-prof
|
||||
BuildRequires: ghc-rpm-macros
|
||||
Requires: ghc-happy-lib-templates
|
||||
ExcludeArch: %{ix86}
|
||||
%if %{with tests}
|
||||
BuildRequires: ghc-process-devel
|
||||
BuildRequires: ghc-process-prof
|
||||
%endif
|
||||
BuildRequires: libxslt
|
||||
BuildRequires: sgml-skel
|
||||
BuildRequires: docbook-xsl-stylesheets
|
||||
BuildRequires: docbook-utils
|
||||
BuildRequires: fop
|
||||
BuildRequires: java-1_6_0-openjdk
|
||||
BuildRequires: licenses
|
||||
Requires: licenses
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
Prefix: /usr
|
||||
|
||||
%description
|
||||
Happy is a parser generator system for Haskell, similar to the tool `yacc' for
|
||||
C. Like `yacc', it takes a file containing an annotated BNF specification of a
|
||||
grammar and produces a Haskell module containing a parser for the grammar.
|
||||
|
||||
Happy is flexible: you can have several Happy parsers in the same program, and
|
||||
several entry points to a single grammar. Happy can work in conjunction with a
|
||||
lexical analyser supplied by the user (either hand-written or generated by
|
||||
another program), or it can parse a stream of characters directly (but this
|
||||
isn't practical in most cases).
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Simon Marlow <simonmar@microsoft.com>
|
||||
Andy Gill <andy@galconn.com>
|
||||
|
||||
|
||||
%package doc
|
||||
Summary: Happy Documentation
|
||||
Group: Development/Languages/Haskell
|
||||
|
||||
%description doc
|
||||
Extended Documentation (HTML, DVI and Postscript) for Happy
|
||||
|
||||
Happy is a parser generator for Haskell. Given a grammar specification in BNF,
|
||||
Happy generates Haskell code to parse the grammar. Happy works in a similar way
|
||||
to the 'yacc' tool for C.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
%cabal_configure --docdir=%{_docdir}/%{name}
|
||||
%cabal build
|
||||
pushd doc
|
||||
autoreconf
|
||||
./configure --prefix=%{_prefix} --libdir=%{_libdir}
|
||||
make html pdf
|
||||
popd
|
||||
%define cabal_configure_options -f-bootstrap
|
||||
%ghc_bin_build
|
||||
|
||||
%install
|
||||
%cabal_install
|
||||
mkdir -p %{buildroot}%{_mandir}/man1
|
||||
sed '
|
||||
s|/@VERSION@|%{version}|
|
||||
s|@DOCDIR@|%{_datadir}/doc/%{name}|
|
||||
s|@DATADIR@|%{_datadir}/%{name}|
|
||||
' < doc/%{name}.1.in | gzip >%{buildroot}%{_mandir}/man1/%{name}.1.gz
|
||||
mkdir -p %{buildroot}%{_datadir}/doc/%{name}
|
||||
cp -r doc/%{name} %{buildroot}%{_datadir}/doc/%{name}/html
|
||||
%if 0%{?suse_version} >= 1100
|
||||
cp -r doc/%{name}.pdf %{buildroot}%{_datadir}/doc/%{name}
|
||||
%endif
|
||||
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
|
||||
%doc CHANGES
|
||||
%doc LICENSE
|
||||
%doc README
|
||||
%doc TODO
|
||||
%doc examples
|
||||
%{_bindir}/happy
|
||||
%{_datadir}/happy-%{version}
|
||||
%{_mandir}/man1/%{name}.1.gz
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/doc/%{name}
|
||||
%license LICENSE
|
||||
%doc ChangeLog.md README.md examples
|
||||
%{_bindir}/%{name}
|
||||
|
||||
%changelog
|
||||
* ??? ??? ?? 2009 Herbert Graeber <herbert@links2linux.de> 1.18.2
|
||||
- PDF documentation cannot be built for openSUSE 10.3 (fop to old)
|
||||
|
||||
* Thu Apr 17 2009 Herbert Graeber <herbert@links2linux.de> 1.18.2
|
||||
- Add man page
|
||||
- Save HTML data only, not Makfile, etc.
|
||||
- Add pdf file of documentation
|
||||
|
||||
* Thu Apr 16 2009 Herbert Graeber <herbert@graeber-clan.de> 1.18.2
|
||||
- Use cabal macros for build
|
||||
|
||||
* Wed Nov 2 2008 Herbert Graeber <herbert@links2linux.de> 1.18.1
|
||||
- Update to version 1.18.2
|
||||
|
||||
* Wed Oct 29 2008 Herbert Graeber <herbert@links2linux.de> 1.18.1
|
||||
- Update to version 1.18.1
|
||||
|
||||
* Sun Nov 11 2007 Herbert Graeber <herbert@links2linux.de>
|
||||
- Update to version 1.17
|
||||
* Cabal 1.2 is required
|
||||
* Works with upcoming GHC 6.8.1
|
||||
- Use shard license file
|
||||
|
||||
* Thu Jan 18 2007 Herbert Graeber <herbert@links2linux.de>
|
||||
- Update to version 1.16
|
||||
|
||||
* Sat Oct 21 2006 Herbert Graeber <herbert@links2linux.de>
|
||||
- Fix for ghc 6.6
|
||||
|
||||
* 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
|
||||
|
||||
* Sun Mar 13 2005 - Herbert Graeber <herbert@links2linux.de>
|
||||
- Update to version 1.15
|
||||
|
||||
Reference in New Issue
Block a user