Blame SPECS/ghc-async.spec

16beba
# generated by cabal-rpm-0.12.1
16beba
# https://fedoraproject.org/wiki/Packaging:Haskell
16beba
16beba
%global pkg_name async
16beba
%global pkgver %{pkg_name}-%{version}
16beba
16beba
%bcond_with tests
16beba
16beba
Name:           ghc-%{pkg_name}
16beba
# part of Haskell Platform
16beba
Version:        2.1.1.1
16beba
Release:        2%{?dist}
16beba
Summary:        Run IO operations asynchronously and wait for their results
16beba
16beba
License:        BSD
16beba
Url:            https://hackage.haskell.org/package/%{pkg_name}
16beba
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
16beba
16beba
BuildRequires:  ghc-Cabal-devel
16beba
BuildRequires:  ghc-rpm-macros
16beba
# Begin cabal-rpm deps:
16beba
BuildRequires:  ghc-stm-devel
16beba
%if %{with tests}
16beba
BuildRequires:  ghc-HUnit-devel
16beba
BuildRequires:  ghc-test-framework-devel
16beba
BuildRequires:  ghc-test-framework-hunit-devel
16beba
%endif
16beba
# End cabal-rpm deps
16beba
16beba
%description
16beba
This package provides a higher-level interface over threads, in which an
16beba
'Async a' is a concurrent thread that will eventually deliver a value of
16beba
type 'a'. The package provides ways to create "Async" computations,
16beba
wait for their results, and cancel them.
16beba
16beba
Using 'Async' is safer than using threads in two ways:
16beba
16beba
* When waiting for a thread to return a result, if the thread dies with an
16beba
exception then the caller must either re-throw the exception ('wait') or handle
16beba
it ('waitCatch'); the exception cannot be ignored.
16beba
16beba
* The API makes it possible to build a tree of threads that are automatically
16beba
killed when their parent dies (see 'withAsync').
16beba
16beba
16beba
%package devel
16beba
Summary:        Haskell %{pkg_name} library development files
16beba
Provides:       %{name}-static = %{version}-%{release}
16beba
Provides:       %{name}-doc = %{version}-%{release}
16beba
%if %{defined ghc_version}
16beba
Requires:       ghc-compiler = %{ghc_version}
16beba
Requires(post): ghc-compiler = %{ghc_version}
16beba
Requires(postun): ghc-compiler = %{ghc_version}
16beba
%endif
16beba
Requires:       %{name}%{?_isa} = %{version}-%{release}
16beba
16beba
%description devel
16beba
This package provides the Haskell %{pkg_name} library development files.
16beba
16beba
16beba
%prep
16beba
%setup -q -n %{pkgver}
16beba
16beba
16beba
%build
16beba
%ghc_lib_build
16beba
16beba
16beba
%install
16beba
%ghc_lib_install
16beba
16beba
16beba
%check
16beba
%cabal_test
16beba
16beba
16beba
%post devel
16beba
%ghc_pkg_recache
16beba
16beba
16beba
%postun devel
16beba
%ghc_pkg_recache
16beba
16beba
16beba
%files -f %{name}.files
16beba
%license LICENSE
16beba
16beba
16beba
%files devel -f %{name}-devel.files
16beba
%doc changelog.md
16beba
16beba
16beba
%changelog
16beba
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1.1-2
16beba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
16beba
16beba
* Wed Jan 24 2018 Jens Petersen <petersen@redhat.com> - 2.1.1.1-1
16beba
- update to 2.1.1.1
16beba
16beba
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-3
16beba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
16beba
16beba
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-2
16beba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
16beba
16beba
* Wed Feb 22 2017 Jens Petersen <petersen@redhat.com> - 2.1.1-1
16beba
- update to 2.1.1
16beba
16beba
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
16beba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
16beba
16beba
* Thu Jun 23 2016 Jens Petersen <petersen@redhat.com> - 2.1.0-1
16beba
- update to 2.1.0
16beba
16beba
* Tue Jun  7 2016 Jens Petersen <petersen@redhat.com> - 2.0.2-1
16beba
- update to 2.0.2
16beba
16beba
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1.5-3
16beba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
16beba
16beba
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1.5-2
16beba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
16beba
16beba
* Fri Aug  8 2014 Jens Petersen <petersen@redhat.com> - 2.0.1.5-1
16beba
- update to 2.0.1.5
16beba
16beba
* Tue Jul  8 2014 Jens Petersen <petersen@redhat.com> - 2.0.1.4-31
16beba
- f21 rebuild
16beba
16beba
* Tue Feb  4 2014 Jens Petersen <petersen@redhat.com> - 2.0.1.4-30
16beba
- bump release over current haskell-platform
16beba
16beba
* Thu Nov 28 2013 Jens Petersen <petersen@redhat.com> - 2.0.1.4-27
16beba
- separate source package from haskell-platform
16beba
16beba
* Thu Nov 28 2013 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 2.0.1.4
16beba
- spec file generated by cabal-rpm-0.8.7