From 55c25c145948d7c0d0b874abdd73fc6dac052d59 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 3 Feb 2014 12:48:54 +0000 Subject: [PATCH 01/48] Initial setup of the repo --- .gitignore | 0 sources | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 .gitignore create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/sources b/sources new file mode 100644 index 0000000..e69de29 From 9a69ca4784ac7d018c52d72735162a65ce8a35d4 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 4 Feb 2014 13:14:57 +0900 Subject: [PATCH 02/48] import (#1035543) --- .gitignore | 1 + ghc-async.spec | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 83 insertions(+) create mode 100644 ghc-async.spec diff --git a/.gitignore b/.gitignore index e69de29..6485beb 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/async-2.0.1.4.tar.gz diff --git a/ghc-async.spec b/ghc-async.spec new file mode 100644 index 0000000..cb377eb --- /dev/null +++ b/ghc-async.spec @@ -0,0 +1,81 @@ +# https://fedoraproject.org/wiki/Packaging:Haskell + +%global pkg_name async + +Name: ghc-%{pkg_name} +# part of Haskell Platform +Version: 2.0.1.4 +Release: 27%{?dist} +Summary: Asynchronous IO operations + +License: BSD +URL: http://hackage.haskell.org/package/%{pkg_name} +Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz + +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-rpm-macros +# Begin cabal-rpm deps: +BuildRequires: ghc-stm-devel +# End cabal-rpm deps + +%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 +Provides: %{name}-static = %{version}-%{release} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package provides the Haskell %{pkg_name} library development files. + + +%prep +%setup -q -n %{pkg_name}-%{version} + + +%build +%ghc_lib_build + + +%install +%ghc_lib_install + + +%post devel +%ghc_pkg_recache + + +%postun devel +%ghc_pkg_recache + + +%files -f %{name}.files +%doc LICENSE + + +%files devel -f %{name}-devel.files + + +%changelog +* Thu Nov 28 2013 Jens Petersen - 2.0.1.4-27 +- separate source package from haskell-platform + +* Thu Nov 28 2013 Fedora Haskell SIG - 2.0.1.4 +- spec file generated by cabal-rpm-0.8.7 diff --git a/sources b/sources index e69de29..91f0b38 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b62af9134df64aaa6868a7c50c856c38 async-2.0.1.4.tar.gz From f6bc1337267367a6b8f56e811779451e854abe76 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 4 Feb 2014 13:16:14 +0900 Subject: [PATCH 03/48] bump release over current haskell-platform --- ghc-async.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-async.spec b/ghc-async.spec index cb377eb..1e6361f 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -5,7 +5,7 @@ Name: ghc-%{pkg_name} # part of Haskell Platform Version: 2.0.1.4 -Release: 27%{?dist} +Release: 30%{?dist} Summary: Asynchronous IO operations License: BSD @@ -74,6 +74,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Tue Feb 4 2014 Jens Petersen - 2.0.1.4-30 +- bump release over current haskell-platform + * Thu Nov 28 2013 Jens Petersen - 2.0.1.4-27 - separate source package from haskell-platform From a792afacbc62391fc648b9b5835ee087200db0c3 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 14 May 2014 16:21:47 +0900 Subject: [PATCH 04/48] update to 2.0.1.5 for ghc-7.8 --- .gitignore | 1 + ghc-async.spec | 12 +++++++++--- sources | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 6485beb..764d10a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /async-2.0.1.4.tar.gz +/async-2.0.1.5.tar.gz diff --git a/ghc-async.spec b/ghc-async.spec index 1e6361f..32af98f 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -2,15 +2,18 @@ %global pkg_name async +# no useful debuginfo for Haskell packages without C sources +%global debug_package %{nil} + Name: ghc-%{pkg_name} # part of Haskell Platform -Version: 2.0.1.4 -Release: 30%{?dist} +Version: 2.0.1.5 +Release: 1%{?dist} Summary: Asynchronous IO operations License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} -Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz +Source0: http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros @@ -74,6 +77,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Wed May 14 2014 Jens Petersen - 2.0.1.5-1 +- update to 2.0.1.5 + * Tue Feb 4 2014 Jens Petersen - 2.0.1.4-30 - bump release over current haskell-platform diff --git a/sources b/sources index 91f0b38..ff38305 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b62af9134df64aaa6868a7c50c856c38 async-2.0.1.4.tar.gz +fa571b9056764ed6d419dadd1349d1e3 async-2.0.1.5.tar.gz From aeed690a77285156282d37c8ab0a613407a2447b Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 6 Jun 2014 02:07:12 +0900 Subject: [PATCH 05/48] opt out of f21 mass rebuild due to changes staged for ghc78 --- noautobuild | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 noautobuild diff --git a/noautobuild b/noautobuild new file mode 100644 index 0000000..e69de29 From fd8404175c084346462d0dfb0cbede518d379319 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 8 Jul 2014 15:43:08 +0900 Subject: [PATCH 06/48] revert back to 2.0.1.4 until we have ghc-7.8 --- .gitignore | 1 - ghc-async.spec | 8 ++++---- noautobuild | 0 sources | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 noautobuild diff --git a/.gitignore b/.gitignore index 764d10a..6485beb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ /async-2.0.1.4.tar.gz -/async-2.0.1.5.tar.gz diff --git a/ghc-async.spec b/ghc-async.spec index 32af98f..1caf504 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -7,8 +7,8 @@ Name: ghc-%{pkg_name} # part of Haskell Platform -Version: 2.0.1.5 -Release: 1%{?dist} +Version: 2.0.1.4 +Release: 31%{?dist} Summary: Asynchronous IO operations License: BSD @@ -77,8 +77,8 @@ This package provides the Haskell %{pkg_name} library development files. %changelog -* Wed May 14 2014 Jens Petersen - 2.0.1.5-1 -- update to 2.0.1.5 +* Tue Jul 8 2014 Jens Petersen - 2.0.1.4-31 +- f21 rebuild * Tue Feb 4 2014 Jens Petersen - 2.0.1.4-30 - bump release over current haskell-platform diff --git a/noautobuild b/noautobuild deleted file mode 100644 index e69de29..0000000 diff --git a/sources b/sources index ff38305..91f0b38 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -fa571b9056764ed6d419dadd1349d1e3 async-2.0.1.5.tar.gz +b62af9134df64aaa6868a7c50c856c38 async-2.0.1.4.tar.gz From a2a5c3d9058d1e8eefdc171eaf51a0d1e317f2c2 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 8 Aug 2014 15:46:06 +0200 Subject: [PATCH 07/48] update to 2.0.1.5 --- .gitignore | 1 + ghc-async.spec | 20 ++++++++++++++++++-- sources | 2 +- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 6485beb..764d10a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /async-2.0.1.4.tar.gz +/async-2.0.1.5.tar.gz diff --git a/ghc-async.spec b/ghc-async.spec index 1caf504..ed31383 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -2,13 +2,15 @@ %global pkg_name async +%bcond_with tests + # no useful debuginfo for Haskell packages without C sources %global debug_package %{nil} Name: ghc-%{pkg_name} # part of Haskell Platform -Version: 2.0.1.4 -Release: 31%{?dist} +Version: 2.0.1.5 +Release: 1%{?dist} Summary: Asynchronous IO operations License: BSD @@ -19,6 +21,11 @@ BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-stm-devel +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-test-framework-devel +BuildRequires: ghc-test-framework-hunit-devel +%endif # End cabal-rpm deps %description @@ -61,6 +68,12 @@ This package provides the Haskell %{pkg_name} library development files. %ghc_lib_install +%check +%if %{with tests} +%cabal test +%endif + + %post devel %ghc_pkg_recache @@ -77,6 +90,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Fri Aug 8 2014 Jens Petersen - 2.0.1.5-1 +- update to 2.0.1.5 + * Tue Jul 8 2014 Jens Petersen - 2.0.1.4-31 - f21 rebuild diff --git a/sources b/sources index 91f0b38..ff38305 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b62af9134df64aaa6868a7c50c856c38 async-2.0.1.4.tar.gz +fa571b9056764ed6d419dadd1349d1e3 async-2.0.1.5.tar.gz From e6e8600cff8eb91450d52ea0acc27ab3b65b2de6 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Sat, 16 Aug 2014 14:38:50 +0000 Subject: [PATCH 08/48] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild --- ghc-async.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-async.spec b/ghc-async.spec index ed31383..99c247a 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -10,7 +10,7 @@ Name: ghc-%{pkg_name} # part of Haskell Platform Version: 2.0.1.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Asynchronous IO operations License: BSD @@ -90,6 +90,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Sat Aug 16 2014 Fedora Release Engineering - 2.0.1.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + * Fri Aug 8 2014 Jens Petersen - 2.0.1.5-1 - update to 2.0.1.5 From eb856a69b1ec49cb9abf0a8f575fee3d7038b466 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Mon, 26 Jan 2015 23:56:42 +0900 Subject: [PATCH 09/48] cblrpm refresh --- ghc-async.spec | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/ghc-async.spec b/ghc-async.spec index 99c247a..25aeca5 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -4,18 +4,15 @@ %bcond_with tests -# no useful debuginfo for Haskell packages without C sources -%global debug_package %{nil} - Name: ghc-%{pkg_name} # part of Haskell Platform Version: 2.0.1.5 -Release: 2%{?dist} -Summary: Asynchronous IO operations +Release: 1%{?dist} +Summary: Run IO operations asynchronously and wait for their results License: BSD -URL: http://hackage.haskell.org/package/%{pkg_name} -Source0: http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +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-rpm-macros @@ -90,9 +87,6 @@ This package provides the Haskell %{pkg_name} library development files. %changelog -* Sat Aug 16 2014 Fedora Release Engineering - 2.0.1.5-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - * Fri Aug 8 2014 Jens Petersen - 2.0.1.5-1 - update to 2.0.1.5 From 0e27eda0490a8b15328cbe3d697844f87f59e9e3 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 17 Jun 2015 07:31:12 +0000 Subject: [PATCH 10/48] - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild --- ghc-async.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-async.spec b/ghc-async.spec index 25aeca5..fc328a3 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -7,7 +7,7 @@ Name: ghc-%{pkg_name} # part of Haskell Platform Version: 2.0.1.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD @@ -87,6 +87,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Wed Jun 17 2015 Fedora Release Engineering - 2.0.1.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + * Fri Aug 8 2014 Jens Petersen - 2.0.1.5-1 - update to 2.0.1.5 From 7761db1c5df5d66d1a0a63f3b5b165f626e171e0 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 29 Sep 2015 18:42:59 +0900 Subject: [PATCH 11/48] update to 2.0.2 --- .gitignore | 1 + ghc-async.spec | 17 +++++++++++------ sources | 2 +- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 764d10a..d937059 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /async-2.0.1.4.tar.gz /async-2.0.1.5.tar.gz +/async-2.0.2.tar.gz diff --git a/ghc-async.spec b/ghc-async.spec index fc328a3..f20413f 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -6,8 +6,8 @@ Name: ghc-%{pkg_name} # part of Haskell Platform -Version: 2.0.1.5 -Release: 2%{?dist} +Version: 2.0.2 +Release: 1%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD @@ -27,11 +27,11 @@ BuildRequires: ghc-test-framework-hunit-devel %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, +'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: +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 @@ -64,6 +64,8 @@ This package provides the Haskell %{pkg_name} library development files. %install %ghc_lib_install +rm %{buildroot}%{ghc_pkgdocdir}/LICENSE + %check %if %{with tests} @@ -80,13 +82,16 @@ This package provides the Haskell %{pkg_name} library development files. %files -f %{name}.files -%doc LICENSE +%license LICENSE %files devel -f %{name}-devel.files %changelog +* Tue Sep 29 2015 Jens Petersen - 2.0.2-1 +- update to 2.0.2 + * Wed Jun 17 2015 Fedora Release Engineering - 2.0.1.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/sources b/sources index ff38305..6921ae5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -fa571b9056764ed6d419dadd1349d1e3 async-2.0.1.5.tar.gz +801c094592caacb0306fa05f754f9d20 async-2.0.2.tar.gz From 5fad3ebc84c30942cc4de2556ac90d66c0b00a70 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Mon, 1 Feb 2016 23:29:58 +0900 Subject: [PATCH 12/48] Revert "update to 2.0.2" This reverts commit 7761db1c5df5d66d1a0a63f3b5b165f626e171e0. --- .gitignore | 1 - ghc-async.spec | 17 ++++++----------- sources | 2 +- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index d937059..764d10a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ /async-2.0.1.4.tar.gz /async-2.0.1.5.tar.gz -/async-2.0.2.tar.gz diff --git a/ghc-async.spec b/ghc-async.spec index f20413f..fc328a3 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -6,8 +6,8 @@ Name: ghc-%{pkg_name} # part of Haskell Platform -Version: 2.0.2 -Release: 1%{?dist} +Version: 2.0.1.5 +Release: 2%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD @@ -27,11 +27,11 @@ BuildRequires: ghc-test-framework-hunit-devel %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, +"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: +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 @@ -64,8 +64,6 @@ This package provides the Haskell %{pkg_name} library development files. %install %ghc_lib_install -rm %{buildroot}%{ghc_pkgdocdir}/LICENSE - %check %if %{with tests} @@ -82,16 +80,13 @@ rm %{buildroot}%{ghc_pkgdocdir}/LICENSE %files -f %{name}.files -%license LICENSE +%doc LICENSE %files devel -f %{name}-devel.files %changelog -* Tue Sep 29 2015 Jens Petersen - 2.0.2-1 -- update to 2.0.2 - * Wed Jun 17 2015 Fedora Release Engineering - 2.0.1.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/sources b/sources index 6921ae5..ff38305 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -801c094592caacb0306fa05f754f9d20 async-2.0.2.tar.gz +fa571b9056764ed6d419dadd1349d1e3 async-2.0.1.5.tar.gz From bf3970c96c6e45d38d87d3634221fbd3f0d97d0a Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 3 Feb 2016 21:25:01 +0000 Subject: [PATCH 13/48] - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild --- ghc-async.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-async.spec b/ghc-async.spec index fc328a3..078c11f 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -7,7 +7,7 @@ Name: ghc-%{pkg_name} # part of Haskell Platform Version: 2.0.1.5 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD @@ -87,6 +87,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Wed Feb 03 2016 Fedora Release Engineering - 2.0.1.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + * Wed Jun 17 2015 Fedora Release Engineering - 2.0.1.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild From 42c0d2dd9012967a72fb0bc1c2d44a740155b70c Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 7 Jun 2016 11:05:05 +0900 Subject: [PATCH 14/48] update to 2.0.2 This reverts commit 5fad3ebc84c30942cc4de2556ac90d66c0b00a70. --- .gitignore | 1 + ghc-async.spec | 17 +++++++++++------ sources | 2 +- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 764d10a..d937059 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /async-2.0.1.4.tar.gz /async-2.0.1.5.tar.gz +/async-2.0.2.tar.gz diff --git a/ghc-async.spec b/ghc-async.spec index 078c11f..128064e 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -6,8 +6,8 @@ Name: ghc-%{pkg_name} # part of Haskell Platform -Version: 2.0.1.5 -Release: 3%{?dist} +Version: 2.0.2 +Release: 1%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD @@ -27,11 +27,11 @@ BuildRequires: ghc-test-framework-hunit-devel %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, +'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: +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 @@ -64,6 +64,8 @@ This package provides the Haskell %{pkg_name} library development files. %install %ghc_lib_install +rm %{buildroot}%{ghc_pkgdocdir}/LICENSE + %check %if %{with tests} @@ -80,13 +82,16 @@ This package provides the Haskell %{pkg_name} library development files. %files -f %{name}.files -%doc LICENSE +%license LICENSE %files devel -f %{name}-devel.files %changelog +* Tue Jun 7 2016 Jens Petersen - 2.0.2-1 +- update to 2.0.2 + * Wed Feb 03 2016 Fedora Release Engineering - 2.0.1.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/sources b/sources index ff38305..6921ae5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -fa571b9056764ed6d419dadd1349d1e3 async-2.0.1.5.tar.gz +801c094592caacb0306fa05f754f9d20 async-2.0.2.tar.gz From d1f793624175247a5f7b00ee4ddf9ada339d268a Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 23 Jun 2016 12:04:46 +0900 Subject: [PATCH 15/48] update to 2.1.0 --- .gitignore | 1 + ghc-async.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index d937059..45bec3e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /async-2.0.1.4.tar.gz /async-2.0.1.5.tar.gz /async-2.0.2.tar.gz +/async-2.1.0.tar.gz diff --git a/ghc-async.spec b/ghc-async.spec index 128064e..9e0ef88 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -6,7 +6,7 @@ Name: ghc-%{pkg_name} # part of Haskell Platform -Version: 2.0.2 +Version: 2.1.0 Release: 1%{?dist} Summary: Run IO operations asynchronously and wait for their results @@ -89,6 +89,9 @@ rm %{buildroot}%{ghc_pkgdocdir}/LICENSE %changelog +* Thu Jun 23 2016 Jens Petersen - 2.1.0-1 +- update to 2.1.0 + * Tue Jun 7 2016 Jens Petersen - 2.0.2-1 - update to 2.0.2 diff --git a/sources b/sources index 6921ae5..80fc56d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -801c094592caacb0306fa05f754f9d20 async-2.0.2.tar.gz +8e10f5773417b8e3da61a702e00b3e4e async-2.1.0.tar.gz From 3f1911bec8e4daa1bace37cc31aa941eb2ef7279 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 27 Sep 2016 19:15:26 +0900 Subject: [PATCH 16/48] no longer remove license; use cabal_test --- ghc-async.spec | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ghc-async.spec b/ghc-async.spec index 9e0ef88..ea3a4ce 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -64,13 +64,9 @@ This package provides the Haskell %{pkg_name} library development files. %install %ghc_lib_install -rm %{buildroot}%{ghc_pkgdocdir}/LICENSE - %check -%if %{with tests} -%cabal test -%endif +%cabal_test %post devel From 261b693692176df3a55c63b5e2a7fae3cf9e549c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 10 Feb 2017 10:33:03 +0000 Subject: [PATCH 17/48] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild --- ghc-async.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-async.spec b/ghc-async.spec index ea3a4ce..a31d8f6 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -7,7 +7,7 @@ Name: ghc-%{pkg_name} # part of Haskell Platform Version: 2.1.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD @@ -85,6 +85,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Fri Feb 10 2017 Fedora Release Engineering - 2.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Thu Jun 23 2016 Jens Petersen - 2.1.0-1 - update to 2.1.0 From 9cfc5d431f3cb29df80b62532850dd10d5cfcca8 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 22 Feb 2017 16:21:19 +0900 Subject: [PATCH 18/48] update to 2.1.1 --- .gitignore | 1 + ghc-async.spec | 14 ++++++++++---- sources | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 45bec3e..1233ebc 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /async-2.0.1.5.tar.gz /async-2.0.2.tar.gz /async-2.1.0.tar.gz +/async-2.1.1.tar.gz diff --git a/ghc-async.spec b/ghc-async.spec index a31d8f6..15a118e 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -1,18 +1,20 @@ +# generated by cabal-rpm-0.11.1 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name async +%global pkgver %{pkg_name}-%{version} %bcond_with tests Name: ghc-%{pkg_name} # part of Haskell Platform -Version: 2.1.0 -Release: 2%{?dist} +Version: 2.1.1 +Release: 1%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} -Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros @@ -54,7 +56,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep -%setup -q -n %{pkg_name}-%{version} +%setup -q -n %{pkgver} %build @@ -82,9 +84,13 @@ This package provides the Haskell %{pkg_name} library development files. %files devel -f %{name}-devel.files +%doc changelog.md %changelog +* Wed Feb 22 2017 Jens Petersen - 2.1.1-1 +- update to 2.1.1 + * Fri Feb 10 2017 Fedora Release Engineering - 2.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild diff --git a/sources b/sources index 80fc56d..6d2a865 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -8e10f5773417b8e3da61a702e00b3e4e async-2.1.0.tar.gz +SHA512 (async-2.1.1.tar.gz) = 85a878389f019df0038f7b0ea82e8619f30eed97cc5c53438dbcaef128c08cdf5658afa203605434a2e1eb885fc28515a30c83341cb1b77331362205d521972b From 6fd9d0a3f15864f62f9e52623a0942a9527f5f93 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 26 Jul 2017 09:34:19 +0000 Subject: [PATCH 19/48] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- ghc-async.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-async.spec b/ghc-async.spec index 15a118e..b74019d 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -9,7 +9,7 @@ Name: ghc-%{pkg_name} # part of Haskell Platform Version: 2.1.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD @@ -88,6 +88,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Wed Jul 26 2017 Fedora Release Engineering - 2.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Wed Feb 22 2017 Jens Petersen - 2.1.1-1 - update to 2.1.1 From 0b5cd07326e3b1c46660b1be10491e32adceb368 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 2 Aug 2017 21:12:31 +0000 Subject: [PATCH 20/48] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild --- ghc-async.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-async.spec b/ghc-async.spec index b74019d..602876e 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -9,7 +9,7 @@ Name: ghc-%{pkg_name} # part of Haskell Platform Version: 2.1.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD @@ -88,6 +88,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Wed Aug 02 2017 Fedora Release Engineering - 2.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + * Wed Jul 26 2017 Fedora Release Engineering - 2.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild From 77ceec62e7b69d49d031818670362e5c6f58d0e8 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 24 Jan 2018 14:10:34 +0100 Subject: [PATCH 21/48] refresh to cabal-rpm-0.12.1 --- ghc-async.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ghc-async.spec b/ghc-async.spec index 602876e..5afaf3a 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.11.1 +# generated by cabal-rpm-0.12.1 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name async @@ -46,9 +46,12 @@ killed when their parent dies (see 'withAsync'). %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +%if %{defined ghc_version} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} +%endif Requires: %{name}%{?_isa} = %{version}-%{release} %description devel @@ -71,6 +74,12 @@ This package provides the Haskell %{pkg_name} library development files. %cabal_test +%post -p /sbin/ldconfig + + +%postun -p /sbin/ldconfig + + %post devel %ghc_pkg_recache From 6cc40be355339f384ef27914a723471cbc90ce1a Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 24 Jan 2018 15:20:16 +0100 Subject: [PATCH 22/48] update to 2.1.1.1 --- .gitignore | 1 + ghc-async.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 1233ebc..cc9b0af 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /async-2.0.2.tar.gz /async-2.1.0.tar.gz /async-2.1.1.tar.gz +/async-2.1.1.1.tar.gz diff --git a/ghc-async.spec b/ghc-async.spec index 5afaf3a..03acd7d 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -8,8 +8,8 @@ Name: ghc-%{pkg_name} # part of Haskell Platform -Version: 2.1.1 -Release: 3%{?dist} +Version: 2.1.1.1 +Release: 1%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD @@ -97,6 +97,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Wed Jan 24 2018 Jens Petersen - 2.1.1.1-1 +- update to 2.1.1.1 + * Wed Aug 02 2017 Fedora Release Engineering - 2.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild diff --git a/sources b/sources index 6d2a865..3a8b729 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (async-2.1.1.tar.gz) = 85a878389f019df0038f7b0ea82e8619f30eed97cc5c53438dbcaef128c08cdf5658afa203605434a2e1eb885fc28515a30c83341cb1b77331362205d521972b +SHA512 (async-2.1.1.1.tar.gz) = 6c617e6028e6b10dfa19a1157f3fd8521190725e9aafa60f6668c6c40f88445f03de4fa70a824aada2b008fc8a5d49e7d1aade1843ba990a382ffb9d3ef9ec21 From a126ba365a24adb0994179efc2eda705d0ca6f9c Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 4 Feb 2018 01:01:56 +0900 Subject: [PATCH 23/48] drop ldconfig scriptlets --- ghc-async.spec | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ghc-async.spec b/ghc-async.spec index 03acd7d..eabc185 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -74,12 +74,6 @@ This package provides the Haskell %{pkg_name} library development files. %cabal_test -%post -p /sbin/ldconfig - - -%postun -p /sbin/ldconfig - - %post devel %ghc_pkg_recache From f8cf4e1f72f5771eec30f4483f91496e13a3c9db Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 7 Feb 2018 11:18:27 +0000 Subject: [PATCH 24/48] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-async.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-async.spec b/ghc-async.spec index eabc185..de2292a 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -9,7 +9,7 @@ Name: ghc-%{pkg_name} # part of Haskell Platform Version: 2.1.1.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD @@ -91,6 +91,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Wed Feb 07 2018 Fedora Release Engineering - 2.1.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Wed Jan 24 2018 Jens Petersen - 2.1.1.1-1 - update to 2.1.1.1 From 52429835150c70d3c89cf0701f6c40526b048c39 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 13 Jul 2018 01:33:10 +0000 Subject: [PATCH 25/48] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-async.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-async.spec b/ghc-async.spec index de2292a..42dab9d 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -9,7 +9,7 @@ Name: ghc-%{pkg_name} # part of Haskell Platform Version: 2.1.1.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD @@ -91,6 +91,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Fri Jul 13 2018 Fedora Release Engineering - 2.1.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Wed Feb 07 2018 Fedora Release Engineering - 2.1.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild From 5e997211f0f53c27f96f5ca2f4ecea458bdaa480 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 29 Jul 2018 01:05:22 +0900 Subject: [PATCH 26/48] rebuild --- ghc-async.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ghc-async.spec b/ghc-async.spec index 42dab9d..8af2078 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.12.1 +# generated by cabal-rpm-0.12.5 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name async @@ -9,7 +9,7 @@ Name: ghc-%{pkg_name} # part of Haskell Platform Version: 2.1.1.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD @@ -91,6 +91,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Sat Jul 28 2018 Jens Petersen - 2.1.1.1-4 +- rebuild + * Fri Jul 13 2018 Fedora Release Engineering - 2.1.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild From 86d72a2b7569e6113b0c3f99c2e875df46d5b100 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 31 Jan 2019 21:10:14 +0000 Subject: [PATCH 27/48] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-async.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-async.spec b/ghc-async.spec index 8af2078..03c78c1 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -9,7 +9,7 @@ Name: ghc-%{pkg_name} # part of Haskell Platform Version: 2.1.1.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD @@ -91,6 +91,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Thu Jan 31 2019 Fedora Release Engineering - 2.1.1.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Sat Jul 28 2018 Jens Petersen - 2.1.1.1-4 - rebuild From 27628d08d671654ab90c952ba76cca2399b6a168 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 17 Feb 2019 22:43:29 +0800 Subject: [PATCH 28/48] refresh to cabal-rpm-0.13 --- ghc-async.spec | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/ghc-async.spec b/ghc-async.spec index 03c78c1..a2529ce 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.12.5 +# generated by cabal-rpm-0.13 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name async @@ -7,18 +7,19 @@ %bcond_with tests Name: ghc-%{pkg_name} -# part of Haskell Platform Version: 2.1.1.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} +# Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +# End cabal-rpm sources +# Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros -# Begin cabal-rpm deps: BuildRequires: ghc-stm-devel %if %{with tests} BuildRequires: ghc-HUnit-devel @@ -59,15 +60,21 @@ This package provides the Haskell %{pkg_name} library development files. %prep +# Begin cabal-rpm setup: %setup -q -n %{pkgver} +# End cabal-rpm setup %build +# Begin cabal-rpm build: %ghc_lib_build +# End cabal-rpm build %install +# Begin cabal-rpm install %ghc_lib_install +# End cabal-rpm install %check @@ -83,7 +90,9 @@ This package provides the Haskell %{pkg_name} library development files. %files -f %{name}.files +# Begin cabal-rpm files: %license LICENSE +# End cabal-rpm files %files devel -f %{name}-devel.files @@ -91,6 +100,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Sun Feb 17 2019 Jens Petersen - 2.1.1.1-6 +- refresh to cabal-rpm-0.13 + * Thu Jan 31 2019 Fedora Release Engineering - 2.1.1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From 67a3f53ab8f03f02884ccd6b5859520fbc5cfdba Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 21 Feb 2019 10:04:49 +0800 Subject: [PATCH 29/48] update to 2.2.1 --- .gitignore | 1 + async-2.2.1.cabal | 98 +++++++++++++++++++++++++++++++++++++++++++++++ ghc-async.spec | 10 ++++- sources | 2 +- 4 files changed, 108 insertions(+), 3 deletions(-) create mode 100644 async-2.2.1.cabal diff --git a/.gitignore b/.gitignore index cc9b0af..b70b3d8 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /async-2.1.0.tar.gz /async-2.1.1.tar.gz /async-2.1.1.1.tar.gz +/async-2.2.1.tar.gz diff --git a/async-2.2.1.cabal b/async-2.2.1.cabal new file mode 100644 index 0000000..6bae38c --- /dev/null +++ b/async-2.2.1.cabal @@ -0,0 +1,98 @@ +name: async +version: 2.2.1 +x-revision: 1 +-- 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==8.2.2, GHC==8.0.2, 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 + build-depends: base >= 4.3 && < 4.13, hashable >= 1.1.1.0 && < 1.3, 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 >= 4.3 && < 4.13, + 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.spec b/ghc-async.spec index a2529ce..a3c0625 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -7,19 +7,21 @@ %bcond_with tests Name: ghc-%{pkg_name} -Version: 2.1.1.1 -Release: 6%{?dist} +Version: 2.2.1 +Release: 1%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros +BuildRequires: ghc-hashable-devel BuildRequires: ghc-stm-devel %if %{with tests} BuildRequires: ghc-HUnit-devel @@ -62,6 +64,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup @@ -100,6 +103,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Thu Feb 21 2019 Jens Petersen - 2.2.1-1 +- update to 2.2.1 + * Sun Feb 17 2019 Jens Petersen - 2.1.1.1-6 - refresh to cabal-rpm-0.13 diff --git a/sources b/sources index 3a8b729..2bcf189 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (async-2.1.1.1.tar.gz) = 6c617e6028e6b10dfa19a1157f3fd8521190725e9aafa60f6668c6c40f88445f03de4fa70a824aada2b008fc8a5d49e7d1aade1843ba990a382ffb9d3ef9ec21 +SHA512 (async-2.2.1.tar.gz) = 65daa880d2c10fb235ddd431f7b1d80b2c3cc78c8dfba7deb7f1f60a6b6495f159daffa560ad84908687b083309c300765b4ba45a6f787b24d364f3c0e070749 From ed489c9aa9c3e3ddb7b65c427f6a27467d5b0efb Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 25 Jul 2019 02:06:20 +0000 Subject: [PATCH 30/48] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-async.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-async.spec b/ghc-async.spec index a3c0625..5a6d9c2 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 2.2.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD @@ -103,6 +103,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Thu Jul 25 2019 Fedora Release Engineering - 2.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Thu Feb 21 2019 Jens Petersen - 2.2.1-1 - update to 2.2.1 From 6e6711880e53850f72ccbd7edd9802e7f4e6fdd5 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 25 Jul 2019 04:21:31 +0000 Subject: [PATCH 31/48] refresh to cabal-rpm-1.0.0: lib doc/prof subpkgs and bin static BRs --- ghc-async.spec | 48 ++++++++++++++++++++++++++++++++++++------------ 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/ghc-async.spec b/ghc-async.spec index 5a6d9c2..8548eda 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.13 +# generated by cabal-rpm-1.0.0 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name async @@ -20,6 +20,12 @@ Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal# # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel +%if %{with haddock} +BuildRequires: ghc-doc +%endif +%if %{with ghc_prof} +BuildRequires: ghc-prof +%endif BuildRequires: ghc-rpm-macros BuildRequires: ghc-hashable-devel BuildRequires: ghc-stm-devel @@ -49,11 +55,8 @@ killed when their parent dies (see 'withAsync'). %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} -Provides: %{name}-doc = %{version}-%{release} %if %{defined ghc_version} Requires: ghc-compiler = %{ghc_version} -Requires(post): ghc-compiler = %{ghc_version} -Requires(postun): ghc-compiler = %{ghc_version} %endif Requires: %{name}%{?_isa} = %{version}-%{release} @@ -61,6 +64,25 @@ Requires: %{name}%{?_isa} = %{version}-%{release} This package provides the Haskell %{pkg_name} library development files. +%if %{with haddock} +%package doc +Summary: Haskell %{pkg_name} library documentation + +%description doc +This package provides the Haskell %{pkg_name} library documentation. +%endif + + +%if %{with ghc_prof} +%package prof +Summary: Haskell %{pkg_name} profiling library +Requires: %{name}-devel%{?_isa} = %{version}-%{release} + +%description prof +This package provides the Haskell %{pkg_name} profiling library. +%endif + + %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} @@ -84,14 +106,6 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %cabal_test -%post devel -%ghc_pkg_recache - - -%postun devel -%ghc_pkg_recache - - %files -f %{name}.files # Begin cabal-rpm files: %license LICENSE @@ -102,6 +116,16 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %doc changelog.md +%if %{with haddock} +%files doc -f %{name}-doc.files +%endif + + +%if %{with ghc_prof} +%files prof -f %{name}-prof.files +%endif + + %changelog * Thu Jul 25 2019 Fedora Release Engineering - 2.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From 3ea934d05347cc447b1882830e4fea431868c770 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 25 Jul 2019 15:12:00 +0000 Subject: [PATCH 32/48] update to 2.2.2 --- .gitignore | 1 + async-2.2.1.cabal | 98 ----------------------------------------------- ghc-async.spec | 9 +++-- sources | 2 +- 4 files changed, 7 insertions(+), 103 deletions(-) delete mode 100644 async-2.2.1.cabal diff --git a/.gitignore b/.gitignore index b70b3d8..1eee455 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /async-2.1.1.tar.gz /async-2.1.1.1.tar.gz /async-2.2.1.tar.gz +/async-2.2.2.tar.gz diff --git a/async-2.2.1.cabal b/async-2.2.1.cabal deleted file mode 100644 index 6bae38c..0000000 --- a/async-2.2.1.cabal +++ /dev/null @@ -1,98 +0,0 @@ -name: async -version: 2.2.1 -x-revision: 1 --- 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==8.2.2, GHC==8.0.2, 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 - build-depends: base >= 4.3 && < 4.13, hashable >= 1.1.1.0 && < 1.3, 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 >= 4.3 && < 4.13, - 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.spec b/ghc-async.spec index 8548eda..ce83496 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -7,15 +7,14 @@ %bcond_with tests Name: ghc-%{pkg_name} -Version: 2.2.1 -Release: 2%{?dist} +Version: 2.2.2 +Release: 1%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz -Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: @@ -86,7 +85,6 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} -cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup @@ -127,6 +125,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Thu Jul 25 2019 Jens Petersen - 2.2.2-1 +- update to 2.2.2 + * Thu Jul 25 2019 Fedora Release Engineering - 2.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index 2bcf189..8391c12 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (async-2.2.1.tar.gz) = 65daa880d2c10fb235ddd431f7b1d80b2c3cc78c8dfba7deb7f1f60a6b6495f159daffa560ad84908687b083309c300765b4ba45a6f787b24d364f3c0e070749 +SHA512 (async-2.2.2.tar.gz) = 6984c74b76dc1db73363ca2e360d2be6f2e7b4de5c7de452c4df7ee996b2256790a8cecb532af6d7d675541315a16f8e4ce566c5f79e4102e4a857f057e2d811 From 613647300129089f2e070068ed7771f327e9f25b Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Mon, 5 Aug 2019 18:27:28 +0800 Subject: [PATCH 33/48] BR prof for lib and static for executable --- ghc-async.spec | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/ghc-async.spec b/ghc-async.spec index ce83496..cd104a5 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-1.0.0 +# generated by cabal-rpm-1.0.1 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name async @@ -19,15 +19,10 @@ Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel -%if %{with haddock} -BuildRequires: ghc-doc -%endif -%if %{with ghc_prof} -BuildRequires: ghc-prof -%endif BuildRequires: ghc-rpm-macros -BuildRequires: ghc-hashable-devel -BuildRequires: ghc-stm-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-hashable-prof +BuildRequires: ghc-stm-prof %if %{with tests} BuildRequires: ghc-HUnit-devel BuildRequires: ghc-test-framework-devel @@ -54,6 +49,7 @@ killed when their parent dies (see 'withAsync'). %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} +Provides: %{name}-static%{?_isa} = %{version}-%{release} %if %{defined ghc_version} Requires: ghc-compiler = %{ghc_version} %endif From 86f2ddbbbe630f475a5e5858050d286482e7b4e6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 28 Jan 2020 20:16:10 +0000 Subject: [PATCH 34/48] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-async.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-async.spec b/ghc-async.spec index cd104a5..9c1dd23 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 2.2.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD @@ -121,6 +121,9 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Tue Jan 28 2020 Fedora Release Engineering - 2.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Thu Jul 25 2019 Jens Petersen - 2.2.2-1 - update to 2.2.2 From 40fe668c265a2a5df98c46bced46aabdd3a82ade Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 8 Feb 2020 22:48:57 +0800 Subject: [PATCH 35/48] refresh to cabal-rpm-2.0.2 --- ghc-async.spec | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/ghc-async.spec b/ghc-async.spec index 9c1dd23..f72ef45 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -1,11 +1,9 @@ -# generated by cabal-rpm-1.0.1 +# generated by cabal-rpm-2.0.2 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name async %global pkgver %{pkg_name}-%{version} -%bcond_with tests - Name: ghc-%{pkg_name} Version: 2.2.2 Release: 2%{?dist} @@ -23,11 +21,6 @@ BuildRequires: ghc-rpm-macros BuildRequires: ghc-base-prof BuildRequires: ghc-hashable-prof BuildRequires: ghc-stm-prof -%if %{with tests} -BuildRequires: ghc-HUnit-devel -BuildRequires: ghc-test-framework-devel -BuildRequires: ghc-test-framework-hunit-devel -%endif # End cabal-rpm deps %description @@ -62,6 +55,7 @@ This package provides the Haskell %{pkg_name} library development files. %if %{with haddock} %package doc Summary: Haskell %{pkg_name} library documentation +BuildArch: noarch %description doc This package provides the Haskell %{pkg_name} library documentation. @@ -72,6 +66,7 @@ This package provides the Haskell %{pkg_name} library documentation. %package prof Summary: Haskell %{pkg_name} profiling library Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Supplements: (%{name}-devel and ghc-prof) %description prof This package provides the Haskell %{pkg_name} profiling library. @@ -96,8 +91,14 @@ This package provides the Haskell %{pkg_name} profiling library. # End cabal-rpm install -%check -%cabal_test +%if 0%{?fedora} < 31 || 0%{?rhel} < 8 +%post devel +%ghc_pkg_recache + + +%postun devel +%ghc_pkg_recache +%endif %files -f %{name}.files @@ -112,6 +113,7 @@ This package provides the Haskell %{pkg_name} profiling library. %if %{with haddock} %files doc -f %{name}-doc.files +%license LICENSE %endif From 66593646a45c3229362d039820684b67aa838c99 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 4 Jun 2020 19:25:12 +0800 Subject: [PATCH 36/48] refresh to cabal-rpm-2.0.5 --- ghc-async.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghc-async.spec b/ghc-async.spec index f72ef45..d270570 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -1,5 +1,5 @@ -# generated by cabal-rpm-2.0.2 -# https://fedoraproject.org/wiki/Packaging:Haskell +# generated by cabal-rpm-2.0.5 +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name async %global pkgver %{pkg_name}-%{version} From f9d70d5faf7a670aff829acd9031c12415994b35 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 19 Jun 2020 16:53:49 +0800 Subject: [PATCH 37/48] refresh to cabal-rpm-2.0.6 --- ghc-async.spec | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/ghc-async.spec b/ghc-async.spec index d270570..7fdf20d 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -1,9 +1,11 @@ -# generated by cabal-rpm-2.0.5 +# generated by cabal-rpm-2.0.6 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name async %global pkgver %{pkg_name}-%{version} +# testsuite missing deps: test-framework test-framework-hunit + Name: ghc-%{pkg_name} Version: 2.2.2 Release: 2%{?dist} @@ -91,16 +93,6 @@ This package provides the Haskell %{pkg_name} profiling library. # End cabal-rpm install -%if 0%{?fedora} < 31 || 0%{?rhel} < 8 -%post devel -%ghc_pkg_recache - - -%postun devel -%ghc_pkg_recache -%endif - - %files -f %{name}.files # Begin cabal-rpm files: %license LICENSE From ecaf580fd96fa364bb5dbbddcacd58a044ba564a Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 17 Jul 2020 16:38:01 +0800 Subject: [PATCH 38/48] add revision --- async-2.2.2.cabal | 98 +++++++++++++++++++++++++++++++++++++++++++++++ ghc-async.spec | 2 + 2 files changed, 100 insertions(+) create mode 100644 async-2.2.2.cabal diff --git a/async-2.2.2.cabal b/async-2.2.2.cabal new file mode 100644 index 0000000..9e4c964 --- /dev/null +++ b/async-2.2.2.cabal @@ -0,0 +1,98 @@ +name: async +version: 2.2.2 +x-revision: 1 +-- 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==8.10.1, GHC==8.8.3, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2, 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 + build-depends: base >= 4.3 && < 4.15, hashable >= 1.1.2.0 && < 1.4, 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 >= 4.3 && < 4.15, + 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.spec b/ghc-async.spec index 7fdf20d..7cc30c4 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -15,6 +15,7 @@ License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: @@ -78,6 +79,7 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup From f74cd2acaeebc146cf0ee557faccd7f9095e5b03 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 17 Jul 2020 17:51:41 +0800 Subject: [PATCH 39/48] bump release --- ghc-async.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-async.spec b/ghc-async.spec index 7cc30c4..353a038 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 2.2.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD @@ -117,6 +117,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Fri Jul 17 2020 Jens Petersen - 2.2.2-3 +- refresh to cabal-rpm-2.0.6 + * Tue Jan 28 2020 Fedora Release Engineering - 2.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild From 038a1d6fc5108e395eb276d5a610afc2ab60bf20 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 27 Jul 2020 18:47:32 +0000 Subject: [PATCH 40/48] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-async.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-async.spec b/ghc-async.spec index 353a038..03a3541 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 2.2.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD @@ -117,6 +117,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Mon Jul 27 2020 Fedora Release Engineering - 2.2.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Fri Jul 17 2020 Jens Petersen - 2.2.2-3 - refresh to cabal-rpm-2.0.6 From f131ad7950b137da461db35ed18bcd39be5b8907 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 26 Jan 2021 06:51:44 +0000 Subject: [PATCH 41/48] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-async.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-async.spec b/ghc-async.spec index 03a3541..b3c3c71 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 2.2.2 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD @@ -117,6 +117,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Tue Jan 26 2021 Fedora Release Engineering - 2.2.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Mon Jul 27 2020 Fedora Release Engineering - 2.2.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 96221ae954d1d6da86a6af13230b0212d3636376 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 22 Jul 2021 00:18:36 +0000 Subject: [PATCH 42/48] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-async.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-async.spec b/ghc-async.spec index b3c3c71..e397605 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 2.2.2 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD @@ -117,6 +117,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Thu Jul 22 2021 Fedora Release Engineering - 2.2.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Tue Jan 26 2021 Fedora Release Engineering - 2.2.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From 6519211571120a58203a6f7ca6eb2e3a2de63bb0 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 8 Jul 2021 00:30:09 +0800 Subject: [PATCH 43/48] refresh to cabal-rpm-2.0.9 --- ghc-async.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ghc-async.spec b/ghc-async.spec index e397605..88980fe 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-2.0.6 +# generated by cabal-rpm-2.0.9 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name async @@ -59,6 +59,7 @@ This package provides the Haskell %{pkg_name} library development files. %package doc Summary: Haskell %{pkg_name} library documentation BuildArch: noarch +Requires: ghc-filesystem %description doc This package provides the Haskell %{pkg_name} library documentation. From 76c2b34e1adceb0e7cfbeda1b8c531c987373fb0 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 8 Jul 2021 01:36:46 +0800 Subject: [PATCH 44/48] update to 2.2.3 --- .gitignore | 1 + async-2.2.2.cabal | 98 ----------------------------------------------- ghc-async.spec | 9 +++-- sources | 2 +- 4 files changed, 7 insertions(+), 103 deletions(-) delete mode 100644 async-2.2.2.cabal diff --git a/.gitignore b/.gitignore index 1eee455..91d731c 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /async-2.1.1.1.tar.gz /async-2.2.1.tar.gz /async-2.2.2.tar.gz +/async-2.2.3.tar.gz diff --git a/async-2.2.2.cabal b/async-2.2.2.cabal deleted file mode 100644 index 9e4c964..0000000 --- a/async-2.2.2.cabal +++ /dev/null @@ -1,98 +0,0 @@ -name: async -version: 2.2.2 -x-revision: 1 --- 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==8.10.1, GHC==8.8.3, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2, 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 - build-depends: base >= 4.3 && < 4.15, hashable >= 1.1.2.0 && < 1.4, 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 >= 4.3 && < 4.15, - 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.spec b/ghc-async.spec index 88980fe..d5343d7 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -7,15 +7,14 @@ # testsuite missing deps: test-framework test-framework-hunit Name: ghc-%{pkg_name} -Version: 2.2.2 -Release: 6%{?dist} +Version: 2.2.3 +Release: 1%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz -Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: @@ -80,7 +79,6 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} -cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup @@ -118,6 +116,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Thu Aug 5 2021 Jens Petersen - 2.2.3-1 +- update to 2.2.3 + * Thu Jul 22 2021 Fedora Release Engineering - 2.2.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/sources b/sources index 8391c12..9974354 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (async-2.2.2.tar.gz) = 6984c74b76dc1db73363ca2e360d2be6f2e7b4de5c7de452c4df7ee996b2256790a8cecb532af6d7d675541315a16f8e4ce566c5f79e4102e4a857f057e2d811 +SHA512 (async-2.2.3.tar.gz) = 99a7cd04d05362b6d007ec75a32cf0a6c11f4b3e46ab706349289f5bb0ad128fd2a9809e4d30634917a0a608b0d611c6d4e936ea36535c7c5ec167fead5f3248 From bbd3c0ecc5ed1e97b0386138809f97644f897802 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jan 2022 04:30:57 +0000 Subject: [PATCH 45/48] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-async.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-async.spec b/ghc-async.spec index d5343d7..4cdaa19 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 2.2.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD @@ -116,6 +116,9 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Thu Jan 20 2022 Fedora Release Engineering - 2.2.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Thu Aug 5 2021 Jens Petersen - 2.2.3-1 - update to 2.2.3 From 7c82729d7c4228b5e091890232dc299623a5325b Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 9 Mar 2022 00:28:19 +0800 Subject: [PATCH 46/48] bump release --- ghc-async.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-async.spec b/ghc-async.spec index 4cdaa19..10e13d5 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 2.2.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD @@ -116,6 +116,9 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Tue Mar 08 2022 Jens Petersen - 2.2.3-3 +- rebuild + * Thu Jan 20 2022 Fedora Release Engineering - 2.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From c55dd153bdef84218cd97a7ca706ed5abd7b951b Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 7 Jun 2022 10:26:37 +0800 Subject: [PATCH 47/48] update to 2.2.4 --- .gitignore | 1 + async-2.2.4.cabal | 112 ++++++++++++++++++++++++++++++++++++++++++++++ ghc-async.spec | 9 +++- sources | 2 +- 4 files changed, 121 insertions(+), 3 deletions(-) create mode 100644 async-2.2.4.cabal diff --git a/.gitignore b/.gitignore index 91d731c..a7076eb 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /async-2.2.1.tar.gz /async-2.2.2.tar.gz /async-2.2.3.tar.gz +/async-2.2.4.tar.gz diff --git a/async-2.2.4.cabal b/async-2.2.4.cabal new file mode 100644 index 0000000..66ef9d5 --- /dev/null +++ b/async-2.2.4.cabal @@ -0,0 +1,112 @@ +name: async +version: 2.2.4 +x-revision: 1 +-- 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.2.0.20210821 + GHC == 9.0.1 + GHC == 8.10.4 + GHC == 8.8.4 + GHC == 8.6.5 + GHC == 8.4.4 + GHC == 8.2.2 + GHC == 8.0.2 + 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 + build-depends: base >= 4.3 && < 4.17, + hashable >= 1.1.2.0 && < 1.5, + 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 >= 4.3 && < 4.17, + 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.spec b/ghc-async.spec index 10e13d5..c2f5416 100644 --- a/ghc-async.spec +++ b/ghc-async.spec @@ -7,14 +7,15 @@ # testsuite missing deps: test-framework test-framework-hunit Name: ghc-%{pkg_name} -Version: 2.2.3 -Release: 3%{?dist} +Version: 2.2.4 +Release: 1%{?dist} Summary: Run IO operations asynchronously and wait for their results License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: @@ -79,6 +80,7 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup @@ -116,6 +118,9 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Tue Jun 07 2022 Jens Petersen - 2.2.4-1 +- https://hackage.haskell.org/package/async-2.2.4/changelog + * Tue Mar 08 2022 Jens Petersen - 2.2.3-3 - rebuild diff --git a/sources b/sources index 9974354..4a56075 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (async-2.2.3.tar.gz) = 99a7cd04d05362b6d007ec75a32cf0a6c11f4b3e46ab706349289f5bb0ad128fd2a9809e4d30634917a0a608b0d611c6d4e936ea36535c7c5ec167fead5f3248 +SHA512 (async-2.2.4.tar.gz) = 24f37f974dd7573138475d04c0fccb97fcbd8b3de56f7d06199b8f936fd9a29cd0ba0574212a753a81de8958b3292ecee79d0e8d0d2f51eb91874424e6219569 From 7d2a72b46e634df6d2020e65ba38a3cf0303b60d Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Mon, 30 Oct 2023 21:21:12 +0300 Subject: [PATCH 48/48] Remove unnecessary files --- sources | 1 - 1 file changed, 1 deletion(-) delete mode 100644 sources diff --git a/sources b/sources deleted file mode 100644 index 4a56075..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (async-2.2.4.tar.gz) = 24f37f974dd7573138475d04c0fccb97fcbd8b3de56f7d06199b8f936fd9a29cd0ba0574212a753a81de8958b3292ecee79d0e8d0d2f51eb91874424e6219569