# https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name threads Name: ghc-%{pkg_name} Version: 0.5.0.2 Release: 1%{?dist} Summary: Fork threads and wait for their result 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-base-unicode-symbols-devel BuildRequires: ghc-stm-devel # End cabal-rpm deps %description This package provides functions to fork threads and wait for their result, whether it's an exception or a normal value. Besides waiting for the termination of a single thread this packages also provides functions to wait for a group of threads to terminate. This package is similar to the @threadmanager@, @async@ and @spawn@ packages. The advantages of this package are: * Simpler API. * More efficient in both space and time. * No space-leak when forking a large number of threads. * Correct handling of asynchronous exceptions. * GHC specific functionality like @forkOn@ and @forkIOWithUnmask@. %package devel Summary: Haskell %{pkg_name} library development files 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 development files for the Haskell %{pkg_name} library. %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 %doc README.markdown %changelog * Mon Jul 8 2013 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.5.0.2-1 - spec file generated by cabal-rpm-0.8.2