2017-07-29 10:16:52 +02:00
|
|
|
#
|
|
|
|
# spec file for package ghc-unliftio
|
|
|
|
#
|
2018-01-03 03:16:44 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
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}
|
2018-10-18 11:53:19 +02:00
|
|
|
Version: 0.2.8.1
|
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-17 16:15:42 +02:00
|
|
|
Group: Development/Libraries/Haskell
|
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
|
2018-09-25 03:01:27 +02:00
|
|
|
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
|
2017-07-29 10:16:52 +02:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
BuildRequires: ghc-async-devel
|
|
|
|
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}
|
|
|
|
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
|
2017-08-11 11:08:48 +02:00
|
|
|
Group: Development/Libraries/Haskell
|
2017-07-29 10:16:52 +02:00
|
|
|
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
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
2018-09-25 03:01:27 +02:00
|
|
|
cp -p %{SOURCE1} %{pkg_name}.cabal
|
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
|