From 49bcdaa8d5d2584598aa4023e232cb5441f33b856353291f8e3c18c2adc42fe5 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 10 Nov 2023 14:07:17 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-9.6.x package:ghc-comonad revision:4, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-comonad?expand=0&rev=67 --- .gitattributes | 23 +++++++ .gitignore | 1 + comonad-5.0.8.tar.gz | 3 + comonad.cabal | 125 +++++++++++++++++++++++++++++++++++ ghc-comonad.changes | 152 +++++++++++++++++++++++++++++++++++++++++++ ghc-comonad.spec | 103 +++++++++++++++++++++++++++++ 6 files changed, 407 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 comonad-5.0.8.tar.gz create mode 100644 comonad.cabal create mode 100644 ghc-comonad.changes create mode 100644 ghc-comonad.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/comonad-5.0.8.tar.gz b/comonad-5.0.8.tar.gz new file mode 100644 index 0000000..76ab11d --- /dev/null +++ b/comonad-5.0.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ef6cdf2cc292cc43ee6aa96c581b235fdea8ab44a0bffb24dc79ae2b2ef33d13 +size 15227 diff --git a/comonad.cabal b/comonad.cabal new file mode 100644 index 0000000..9b23ddc --- /dev/null +++ b/comonad.cabal @@ -0,0 +1,125 @@ +name: comonad +category: Control, Comonads +version: 5.0.8 +x-revision: 2 +license: BSD3 +cabal-version: >= 1.10 +license-file: LICENSE +author: Edward A. Kmett +maintainer: Edward A. Kmett +stability: provisional +homepage: http://github.com/ekmett/comonad/ +bug-reports: http://github.com/ekmett/comonad/issues +copyright: Copyright (C) 2008-2014 Edward A. Kmett, + Copyright (C) 2004-2008 Dave Menendez +synopsis: Comonads +description: Comonads. +build-type: Simple +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.3 + , GHC == 8.10.1 +extra-source-files: + .gitignore + .hlint.yaml + .vim.custom + coq/Store.v + README.markdown + CHANGELOG.markdown + examples/History.hs + +flag containers + description: + You can disable the use of the `containers` package using `-f-containers`. + . + Disabing this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users. + default: True + manual: True + +flag distributive + description: + You can disable the use of the `distributive` package using `-f-distributive`. + . + Disabling this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users. + . + If disabled we will not supply instances of `Distributive` + . + default: True + manual: True + +flag indexed-traversable + description: + You can disable the use of the `indexed-traversable` package using `-f-indexed-traversable`. + . + Disabling this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users. + . + If disabled we will not supply instances of `FunctorWithIndex` + . + default: True + manual: True + + +source-repository head + type: git + location: git://github.com/ekmett/comonad.git + +library + hs-source-dirs: src + default-language: Haskell2010 + ghc-options: -Wall + + build-depends: + base >= 4 && < 5, + tagged >= 0.8.6.1 && < 1, + transformers >= 0.3 && < 0.7, + transformers-compat >= 0.5 && < 1 + + if !impl(ghc >= 8.0) + build-depends: semigroups >= 0.18.5 && < 1 + + if flag(containers) + build-depends: containers >= 0.3 && < 0.8 + + if flag(distributive) + build-depends: distributive >= 0.5.2 && < 1 + + if flag(indexed-traversable) + build-depends: indexed-traversable >= 0.1.1 && < 0.2 + + if impl(ghc >= 9.0) + -- these flags may abort compilation with GHC-8.10 + -- https://gitlab.haskell.org/ghc/ghc/-/merge_requests/3295 + ghc-options: -Winferred-safe-imports -Wmissing-safe-haskell-mode + + exposed-modules: + Control.Comonad + Control.Comonad.Env + Control.Comonad.Env.Class + Control.Comonad.Hoist.Class + Control.Comonad.Identity + Control.Comonad.Store + Control.Comonad.Store.Class + Control.Comonad.Traced + Control.Comonad.Traced.Class + Control.Comonad.Trans.Class + Control.Comonad.Trans.Env + Control.Comonad.Trans.Identity + Control.Comonad.Trans.Store + Control.Comonad.Trans.Traced + Data.Functor.Composition + + other-extensions: + CPP + RankNTypes + MultiParamTypeClasses + FunctionalDependencies + FlexibleInstances + UndecidableInstances diff --git a/ghc-comonad.changes b/ghc-comonad.changes new file mode 100644 index 0000000..883bbb6 --- /dev/null +++ b/ghc-comonad.changes @@ -0,0 +1,152 @@ +------------------------------------------------------------------- +Sat Sep 30 12:22:30 UTC 2023 - Peter Simons + +- Update comonad to version 5.0.8 revision 2. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Thu Mar 30 17:06:17 UTC 2023 - Peter Simons + +- Updated spec file to conform with ghc-rpm-macros-2.5.2. + +------------------------------------------------------------------- +Wed Aug 4 08:16:12 UTC 2021 - psimons@suse.com + +- Update comonad to version 5.0.8 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Wed Dec 30 17:52:56 UTC 2020 - psimons@suse.com + +- Update comonad to version 5.0.8. + 5.0.8 [2020.12.30] + ------------------ + * Explicitly mark modules as Safe or Trustworthy. + * The build-type has been changed from `Custom` to `Simple`. + To achieve this, the `doctests` test suite has been removed in favor of using + [`cabal-docspec`](https://github.com/phadej/cabal-extras/tree/master/cabal-docspec) + to run the doctests. + +------------------------------------------------------------------- +Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup + +- disable %{ix86} build + +------------------------------------------------------------------- +Wed Dec 16 17:25:51 UTC 2020 - psimons@suse.com + +- Update comonad to version 5.0.7. + 5.0.7 [2020.12.15] + ------------------ + * Move `FunctorWithIndex (TracedT m w)` instance from `lens`. + This instance depends on the `indexed-traversable` package. This can be disabled using the flag of the same name. + +------------------------------------------------------------------- +Mon Aug 31 09:34:36 UTC 2020 - psimons@suse.com + +- Update comonad to version 5.0.6 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Tue Aug 18 10:44:23 UTC 2020 - Peter Simons + +- Replace %setup -q with the more modern %autosetup macro. + +------------------------------------------------------------------- +Tue Jun 16 11:13:54 UTC 2020 - Peter Simons + +- Re-generate file with latest version of spec-cleaner. + +------------------------------------------------------------------- +Wed Nov 27 03:01:04 UTC 2019 - psimons@suse.com + +- Update comonad to version 5.0.6. + 5.0.6 [2019.11.26] + ------------------ + * Achieve forward compatibility with + [GHC proposal 229](https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0229-whitespace-bang-patterns.rst). + +------------------------------------------------------------------- +Fri Nov 8 16:13:26 UTC 2019 - Peter Simons + +- Drop obsolete group attributes. + +------------------------------------------------------------------- +Fri May 3 02:03:15 UTC 2019 - psimons@suse.com + +- Update comonad to version 5.0.5. + 5.0.5 [2019.05.02] + ------------------ + * Raised the minimum `semigroups` version to 0.16.2. In addition, the + package will only be required at all for GHCs before 8.0. + * Drop the `contravariant` flag from `comonad.cabal`, as `comonad` no longer + depends on the `contravariant` library. + +------------------------------------------------------------------- +Sat Oct 20 11:31:19 UTC 2018 - Peter Simons + +- Use https URL to refer to bugs.opensuse.org. + +------------------------------------------------------------------- +Wed Jul 18 14:26:18 UTC 2018 - psimons@suse.com + +- Cosmetic: replace tabs with blanks, strip trailing white space, + and update copyright headers with spec-cleaner. + +------------------------------------------------------------------- +Fri Jul 13 14:31:25 UTC 2018 - psimons@suse.com + +- Update comonad to version 5.0.4. + 5.0.4 [2018.07.01] + ------------------ + * Add `Comonad` instances for `Tagged s` with `s` of any kind. Before the + change, `s` had to be of kind `*`. + * Allow `containers-0.6`. + +------------------------------------------------------------------- +Mon May 14 17:02:11 UTC 2018 - psimons@suse.com + +- Update comonad to version 5.0.3 revision 2. + * Don't enable `Safe` on GHC 7.2. + * Support `doctest-0.12` + +------------------------------------------------------------------- +Mon Apr 24 12:26:15 UTC 2017 - psimons@suse.com + +- Update to version 5.0.1 with cabal2obs. + +------------------------------------------------------------------- +Thu Sep 15 07:03:15 UTC 2016 - psimons@suse.com + +- Update to version 5 revision 0 with cabal2obs. + +------------------------------------------------------------------- +Sun Jul 10 17:29:37 UTC 2016 - psimons@suse.com + +- Update to version 4.2.7.2 revision 0 with cabal2obs. + +------------------------------------------------------------------- +Mon Jul 27 07:08:24 UTC 2015 - mimi.vx@gmail.com + +- update to 4.2.7.2 +* Compiles warning-free on GHC 7.10 +* Use CPP +* Trustworthy fixes for GHC 7.2 + +------------------------------------------------------------------- +Thu May 21 06:37:00 UTC 2015 - mimi.vx@gmail.com + +- correct licence to BSD-2-Clause + +------------------------------------------------------------------- +Sun May 17 14:56:01 UTC 2015 - mimi.vx@gmail.com + +- update to 4.2.6 +* Re-export `(Data.Functor.$>)` rather than supply our own on GHC 7.8+ +* Better SafeHaskell support. +* `instance Monoid m => ComonadTraced m ((->) m)` + +------------------------------------------------------------------- +Sun Apr 26 16:54:54 UTC 2015 - mimi.vx@gmail.com + +- initial commit diff --git a/ghc-comonad.spec b/ghc-comonad.spec new file mode 100644 index 0000000..54b4197 --- /dev/null +++ b/ghc-comonad.spec @@ -0,0 +1,103 @@ +# +# spec file for package ghc-comonad +# +# 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 +# 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 comonad +%global pkgver %{pkg_name}-%{version} +Name: ghc-%{pkg_name} +Version: 5.0.8 +Release: 0 +Summary: Comonads +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/2.cabal#/%{pkg_name}.cabal +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-containers-devel +BuildRequires: ghc-containers-prof +BuildRequires: ghc-distributive-devel +BuildRequires: ghc-distributive-prof +BuildRequires: ghc-indexed-traversable-devel +BuildRequires: ghc-indexed-traversable-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-tagged-devel +BuildRequires: ghc-tagged-prof +BuildRequires: ghc-transformers-compat-devel +BuildRequires: ghc-transformers-compat-prof +BuildRequires: ghc-transformers-devel +BuildRequires: ghc-transformers-prof +ExcludeArch: %{ix86} + +%description +Comonads. + +%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 + +%post devel +%ghc_pkg_recache + +%postun devel +%ghc_pkg_recache + +%files -f %{name}.files +%license LICENSE + +%files devel -f %{name}-devel.files +%doc CHANGELOG.markdown README.markdown 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