From a59bc50abd5517a2aa0ee39ec247a91181ae78a5f3790d7afd09e78baaa3cf93 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 30 Mar 2023 08:26:26 +0000 Subject: [PATCH 1/2] osc copypac from project:devel:languages:haskell:ghc-9.4.x package:ghc-invariant revision:6, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-invariant?expand=0&rev=39 --- ghc-invariant.changes | 7 ++++ ghc-invariant.spec | 46 +++++++++++++++++++++-- invariant-0.6.1.tar.gz | 3 ++ invariant-0.6.tar.gz | 3 -- invariant.cabal | 83 ------------------------------------------ 5 files changed, 52 insertions(+), 90 deletions(-) create mode 100644 invariant-0.6.1.tar.gz delete mode 100644 invariant-0.6.tar.gz delete mode 100644 invariant.cabal diff --git a/ghc-invariant.changes b/ghc-invariant.changes index a525ea8..08f9230 100644 --- a/ghc-invariant.changes +++ b/ghc-invariant.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Feb 27 12:52:48 UTC 2023 - Peter Simons + +- Update invariant to version 0.6.1. + # 0.6.1 [2023.02.27] + * Support `th-abstraction-0.5.*`. + ------------------------------------------------------------------- Sat Jul 23 18:37:39 UTC 2022 - Peter Simons diff --git a/ghc-invariant.spec b/ghc-invariant.spec index b31b813..faab44f 100644 --- a/ghc-invariant.spec +++ b/ghc-invariant.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-invariant # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,35 +17,53 @@ %global pkg_name invariant +%global pkgver %{pkg_name}-%{version} %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.6 +Version: 0.6.1 Release: 0 Summary: Haskell98 invariant functors License: BSD-2-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/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-StateVar-devel +BuildRequires: ghc-StateVar-prof BuildRequires: ghc-array-devel +BuildRequires: ghc-array-prof +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof BuildRequires: ghc-bifunctors-devel +BuildRequires: ghc-bifunctors-prof BuildRequires: ghc-comonad-devel +BuildRequires: ghc-comonad-prof BuildRequires: ghc-containers-devel +BuildRequires: ghc-containers-prof BuildRequires: ghc-contravariant-devel +BuildRequires: ghc-contravariant-prof BuildRequires: ghc-profunctors-devel +BuildRequires: ghc-profunctors-prof BuildRequires: ghc-rpm-macros BuildRequires: ghc-stm-devel +BuildRequires: ghc-stm-prof BuildRequires: ghc-tagged-devel +BuildRequires: ghc-tagged-prof BuildRequires: ghc-template-haskell-devel +BuildRequires: ghc-template-haskell-prof BuildRequires: ghc-th-abstraction-devel +BuildRequires: ghc-th-abstraction-prof BuildRequires: ghc-transformers-compat-devel +BuildRequires: ghc-transformers-compat-prof BuildRequires: ghc-transformers-devel +BuildRequires: ghc-transformers-prof BuildRequires: ghc-unordered-containers-devel +BuildRequires: ghc-unordered-containers-prof ExcludeArch: %{ix86} %if %{with tests} BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-QuickCheck-prof BuildRequires: ghc-hspec-devel +BuildRequires: ghc-hspec-prof %endif %description @@ -65,9 +83,24 @@ 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 @@ -90,4 +123,9 @@ cp -p %{SOURCE1} %{pkg_name}.cabal %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 + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + %changelog diff --git a/invariant-0.6.1.tar.gz b/invariant-0.6.1.tar.gz new file mode 100644 index 0000000..5f23bd8 --- /dev/null +++ b/invariant-0.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb7294ade6554e9c6e77020f065f3acb63f78e62019e4830ea509c36c8b0d4f0 +size 27873 diff --git a/invariant-0.6.tar.gz b/invariant-0.6.tar.gz deleted file mode 100644 index eae9525..0000000 --- a/invariant-0.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b52b2a798c514e2f3bb37d9d629078f433745fa8a25756198c4d33751d7bce1d -size 27707 diff --git a/invariant.cabal b/invariant.cabal deleted file mode 100644 index d6faf73..0000000 --- a/invariant.cabal +++ /dev/null @@ -1,83 +0,0 @@ -name: invariant -version: 0.6 -x-revision: 1 -synopsis: Haskell98 invariant functors -description: Haskell98 invariant functors (also known as exponential functors). - . - For more information, see Edward Kmett's article \"Rotten Bananas\": - . - -category: Control, Data -license: BSD2 -license-file: LICENSE -homepage: https://github.com/nfrisby/invariant-functors -bug-reports: https://github.com/nfrisby/invariant-functors/issues -author: Nicolas Frisby -maintainer: Nicolas Frisby , - Ryan Scott -build-type: Simple -cabal-version: >= 1.10 -tested-with: GHC == 7.0.4 - , GHC == 7.2.2 - , GHC == 7.4.2 - , GHC == 7.6.3 - , GHC == 7.8.4 - , GHC == 7.10.3 - , GHC == 8.0.2 - , GHC == 8.2.2 - , GHC == 8.4.4 - , GHC == 8.6.5 - , GHC == 8.8.4 - , GHC == 8.10.7 - , GHC == 9.0.1 - , GHC == 9.2.1 -extra-source-files: CHANGELOG.md, README.md - -source-repository head - type: git - location: https://github.com/nfrisby/invariant-functors - -library - exposed-modules: Data.Functor.Invariant - , Data.Functor.Invariant.TH - other-modules: Data.Functor.Invariant.TH.Internal - , Paths_invariant - hs-source-dirs: src - default-language: Haskell2010 - build-depends: array >= 0.3 && < 0.6 - , base >= 4 && < 5 - , bifunctors >= 5.2 && < 6 - , comonad >= 5 && < 6 - , containers >= 0.1 && < 0.7 - , contravariant >= 0.5 && < 2 - , ghc-prim - , profunctors >= 5.2.1 && < 6 - , StateVar >= 1.1 && < 2 - , stm >= 2.2 && < 3 - , tagged >= 0.7.3 && < 1 - , template-haskell >= 2.4 && < 2.20 - , th-abstraction >= 0.4 && < 0.5 - , transformers >= 0.2 && < 0.7 - , transformers-compat >= 0.3 && < 1 - , unordered-containers >= 0.2.4 && < 0.3 - ghc-options: -Wall - - if !impl(ghc >= 8.0) - build-depends: semigroups >= 0.16.2 && < 1 - -test-suite spec - type: exitcode-stdio-1.0 - hs-source-dirs: test - default-language: Haskell2010 - main-is: Spec.hs - other-modules: InvariantSpec - THSpec - build-depends: base >= 4 && < 5 - , hspec >= 1.8 - , invariant - , QuickCheck >= 2.11 && < 3 - , template-haskell >= 2.4 && < 2.20 - build-tool-depends: hspec-discover:hspec-discover - ghc-options: -Wall - if impl(ghc >= 8.6) - ghc-options: -Wno-star-is-type From 07c55b166527e20d9b54d5a4b7a0e9e7eac93191b7dad76c800869d69a279d28 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 30 Mar 2023 17:38:42 +0000 Subject: [PATCH 2/2] osc copypac from project:devel:languages:haskell:ghc-9.4.x package:ghc-invariant revision:7, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-invariant?expand=0&rev=40 --- ghc-invariant.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ghc-invariant.changes b/ghc-invariant.changes index 08f9230..10e36e0 100644 --- a/ghc-invariant.changes +++ b/ghc-invariant.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 30 17:07:17 UTC 2023 - Peter Simons + +- Updated spec file to conform with ghc-rpm-macros-2.5.2. + ------------------------------------------------------------------- Mon Feb 27 12:52:48 UTC 2023 - Peter Simons