From 28cfcb1f99a9c02f8b0d977f059f7ec020a10754222ea056807b85588ab43f40 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 10 Dec 2024 11:25:51 +0000 Subject: [PATCH 1/2] 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 --- .gitattributes | 23 +++++++ .gitignore | 1 + cassava-megaparsec-2.0.4.tar.gz | 3 + cassava-megaparsec-2.1.1.tar.gz | 3 + cassava-megaparsec.cabal | 72 +++++++++++++++++++++ ghc-cassava-megaparsec.changes | 69 ++++++++++++++++++++ ghc-cassava-megaparsec.spec | 110 ++++++++++++++++++++++++++++++++ 7 files changed, 281 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 cassava-megaparsec-2.0.4.tar.gz create mode 100644 cassava-megaparsec-2.1.1.tar.gz create mode 100644 cassava-megaparsec.cabal create mode 100644 ghc-cassava-megaparsec.changes create mode 100644 ghc-cassava-megaparsec.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/cassava-megaparsec-2.0.4.tar.gz b/cassava-megaparsec-2.0.4.tar.gz new file mode 100644 index 0000000..7ca6dbf --- /dev/null +++ b/cassava-megaparsec-2.0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16398f202df2898de482c156835ba6e7dea8ef71d7ac818c5cd4e72ad1f8e95d +size 6328 diff --git a/cassava-megaparsec-2.1.1.tar.gz b/cassava-megaparsec-2.1.1.tar.gz new file mode 100644 index 0000000..45fb926 --- /dev/null +++ b/cassava-megaparsec-2.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4631963337675db145c2bf9752bf27b4bae68b7c48ffcac60b428f557b63e786 +size 7428 diff --git a/cassava-megaparsec.cabal b/cassava-megaparsec.cabal new file mode 100644 index 0000000..cccae8e --- /dev/null +++ b/cassava-megaparsec.cabal @@ -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 +maintainer: Mark Karpov +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 diff --git a/ghc-cassava-megaparsec.changes b/ghc-cassava-megaparsec.changes new file mode 100644 index 0000000..5da7283 --- /dev/null +++ b/ghc-cassava-megaparsec.changes @@ -0,0 +1,69 @@ +------------------------------------------------------------------- +Wed Feb 28 22:05:52 UTC 2024 - Peter Simons + +- 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 + +- Forgot to update copyright header in spec file after last change. + +------------------------------------------------------------------- +Tue Mar 12 15:06:36 UTC 2024 - Peter Simons + +- Jailbreak build for ghc-9.8.x. + +------------------------------------------------------------------- +Thu Mar 30 17:06:09 UTC 2023 - Peter Simons + +- Updated spec file to conform with ghc-rpm-macros-2.5.2. + +------------------------------------------------------------------- +Tue Dec 27 19:24:30 UTC 2022 - Peter Simons + +- 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 + +- 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 + +- Relax over-specified constraint on megaparsec. + +------------------------------------------------------------------- +Tue Aug 18 10:44:16 UTC 2020 - Peter Simons + +- 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. + diff --git a/ghc-cassava-megaparsec.spec b/ghc-cassava-megaparsec.spec new file mode 100644 index 0000000..2fe104d --- /dev/null +++ b/ghc-cassava-megaparsec.spec @@ -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 From eca49039d2b9baf08fcaf84e75d3e371f1c95d68f73566920d0ec7dc58666805 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 16 Dec 2024 13:48:17 +0000 Subject: [PATCH 2/2] osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-cassava-megaparsec revision:3, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-cassava-megaparsec?expand=0&rev=28 --- ghc-cassava-megaparsec.changes | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ghc-cassava-megaparsec.changes b/ghc-cassava-megaparsec.changes index 5da7283..c2d1c2c 100644 --- a/ghc-cassava-megaparsec.changes +++ b/ghc-cassava-megaparsec.changes @@ -1,5 +1,5 @@ ------------------------------------------------------------------- -Wed Feb 28 22:05:52 UTC 2024 - Peter Simons +Wed May 28 22:05:52 UTC 2024 - Peter Simons - Update cassava-megaparsec to version 2.1.1. ## Cassava Megaparsec 2.1.0 @@ -41,9 +41,9 @@ Mon Nov 1 08:26:35 UTC 2021 - psimons@suse.com ------------------------------------------------------------------- Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup - + - disable %{ix86} build - + ------------------------------------------------------------------- Sat Sep 12 16:16:32 UTC 2020 - psimons@suse.com @@ -66,4 +66,3 @@ Tue Aug 18 10:44:16 UTC 2020 - Peter Simons Tue Jun 9 09:27:56 UTC 2020 - psimons@suse.com - Add cassava-megaparsec at version 2.0.1. -