2015-11-19 17:58:18 +01:00
|
|
|
#
|
|
|
|
# spec file for package ghc-monad-loops
|
|
|
|
#
|
2020-09-04 17:03:56 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-11-19 17:58:18 +01: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:50:16 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-11-19 17:58:18 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2016-07-18 22:15:51 +02:00
|
|
|
%global pkg_name monad-loops
|
2015-11-19 17:58:18 +01:00
|
|
|
%bcond_with tests
|
2016-07-18 22:15:51 +02:00
|
|
|
Name: ghc-%{pkg_name}
|
2015-11-19 17:58:18 +01:00
|
|
|
Version: 0.4.3
|
|
|
|
Release: 0
|
|
|
|
Summary: Monadic loops
|
|
|
|
License: SUSE-Public-Domain
|
2017-08-15 16:01:42 +02:00
|
|
|
URL: https://hackage.haskell.org/package/%{pkg_name}
|
2015-11-19 17:58:18 +01:00
|
|
|
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-tasty-devel
|
|
|
|
BuildRequires: ghc-tasty-hunit-devel
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
Some useful control operators for looping.
|
|
|
|
|
|
|
|
New in 0.4: STM loop operators have been split into a new package instead of
|
|
|
|
being conditionally-built.
|
|
|
|
|
|
|
|
New in 0.3.2.0: various functions for traversing lists and computing
|
|
|
|
minima/maxima using arbitrary procedures to compare or score the elements.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
2016-07-18 22:15:51 +02:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2015-11-19 17:58:18 +01:00
|
|
|
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:03:56 +02:00
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
2015-11-19 17:58:18 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
|
|
|
|
%check
|
2016-10-06 20:28:14 +02:00
|
|
|
%cabal_test
|
2015-11-19 17:58:18 +01:00
|
|
|
|
|
|
|
%post devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
|
|
|
|
|
|
|
%changelog
|