osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-cassava-megaparsec revision:2, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-cassava-megaparsec?expand=0&rev=27
This commit is contained in:
Peter Simons 2024-12-10 11:25:51 +00:00 committed by Git OBS Bridge
commit 28cfcb1f99
7 changed files with 281 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@ -0,0 +1 @@
.osc

View File

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

View File

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

72
cassava-megaparsec.cabal Normal file
View File

@ -0,0 +1,72 @@
name: cassava-megaparsec
version: 2.0.4
x-revision: 1
cabal-version: 1.18
tested-with:
GHC == 9.4.4
GHC == 9.2.5
GHC == 9.0.2
GHC == 8.10.7
GHC == 8.8.4
GHC == 8.6.5
GHC == 8.4.4
GHC == 8.2.2
license: MIT
license-file: LICENSE.md
author: Mark Karpov <markkarpov92@gmail.org>
maintainer: Mark Karpov <markkarpov92@gmail.org>
homepage: https://github.com/stackbuilders/cassava-megaparsec
bug-reports: https://github.com/stackbuilders/cassava-megaparsec/issues
category: Text, Web, CSV, Parsing
synopsis: Megaparsec parser of CSV files that plays nicely with Cassava
build-type: Simple
description: Megaparsec parser of CSV files that plays nicely with Cassava.
extra-doc-files: CHANGELOG.md
, README.md
source-repository head
type: git
location: https://github.com/stackbuilders/cassava-megaparsec.git
flag dev
description: Turn on development settings.
manual: True
default: False
library
build-depends: base >= 4.8 && < 5.0
, bytestring >= 0.9 && < 0.12
, cassava >= 0.4.2 && < 0.6
, megaparsec >= 7.0 && < 10.0
, unordered-containers >= 0.2.7 && < 0.3
, vector >= 0.11 && < 0.14
exposed-modules: Data.Csv.Parser.Megaparsec
, Data.Csv.Parser.Megaparsec.Internals
if flag(dev)
ghc-options: -Wall -Werror
else
ghc-options: -O2 -Wall
if flag(dev) && impl(ghc >= 8.0)
ghc-options: -Wcompat
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wnoncanonical-monad-instances
-Wnoncanonical-monadfail-instances
default-language: Haskell2010
test-suite tests
main-is: Spec.hs
hs-source-dirs: tests
type: exitcode-stdio-1.0
build-depends: base >= 4.8 && < 5.0
, bytestring >= 0.9 && < 0.12
, cassava >= 0.4.2 && < 0.6
, cassava-megaparsec
, hspec >= 2.0 && < 3.0
, hspec-megaparsec >= 2.0 && < 3.0
, vector >= 0.11 && < 0.14
if flag(dev)
ghc-options: -Wall -Werror
else
ghc-options: -O2 -Wall
default-language: Haskell2010

View File

@ -0,0 +1,69 @@
-------------------------------------------------------------------
Wed Feb 28 22:05:52 UTC 2024 - Peter Simons <psimons@suse.com>
- Update cassava-megaparsec to version 2.1.1.
## Cassava Megaparsec 2.1.0
* Drop support for GHC 8.0 and below
-------------------------------------------------------------------
Fri May 3 13:54:09 UTC 2024 - Peter Simons <psimons@suse.com>
- Forgot to update copyright header in spec file after last change.
-------------------------------------------------------------------
Tue Mar 12 15:06:36 UTC 2024 - Peter Simons <psimons@suse.com>
- Jailbreak build for ghc-9.8.x.
-------------------------------------------------------------------
Thu Mar 30 17:06:09 UTC 2023 - Peter Simons <psimons@suse.com>
- Updated spec file to conform with ghc-rpm-macros-2.5.2.
-------------------------------------------------------------------
Tue Dec 27 19:24:30 UTC 2022 - Peter Simons <psimons@suse.com>
- Update cassava-megaparsec to version 2.0.4 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Mon Nov 1 08:26:35 UTC 2021 - psimons@suse.com
- Update cassava-megaparsec to version 2.0.4.
## Cassava Megaparsec 2.0.4
* Allow bytestring-0.11
## Cassava Megaparsec 2.0.3
* Exposing Internals
-------------------------------------------------------------------
Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
- disable %{ix86} build
-------------------------------------------------------------------
Sat Sep 12 16:16:32 UTC 2020 - psimons@suse.com
- Update cassava-megaparsec to version 2.0.2.
## Cassava Megaparsec 2.0.2
* Add suppport for `megaparsec-9.0.0`
-------------------------------------------------------------------
Wed Sep 9 14:43:15 UTC 2020 - Peter Simons <psimons@suse.com>
- Relax over-specified constraint on megaparsec.
-------------------------------------------------------------------
Tue Aug 18 10:44:16 UTC 2020 - Peter Simons <psimons@suse.com>
- Replace %setup -q with the more modern %autosetup macro.
-------------------------------------------------------------------
Tue Jun 9 09:27:56 UTC 2020 - psimons@suse.com
- Add cassava-megaparsec at version 2.0.1.

110
ghc-cassava-megaparsec.spec Normal file
View File

@ -0,0 +1,110 @@
#
# spec file for package ghc-cassava-megaparsec
#
# 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 cassava-megaparsec
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 2.1.1
Release: 0
Summary: Megaparsec parser of CSV files that plays nicely with Cassava
License: MIT
URL: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-base-devel
BuildRequires: ghc-base-prof
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-cassava-devel
BuildRequires: ghc-cassava-prof
BuildRequires: ghc-megaparsec-devel
BuildRequires: ghc-megaparsec-prof
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-unordered-containers-devel
BuildRequires: ghc-unordered-containers-prof
BuildRequires: ghc-vector-devel
BuildRequires: ghc-vector-prof
ExcludeArch: %{ix86}
%if %{with tests}
BuildRequires: ghc-hspec-devel
BuildRequires: ghc-hspec-megaparsec-devel
BuildRequires: ghc-hspec-megaparsec-prof
BuildRequires: ghc-hspec-prof
%endif
%description
Megaparsec parser of CSV files that plays nicely with Cassava.
%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}
%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.md
%files devel -f %{name}-devel.files
%doc CHANGELOG.md README.md
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
%license LICENSE.md
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
%changelog