2017-07-29 10:16:52 +02:00
|
|
|
#
|
|
|
|
# spec file for package ghc-unliftio
|
|
|
|
#
|
2020-09-04 17:11:55 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2017-07-29 10:16:52 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-18 11:53:19 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-07-29 10:16:52 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%global pkg_name unliftio
|
2018-01-03 03:16:44 +01:00
|
|
|
%bcond_with tests
|
2017-07-29 10:16:52 +02:00
|
|
|
Name: ghc-%{pkg_name}
|
2020-09-04 17:11:55 +02:00
|
|
|
Version: 0.2.13
|
2017-07-29 10:16:52 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: The MonadUnliftIO typeclass for unlifting monads to IO (batteries included)
|
|
|
|
License: MIT
|
2017-08-15 16:07:48 +02:00
|
|
|
URL: https://hackage.haskell.org/package/%{pkg_name}
|
2017-07-29 10:16:52 +02:00
|
|
|
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
BuildRequires: ghc-async-devel
|
2019-07-14 03:01:45 +02:00
|
|
|
BuildRequires: ghc-bytestring-devel
|
2017-07-29 10:16:52 +02:00
|
|
|
BuildRequires: ghc-deepseq-devel
|
|
|
|
BuildRequires: ghc-directory-devel
|
|
|
|
BuildRequires: ghc-filepath-devel
|
2018-04-02 17:07:04 +02:00
|
|
|
BuildRequires: ghc-process-devel
|
2017-07-29 10:16:52 +02:00
|
|
|
BuildRequires: ghc-rpm-macros
|
2017-12-28 12:54:35 +01:00
|
|
|
BuildRequires: ghc-stm-devel
|
2018-04-02 17:07:04 +02:00
|
|
|
BuildRequires: ghc-time-devel
|
2017-07-29 10:16:52 +02:00
|
|
|
BuildRequires: ghc-transformers-devel
|
|
|
|
BuildRequires: ghc-unix-devel
|
|
|
|
BuildRequires: ghc-unliftio-core-devel
|
2018-01-03 03:16:44 +01:00
|
|
|
%if %{with tests}
|
2018-12-13 03:01:35 +01:00
|
|
|
BuildRequires: ghc-QuickCheck-devel
|
2019-01-05 03:01:37 +01:00
|
|
|
BuildRequires: ghc-containers-devel
|
2018-01-03 03:16:44 +01:00
|
|
|
BuildRequires: ghc-hspec-devel
|
|
|
|
%endif
|
2017-07-29 10:16:52 +02:00
|
|
|
|
|
|
|
%description
|
2018-01-03 03:16:44 +01:00
|
|
|
Please see the documentation and README at
|
|
|
|
<https://www.stackage.org/package/unliftio>.
|
2017-07-29 10:16:52 +02:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%prep
|
2020-09-04 17:11:55 +02:00
|
|
|
%autosetup -n %{pkg_name}-%{version}
|
2017-07-29 10:16:52 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
|
2018-01-03 03:16:44 +01:00
|
|
|
%check
|
|
|
|
%cabal_test
|
|
|
|
|
2017-07-29 10:16:52 +02:00
|
|
|
%post devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2018-04-26 09:53:01 +02:00
|
|
|
%license LICENSE
|
2017-07-29 10:16:52 +02:00
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
|
|
|
%doc ChangeLog.md README.md
|
|
|
|
|
|
|
|
%changelog
|