osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-attoparsec revision:3, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-attoparsec?expand=0&rev=72
This commit is contained in:
commit
c970dd2161
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
attoparsec-0.14.4.tar.gz
Normal file
3
attoparsec-0.14.4.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3f337fe58624565de12426f607c23e60c7b09c86b4e3adfc827ca188c9979e6c
|
||||
size 160701
|
216
attoparsec.cabal
Normal file
216
attoparsec.cabal
Normal file
@ -0,0 +1,216 @@
|
||||
cabal-version: 2.0
|
||||
-- 2.0 needed for internal libraries
|
||||
name: attoparsec
|
||||
version: 0.14.4
|
||||
x-revision: 6
|
||||
license: BSD3
|
||||
license-file: LICENSE
|
||||
category: Text, Parsing
|
||||
author: Bryan O'Sullivan <bos@serpentine.com>
|
||||
maintainer: Ben Gamari <ben@smart-cactus.org>
|
||||
stability: experimental
|
||||
synopsis: Fast combinator parsing for bytestrings and text
|
||||
homepage: https://github.com/haskell/attoparsec
|
||||
bug-reports: https://github.com/haskell/attoparsec/issues
|
||||
build-type: Simple
|
||||
description:
|
||||
A fast parser combinator library, aimed particularly at dealing
|
||||
efficiently with network protocols and complicated text/binary
|
||||
file formats.
|
||||
|
||||
tested-with:
|
||||
GHC == 9.8.1
|
||||
GHC == 9.6.3
|
||||
GHC == 9.4.7
|
||||
GHC == 9.2.8
|
||||
GHC == 9.0.2
|
||||
GHC == 8.10.7
|
||||
GHC == 8.8.4
|
||||
GHC == 8.6.5
|
||||
GHC == 8.4.4
|
||||
GHC == 8.2.2
|
||||
GHC == 8.0.2
|
||||
GHC == 7.10.3
|
||||
-- GHC == 7.8.4
|
||||
-- GHC == 7.6.3
|
||||
-- GHC == 7.4.2
|
||||
|
||||
extra-source-files:
|
||||
README.markdown
|
||||
benchmarks/*.txt
|
||||
benchmarks/json-data/*.json
|
||||
benchmarks/Makefile
|
||||
benchmarks/med.txt.bz2
|
||||
changelog.md
|
||||
examples/*.c
|
||||
examples/*.hs
|
||||
examples/Makefile
|
||||
|
||||
Flag developer
|
||||
Description: Whether to build the library in development mode
|
||||
Default: False
|
||||
Manual: True
|
||||
|
||||
-- We need to test and benchmark these modules,
|
||||
-- but do not want to expose them to end users
|
||||
library attoparsec-internal
|
||||
hs-source-dirs: internal
|
||||
build-depends: array,
|
||||
base >= 4.5 && < 5,
|
||||
bytestring <0.13,
|
||||
text >= 1.1.1.3
|
||||
if !impl(ghc >= 8.0)
|
||||
build-depends: semigroups >=0.16.1 && <0.21
|
||||
exposed-modules: Data.Attoparsec.ByteString.Buffer
|
||||
Data.Attoparsec.ByteString.FastSet
|
||||
Data.Attoparsec.Internal.Compat
|
||||
Data.Attoparsec.Internal.Fhthagn
|
||||
Data.Attoparsec.Text.Buffer
|
||||
Data.Attoparsec.Text.FastSet
|
||||
ghc-options: -O2 -Wall
|
||||
default-language: Haskell2010
|
||||
|
||||
library
|
||||
build-depends: array,
|
||||
base >= 4.5 && < 5,
|
||||
bytestring <0.13,
|
||||
containers,
|
||||
deepseq,
|
||||
scientific >= 0.3.1 && < 0.4,
|
||||
transformers >= 0.2 && (< 0.4 || >= 0.4.1.0) && < 0.7,
|
||||
text >= 1.1.1.3,
|
||||
ghc-prim < 0.14,
|
||||
attoparsec-internal
|
||||
if impl(ghc < 7.4)
|
||||
build-depends:
|
||||
bytestring < 0.10.4.0
|
||||
|
||||
if !impl(ghc >= 8.0)
|
||||
-- Data.Semigroup && Control.Monad.Fail are available in base-4.9+
|
||||
build-depends: fail == 4.9.*,
|
||||
semigroups >=0.16.1 && <0.21
|
||||
|
||||
exposed-modules: Data.Attoparsec
|
||||
Data.Attoparsec.ByteString
|
||||
Data.Attoparsec.ByteString.Char8
|
||||
Data.Attoparsec.ByteString.Lazy
|
||||
Data.Attoparsec.Char8
|
||||
Data.Attoparsec.Combinator
|
||||
Data.Attoparsec.Internal
|
||||
Data.Attoparsec.Internal.Types
|
||||
Data.Attoparsec.Lazy
|
||||
Data.Attoparsec.Number
|
||||
Data.Attoparsec.Text
|
||||
Data.Attoparsec.Text.Lazy
|
||||
Data.Attoparsec.Types
|
||||
Data.Attoparsec.Zepto
|
||||
other-modules: Data.Attoparsec.ByteString.Internal
|
||||
Data.Attoparsec.Text.Internal
|
||||
ghc-options: -O2 -Wall
|
||||
|
||||
default-language: Haskell2010
|
||||
|
||||
if flag(developer)
|
||||
ghc-prof-options: -auto-all
|
||||
ghc-options: -Werror
|
||||
|
||||
test-suite attoparsec-tests
|
||||
type: exitcode-stdio-1.0
|
||||
hs-source-dirs: tests
|
||||
main-is: QC.hs
|
||||
other-modules: QC.Buffer
|
||||
QC.ByteString
|
||||
QC.Combinator
|
||||
QC.Common
|
||||
QC.IPv6.Internal
|
||||
QC.IPv6.Types
|
||||
QC.Rechunked
|
||||
QC.Simple
|
||||
QC.Text
|
||||
QC.Text.FastSet
|
||||
QC.Text.Regressions
|
||||
|
||||
ghc-options:
|
||||
-Wall -threaded -rtsopts
|
||||
|
||||
if flag(developer)
|
||||
ghc-options: -Werror
|
||||
|
||||
build-depends:
|
||||
array,
|
||||
attoparsec,
|
||||
attoparsec-internal,
|
||||
base,
|
||||
bytestring,
|
||||
deepseq >= 1.1,
|
||||
QuickCheck >= 2.13.2 && < 2.16,
|
||||
quickcheck-unicode,
|
||||
scientific,
|
||||
tasty >= 0.11,
|
||||
tasty-quickcheck >= 0.8,
|
||||
text,
|
||||
transformers,
|
||||
vector
|
||||
|
||||
default-language: Haskell2010
|
||||
|
||||
if !impl(ghc >= 8.0)
|
||||
-- Data.Semigroup && Control.Monad.Fail are available in base-4.9+
|
||||
build-depends: fail == 4.9.*,
|
||||
semigroups >=0.16.1 && <0.19
|
||||
|
||||
benchmark attoparsec-benchmarks
|
||||
type: exitcode-stdio-1.0
|
||||
hs-source-dirs: benchmarks benchmarks/warp-3.0.1.1
|
||||
ghc-options: -O2 -Wall -rtsopts
|
||||
main-is: Benchmarks.hs
|
||||
other-modules:
|
||||
Aeson
|
||||
Common
|
||||
Genome
|
||||
HeadersByteString
|
||||
HeadersByteString.Atto
|
||||
HeadersText
|
||||
Links
|
||||
Network.Wai.Handler.Warp.ReadInt
|
||||
Network.Wai.Handler.Warp.RequestHeader
|
||||
Numbers
|
||||
Sets
|
||||
TextFastSet
|
||||
Warp
|
||||
ghc-options: -O2 -Wall
|
||||
|
||||
if flag(developer)
|
||||
ghc-options: -Werror
|
||||
|
||||
build-depends:
|
||||
array,
|
||||
attoparsec,
|
||||
attoparsec-internal,
|
||||
base == 4.*,
|
||||
bytestring >= 0.10.4.0,
|
||||
case-insensitive,
|
||||
containers,
|
||||
deepseq >= 1.1,
|
||||
directory,
|
||||
filepath,
|
||||
ghc-prim,
|
||||
http-types,
|
||||
parsec >= 3.1.2,
|
||||
scientific,
|
||||
tasty-bench >= 0.3,
|
||||
text >= 1.1.1.0,
|
||||
transformers,
|
||||
unordered-containers,
|
||||
vector
|
||||
|
||||
default-language: Haskell2010
|
||||
|
||||
if !impl(ghc >= 8.0)
|
||||
-- Data.Semigroup && Control.Monad.Fail are available in base-4.9+
|
||||
build-depends: fail == 4.9.*,
|
||||
semigroups >=0.16.1 && <0.19
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: https://github.com/haskell/attoparsec.git
|
261
ghc-attoparsec.changes
Normal file
261
ghc-attoparsec.changes
Normal file
@ -0,0 +1,261 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 12 03:39:20 UTC 2024 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update attoparsec to version 0.14.4 revision 6.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 10 14:12:34 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update attoparsec to version 0.14.4 revision 5.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 12 14:11:27 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update attoparsec to version 0.14.4 revision 4.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 30 17:05:51 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Updated spec file to conform with ghc-rpm-macros-2.5.2.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 18 17:09:29 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update attoparsec to version 0.14.4 revision 3.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 10 22:09:34 UTC 2022 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update attoparsec to version 0.14.4 revision 2.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 16 18:41:59 UTC 2022 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update attoparsec to version 0.14.4 revision 1.
|
||||
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/attoparsec-0.14.4/src/changelog.md
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 20 17:29:22 UTC 2021 - psimons@suse.com
|
||||
|
||||
- Update attoparsec to version 0.14.2 revision 2.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 1 08:26:56 UTC 2021 - psimons@suse.com
|
||||
|
||||
- Update attoparsec to version 0.14.2.
|
||||
0.14.2
|
||||
|
||||
* Support for GHC 9.2.1
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 23 08:31:04 UTC 2021 - psimons@suse.com
|
||||
|
||||
- Update attoparsec to version 0.14.1.
|
||||
0.14.1
|
||||
|
||||
* Added `Data.Attoparsec.ByteString.getChunk`.
|
||||
|
||||
0.14.0
|
||||
|
||||
* Added `Data.Attoparsec.ByteString.takeWhileIncluding`.
|
||||
* Make `Data.Attoparsec.{Text,ByteString}.Lazy.parseOnly` accept lazy input.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 3 16:37:14 UTC 2021 - psimons@suse.com
|
||||
|
||||
- Update attoparsec to version 0.13.2.5 revision 1.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 10 13:04:58 UTC 2021 - psimons@suse.com
|
||||
|
||||
- Update attoparsec to version 0.13.2.5.
|
||||
Upstream has not updated the file "changelog.md" since the last
|
||||
release.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||
|
||||
- disable %{ix86} build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 22 09:33:18 UTC 2020 - psimons@suse.com
|
||||
|
||||
- Update attoparsec to version 0.13.2.4 revision 1.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 18 10:44:02 UTC 2020 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Replace %setup -q with the more modern %autosetup macro.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 16 11:13:45 UTC 2020 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Re-generate file with latest version of spec-cleaner.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 6 06:54:13 UTC 2020 - psimons@suse.com
|
||||
|
||||
- Update attoparsec to version 0.13.2.4.
|
||||
Upstream has not updated the file "changelog.md" since the last
|
||||
release.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 8 16:13:14 UTC 2019 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Drop obsolete group attributes.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 1 02:02:19 UTC 2019 - psimons@suse.com
|
||||
|
||||
- Update attoparsec to version 0.13.2.3.
|
||||
Upstream has not updated the file "changelog.md" since the last
|
||||
release.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 11 14:29:08 UTC 2019 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update Cabal file for more accurate build dependencies.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 20 11:23:27 UTC 2018 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update Cabal build instructions to support ghc-8.6.1.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 18 14:26:14 UTC 2018 - psimons@suse.com
|
||||
|
||||
- Cosmetic: replace tabs with blanks, strip trailing white space,
|
||||
and update copyright headers with spec-cleaner.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 14 17:02:11 UTC 2018 - psimons@suse.com
|
||||
|
||||
- Update attoparsec to version 0.13.2.2.
|
||||
* Improved performance of `Data.Attoparsec.Text.asciiCI`
|
||||
* `pure` is now strict in `Position`
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com
|
||||
|
||||
- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 26 06:52:16 UTC 2016 - psimons@suse.com
|
||||
|
||||
- Update to version 0.13.1.0 with cabal2obs.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 10 17:24:05 UTC 2016 - psimons@suse.com
|
||||
|
||||
- Update to version 0.13.0.2 revision 0 with cabal2obs.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 26 07:59:37 UTC 2016 - mimi.vx@gmail.com
|
||||
|
||||
- update to 0.13.0.2
|
||||
- remove useless _service
|
||||
* Restore the fast specialised character set implementation for Text
|
||||
* Move testsuite from test-framework to tasty
|
||||
* Performance optimization of takeWhile and takeWhile1
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 28 18:29:13 UTC 2015 - mimi.vx@gmail.com
|
||||
|
||||
- update to 0.13.0.1
|
||||
* Fixed a bug in the implementations of inClass and notInClass for Text
|
||||
* Made the parser type in the Zepto module a monad transformer.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 13 07:52:32 UTC 2015 - mimi.vx@gmail.com
|
||||
|
||||
- update to 0.12.1.6
|
||||
* Fixed a case folding bug in the ByteString version of stringCI.
|
||||
* Fixed an indexing bug in the new Text implementation of string,
|
||||
reported by Michel Boucey.
|
||||
* Fixed a case where the string parser would consume an unnecessary
|
||||
amount of input before failing a match, when it could bail much
|
||||
earlier (https://github.com/bos/attoparsec/issues/97)
|
||||
* Added more context to error messages
|
||||
(https://github.com/bos/attoparsec/pull/79)
|
||||
* Fixed incorrect tracking of Text lengths
|
||||
(https://github.com/bos/attoparsec/issues/80)
|
||||
* Fixed the incorrect tracking of capacity if the initial buffer was
|
||||
empty (https://github.com/bos/attoparsec/issues/75)
|
||||
* Fixed a data corruption bug that occurred under some circumstances
|
||||
if a buffer grew after prompting for more input
|
||||
(https://github.com/bos/attoparsec/issues/74)
|
||||
* Now compatible with GHC 7.9
|
||||
* Reintroduced the Chunk class, used by the parsers package
|
||||
* A new internal representation makes almost all real-world parsers
|
||||
faster, sometimes by big margins. For example, parsing JSON data
|
||||
with aeson is now up to 70% faster. These performance improvements
|
||||
also come with reduced memory consumption and some new capabilities.
|
||||
* The new match combinator gives both the result of a parse and the
|
||||
input that it matched.
|
||||
* The test suite has doubled in size. This made it possible to switch
|
||||
to the new internal representation with a decent degree of
|
||||
confidence that everything was more or less working.
|
||||
* The benchmark suite now contains a small family of benchmarks taken
|
||||
from real-world uses of attoparsec.
|
||||
* A few types that ought to have been private now are.
|
||||
* A few obsolete modules and functions have been marked as deprecated.
|
||||
They will be removed from the next major release.
|
||||
* New function scientific is compatible with rational, but parses
|
||||
integers more efficiently (https://github.com/bos/aeson/issues/198)
|
||||
* The new Chunk typeclass allows for some code sharing with Ed
|
||||
Kmett's parsers package: http://hackage.haskell.org/package/parsers
|
||||
* New function runScanner generalises scan to return the final state
|
||||
of the scanner as well as the input consumed.
|
||||
* New dependency: the scientific package. This allows us to parse
|
||||
numbers much more efficiently.
|
||||
* peekWord8', peekChar': new primitive parsers that allow
|
||||
single-character lookahead.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 2 08:34:11 UTC 2014 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- regenerate spec file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 23 00:07:38 UTC 2014 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- enable PowerPC builds
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 21 08:11:40 UTC 2013 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- expand macro in name tag
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 6 15:08:29 UTC 2013 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- more transparent packaging (fewer macros)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 4 09:38:03 UTC 2013 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- update to 0.10.4.0 from upstream (no changelog)
|
||||
- fixes bugs and performance issues
|
||||
- currently under consideration for inclusion in Haskell Platform
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 9 10:15:54 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- package LICENSE file
|
||||
- add copyright notice
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 2 15:58:09 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- initial packaging
|
122
ghc-attoparsec.spec
Normal file
122
ghc-attoparsec.spec
Normal file
@ -0,0 +1,122 @@
|
||||
#
|
||||
# spec file for package ghc-attoparsec
|
||||
#
|
||||
# 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.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%global pkg_name attoparsec
|
||||
%global pkgver %{pkg_name}-%{version}
|
||||
%bcond_with tests
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 0.14.4
|
||||
Release: 0
|
||||
Summary: Fast combinator parsing for bytestrings and text
|
||||
License: BSD-3-Clause
|
||||
URL: https://hackage.haskell.org/package/%{pkg_name}
|
||||
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
||||
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/6.cabal#/%{pkg_name}.cabal
|
||||
BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-array-devel
|
||||
BuildRequires: ghc-array-prof
|
||||
BuildRequires: ghc-base-devel
|
||||
BuildRequires: ghc-base-prof
|
||||
BuildRequires: ghc-bytestring-devel
|
||||
BuildRequires: ghc-bytestring-prof
|
||||
BuildRequires: ghc-containers-devel
|
||||
BuildRequires: ghc-containers-prof
|
||||
BuildRequires: ghc-deepseq-devel
|
||||
BuildRequires: ghc-deepseq-prof
|
||||
BuildRequires: ghc-rpm-macros
|
||||
BuildRequires: ghc-scientific-devel
|
||||
BuildRequires: ghc-scientific-prof
|
||||
BuildRequires: ghc-text-devel
|
||||
BuildRequires: ghc-text-prof
|
||||
BuildRequires: ghc-transformers-devel
|
||||
BuildRequires: ghc-transformers-prof
|
||||
ExcludeArch: %{ix86}
|
||||
%if %{with tests}
|
||||
BuildRequires: ghc-QuickCheck-devel
|
||||
BuildRequires: ghc-QuickCheck-prof
|
||||
BuildRequires: ghc-quickcheck-unicode-devel
|
||||
BuildRequires: ghc-quickcheck-unicode-prof
|
||||
BuildRequires: ghc-tasty-devel
|
||||
BuildRequires: ghc-tasty-prof
|
||||
BuildRequires: ghc-tasty-quickcheck-devel
|
||||
BuildRequires: ghc-tasty-quickcheck-prof
|
||||
BuildRequires: ghc-vector-devel
|
||||
BuildRequires: ghc-vector-prof
|
||||
%endif
|
||||
|
||||
%description
|
||||
A fast parser combinator library, aimed particularly at dealing efficiently
|
||||
with network protocols and complicated text/binary file formats.
|
||||
|
||||
%package devel
|
||||
Summary: Haskell %{pkg_name} library development files
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: ghc-compiler = %{ghc_version}
|
||||
Requires(post): ghc-compiler = %{ghc_version}
|
||||
Requires(postun): ghc-compiler = %{ghc_version}
|
||||
|
||||
%description devel
|
||||
This package provides the Haskell %{pkg_name} library development files.
|
||||
|
||||
%package -n ghc-%{pkg_name}-doc
|
||||
Summary: Haskell %{pkg_name} library documentation
|
||||
Requires: ghc-filesystem
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n ghc-%{pkg_name}-doc
|
||||
This package provides the Haskell %{pkg_name} library documentation.
|
||||
|
||||
%package -n ghc-%{pkg_name}-prof
|
||||
Summary: Haskell %{pkg_name} profiling library
|
||||
Requires: ghc-%{pkg_name}-devel = %{version}-%{release}
|
||||
Supplements: (ghc-%{pkg_name}-devel and ghc-prof)
|
||||
|
||||
%description -n ghc-%{pkg_name}-prof
|
||||
This package provides the Haskell %{pkg_name} profiling library.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{pkg_name}-%{version}
|
||||
cp -p %{SOURCE1} %{pkg_name}.cabal
|
||||
|
||||
%build
|
||||
%ghc_lib_build
|
||||
|
||||
%install
|
||||
%ghc_lib_install
|
||||
|
||||
%check
|
||||
%cabal_test
|
||||
|
||||
%post devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
%postun devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
%files -f %{name}.files
|
||||
%license LICENSE
|
||||
|
||||
%files devel -f %{name}-devel.files
|
||||
%doc README.markdown changelog.md examples
|
||||
|
||||
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
|
||||
%license LICENSE
|
||||
|
||||
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user