From 51ed35de221d79ba96eee3aae02f67be72488a2753aa54e48ec89e57a1798dda Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 10 Dec 2024 11:25:51 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-async revision:2, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-async?expand=0&rev=63 --- .gitattributes | 23 +++++ .gitignore | 1 + async-2.2.5.tar.gz | 3 + async.cabal | 118 ++++++++++++++++++++++ ghc-async.changes | 237 +++++++++++++++++++++++++++++++++++++++++++++ ghc-async.spec | 119 +++++++++++++++++++++++ 6 files changed, 501 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 async-2.2.5.tar.gz create mode 100644 async.cabal create mode 100644 ghc-async.changes create mode 100644 ghc-async.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/async-2.2.5.tar.gz b/async-2.2.5.tar.gz new file mode 100644 index 0000000..d2dfc0c --- /dev/null +++ b/async-2.2.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1818473ebab9212afad2ed76297aefde5fae8b5d4404daf36939aece6a8f16f7 +size 15742 diff --git a/async.cabal b/async.cabal new file mode 100644 index 0000000..218e770 --- /dev/null +++ b/async.cabal @@ -0,0 +1,118 @@ +name: async +version: 2.2.5 +x-revision: 3 +-- don't forget to update ./changelog.md! +synopsis: Run IO operations asynchronously and wait for their results + +description: + This package provides a higher-level interface over + threads, in which an @Async a@ is a concurrent + thread that will eventually deliver a value of + type @a@. The package provides ways to create + @Async@ computations, wait for their results, and + cancel them. + . + Using @Async@ is safer than using threads in two + ways: + . + * When waiting for a thread to return a result, + if the thread dies with an exception then the + caller must either re-throw the exception + ('wait') or handle it ('waitCatch'); the + exception cannot be ignored. + . + * The API makes it possible to build a tree of + threads that are automatically killed when + their parent dies (see 'withAsync'). + +license: BSD3 +license-file: LICENSE +author: Simon Marlow +maintainer: Simon Marlow +copyright: (c) Simon Marlow 2012 +category: Concurrency +build-type: Simple +cabal-version: >=1.10 +homepage: https://github.com/simonmar/async +bug-reports: https://github.com/simonmar/async/issues +tested-with: + GHC == 9.10.1 + GHC == 9.8.2 + GHC == 9.6.6 + GHC == 9.4.8 + 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 + -- CI does not support GHC 7 + -- GHC == 7.10.3 + -- GHC == 7.8.4 + -- GHC == 7.6.3 + -- GHC == 7.4.2 + -- GHC == 7.2.2 + -- GHC == 7.0.4 + +extra-source-files: + changelog.md + bench/race.hs + +source-repository head + type: git + location: https://github.com/simonmar/async.git + +library + default-language: Haskell2010 + other-extensions: CPP, MagicHash, RankNTypes, UnboxedTuples + if impl(ghc>=7.1) + other-extensions: Trustworthy + exposed-modules: Control.Concurrent.Async + Control.Concurrent.Async.Internal + build-depends: base >= 4.3 && < 4.22, + hashable >= 1.1.2.0 && < 1.6, + stm >= 2.2 && < 2.6 + +test-suite test-async + default-language: Haskell2010 + type: exitcode-stdio-1.0 + hs-source-dirs: test + main-is: test-async.hs + build-depends: base, + async, + stm, + test-framework, + test-framework-hunit, + HUnit + +flag bench + default: False + +executable concasync + if !flag(bench) + buildable: False + default-language: Haskell2010 + hs-source-dirs: bench + main-is: concasync.hs + build-depends: base, async, stm + ghc-options: -O2 + +executable conccancel + if !flag(bench) + buildable: False + default-language: Haskell2010 + hs-source-dirs: bench + main-is: conccancel.hs + build-depends: base, async, stm + ghc-options: -O2 -threaded + +executable race + if !flag(bench) + buildable: False + default-language: Haskell2010 + hs-source-dirs: bench + main-is: race.hs + build-depends: base, async, stm + ghc-options: -O2 -threaded diff --git a/ghc-async.changes b/ghc-async.changes new file mode 100644 index 0000000..3b806a6 --- /dev/null +++ b/ghc-async.changes @@ -0,0 +1,237 @@ +------------------------------------------------------------------- +Wed Nov 6 01:56:41 UTC 2024 - Peter Simons + +- Update async to version 2.2.5 revision 3. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Thu Aug 15 18:30:21 UTC 2024 - Peter Simons + +- Update async to version 2.2.5 revision 2. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Sat Apr 13 09:26:04 UTC 2024 - Peter Simons + +- Update async to version 2.2.5 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Tue Nov 21 08:08:04 UTC 2023 - Peter Simons + +- Update async to version 2.2.5. + ## Changes in 2.2.5 + + - #117: Document that empty for Concurrently waits forever + - #120: Add ConcurrentlyE. + - #123: Fix failing concurrentlyE tests in older GHCs. + - #124: Allow hashable 1.4 + - #126: Semigroup and Monoid instances for ConcurrentlyE + - #120: Add ConcurrentlyE + - #138: expose internals as Control.Concurrent.Async.Internal + - #131: Fix typos in docs + - #132: waitAny(Catch): clarify non-empty input list requirement + - #142: Add cancelMany + - #135, #145, #150: Support for GHC 9.4, 9.6, 9.8 + - Document that empty for Concurrently waits forever. + +------------------------------------------------------------------- +Tue Oct 10 13:31:03 UTC 2023 - Peter Simons + +- Update async to version 2.2.4 revision 4. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Thu Mar 30 17:05:50 UTC 2023 - Peter Simons + +- Updated spec file to conform with ghc-rpm-macros-2.5.2. + +------------------------------------------------------------------- +Sun Mar 12 16:44:58 UTC 2023 - Peter Simons + +- Update async to version 2.2.4 revision 3. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Fri Aug 12 07:42:14 UTC 2022 - Peter Simons + +- Update async to version 2.2.4 revision 2. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Thu Nov 11 12:33:06 UTC 2021 - psimons@suse.com + +- Update async to version 2.2.4 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Thu Oct 7 07:57:09 UTC 2021 - psimons@suse.com + +- Update async to version 2.2.4. + ## Changes in 2.2.4: + + - Support for GHC 9.2 + +------------------------------------------------------------------- +Fri Feb 19 23:02:58 UTC 2021 - psimons@suse.com + +- Update async to version 2.2.3. + ## Changes in 2.2.3: + + - Documentation fixes + +------------------------------------------------------------------- +Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup + +- disable %{ix86} build + +------------------------------------------------------------------- +Mon Aug 31 09:34:31 UTC 2020 - psimons@suse.com + +- Update async to version 2.2.2 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Tue Aug 18 10:44:01 UTC 2020 - Peter Simons + +- Replace %setup -q with the more modern %autosetup macro. + +------------------------------------------------------------------- +Tue Jun 16 11:13:44 UTC 2020 - Peter Simons + +- Re-generate file with latest version of spec-cleaner. + +------------------------------------------------------------------- +Thu May 7 08:08:19 UTC 2020 - Peter Simons + +- Update Cabal file to get more accurate dependency information. + +------------------------------------------------------------------- +Fri Nov 8 16:13:14 UTC 2019 - Peter Simons + +- Drop obsolete group attributes. + +------------------------------------------------------------------- +Fri Jun 7 02:01:43 UTC 2019 - psimons@suse.com + +- Update async to version 2.2.2. + ## Changes in 2.2.2: + + - Builds with GHC 8.6.x + - linkOnly and link2Only are now exported + - wait now has the same behaviour with BlockedIndefinitelyOnSTM as waitCatch + - Documentation fixes + +------------------------------------------------------------------- +Fri Oct 19 13:13:07 UTC 2018 - Peter Simons + +- Update Cabal build instructions to support ghc-8.6.1. + +------------------------------------------------------------------- +Wed Jul 18 14:26:13 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 async to version 2.2.1. + - Add a Hashable instance for Async + - Documentation updates + - cancel now throws AsyncCancelled instead of ThreadKilled + - link and link2 now wrap exceptions in ExceptionInLinkedThread when + throwing to the linked thread. ExceptionInLinkedThread is a child + of AsyncException in the exception hierarchy, so this maintains the + invariant that exceptions thrown asynchronously should be + AsyncExceptions. + - link and link2 do not propagate AsyncCancelled, so it's now + possible to cancel a linked thread without cancelling yourself. + - Added linkOnly and link2Only to specify which exceptions should be + propagated,if you want something other than the default behaviour + of ignoring AsyncCancelled. + - new utility function compareAsyncs for comparing Asyncs of + different types. + +------------------------------------------------------------------- +Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com + +- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf. + +------------------------------------------------------------------- +Wed Apr 19 13:20:19 UTC 2017 - psimons@suse.com + +- Update to version 2.1.1.1 with cabal2obs. + +------------------------------------------------------------------- +Tue Nov 22 16:06:37 UTC 2016 - psimons@suse.com + +- Update to version 2.1.1 with cabal2obs. + +------------------------------------------------------------------- +Sun Jul 10 17:18:01 UTC 2016 - psimons@suse.com + +- Update to version 2.1.0 revision 0 with cabal2obs. + +------------------------------------------------------------------- +Sun Jan 24 10:10:44 UTC 2016 - mimi.vx@gmail.com + +- update to 2.1.0 +* Bump base dependency to allow 4.10 +* Remove invalid Monad instance for Concurrently +* Add Monoid and Semigroup instances for Concurrently +* Add forConcurrently (flipped version of mapConcurrently) +* Add STM version of all applicable IO functions: waitAnySTM, waitAnyCatchSTM, + waitEitherSTM, waitEitherCatchSTM, waitEitherSTM_, and waitBothSTM. + +------------------------------------------------------------------- +Mon Apr 13 07:36:06 UTC 2015 - mimi.vx@gmail.com + +- update to 2.0.2 +* Add a Monad instance for Concurrently * Bump base dependency to allow 4.9 +* Add workaround to waitCatch for #14 + +------------------------------------------------------------------- +Tue Sep 9 20:19:55 UTC 2014 - peter.trommler@ohm-hochschule.de + +- update to 2.0.1.5 +* update dependency for ghc 7.8 +* for Haskell Platform 2014.2.0.0 + +------------------------------------------------------------------- +Mon Sep 1 17:32:19 UTC 2014 - peter.trommler@ohm-hochschule.de + +- regenerate spec file with cabal-rpm 0.8.6 +* require exact version of ghc-compiler + +------------------------------------------------------------------- +Sat Aug 23 00:06:34 UTC 2014 - peter.trommler@ohm-hochschule.de + +- enable PowerPC builds + +------------------------------------------------------------------- +Mon May 6 11:19:22 UTC 2013 - peter.trommler@ohm-hochschule.de + +- update to 2.0.1.4 from upstream +* fix in test suite +- version required for Haskell Platform 2013.2 + +------------------------------------------------------------------- +Mon May 6 10:53:30 UTC 2013 - peter.trommler@ohm-hochschule.de + +- more transparent packaging (fewer macros) + +------------------------------------------------------------------- +Wed Jan 2 15:37:31 UTC 2013 - peter.trommler@ohm-hochschule.de + +- expand macro in name tag to help source validator + +------------------------------------------------------------------- +Sat Nov 17 14:16:42 UTC 2012 - peter.trommler@ohm-hochschule.de + +- make service localonly for Factory submission + +------------------------------------------------------------------- +Mon Oct 1 18:45:55 UTC 2012 - peter.trommler@ohm-hochschule.de + +- Initial package generated by cabal2spec diff --git a/ghc-async.spec b/ghc-async.spec new file mode 100644 index 0000000..fcaf940 --- /dev/null +++ b/ghc-async.spec @@ -0,0 +1,119 @@ +# +# spec file for package ghc-async +# +# 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 async +%global pkgver %{pkg_name}-%{version} +%bcond_with tests +Name: ghc-%{pkg_name} +Version: 2.2.5 +Release: 0 +Summary: Run IO operations asynchronously and wait for their results +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/3.cabal#/%{pkg_name}.cabal +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-hashable-devel +BuildRequires: ghc-hashable-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-stm-devel +BuildRequires: ghc-stm-prof +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-HUnit-prof +BuildRequires: ghc-test-framework-devel +BuildRequires: ghc-test-framework-hunit-devel +BuildRequires: ghc-test-framework-hunit-prof +BuildRequires: ghc-test-framework-prof +%endif + +%description +This package provides a higher-level interface over threads, in which an 'Async +a' is a concurrent thread that will eventually deliver a value of type 'a'. +The package provides ways to create 'Async' computations, wait for their +results, and cancel them. + +Using 'Async' is safer than using threads in two ways: + +* When waiting for a thread to return a result, if the thread dies with an +exception then the caller must either re-throw the exception ('wait') or handle +it ('waitCatch'); the exception cannot be ignored. + +* The API makes it possible to build a tree of threads that are automatically +killed when their parent dies (see 'withAsync'). + +%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 changelog.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