refresh to cabal-rpm-0.13
This commit is contained in:
parent
01fdc1886b
commit
c39254a396
|
@ -1,50 +1,50 @@
|
|||
name: STMonadTrans
|
||||
version: 0.4.3
|
||||
x-revision: 1
|
||||
cabal-version: >= 1.8
|
||||
license: BSD3
|
||||
license-file: LICENSE
|
||||
author: Josef Svenningsson
|
||||
maintainer: josef.svenningsson@gmail.com
|
||||
category: Monads
|
||||
build-type: Simple
|
||||
synopsis: A monad transformer version of the ST monad
|
||||
description:
|
||||
A monad transformer version of the ST monad
|
||||
|
||||
Warning! This monad transformer should not be used with monads that
|
||||
can contain multiple answers, like the list monad. The reason is that
|
||||
the state token will be duplicated across the different answers and
|
||||
this causes Bad Things to happen (such as loss of referential
|
||||
transparency). Safe monads include the monads State, Reader, Writer,
|
||||
Maybe and combinations of their corresponding monad transformers.
|
||||
|
||||
extra-source-files:
|
||||
changelog.md
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: https://github.com/josefs/STMonadTrans
|
||||
|
||||
flag splitBase
|
||||
description: Choose the new smaller, split-up base package.
|
||||
|
||||
library
|
||||
build-depends: base >= 4.6
|
||||
|
||||
if flag(splitBase)
|
||||
build-depends: base >= 3, base < 5, mtl, array
|
||||
else
|
||||
build-depends: base < 3
|
||||
|
||||
exposed-modules:
|
||||
Control.Monad.ST.Trans,
|
||||
Control.Monad.ST.Trans.Internal
|
||||
extensions: CPP, MagicHash, UnboxedTuples, Rank2Types, FlexibleInstances,
|
||||
MultiParamTypeClasses, UndecidableInstances
|
||||
|
||||
Test-Suite foo
|
||||
type: detailed-0.9
|
||||
hs-source-dirs: test
|
||||
test-module: Test
|
||||
build-depends: STMonadTrans, base, mtl, array, Cabal
|
||||
name: STMonadTrans
|
||||
version: 0.4.3
|
||||
x-revision: 1
|
||||
cabal-version: >= 1.8
|
||||
license: BSD3
|
||||
license-file: LICENSE
|
||||
author: Josef Svenningsson
|
||||
maintainer: josef.svenningsson@gmail.com
|
||||
category: Monads
|
||||
build-type: Simple
|
||||
synopsis: A monad transformer version of the ST monad
|
||||
description:
|
||||
A monad transformer version of the ST monad
|
||||
|
||||
Warning! This monad transformer should not be used with monads that
|
||||
can contain multiple answers, like the list monad. The reason is that
|
||||
the state token will be duplicated across the different answers and
|
||||
this causes Bad Things to happen (such as loss of referential
|
||||
transparency). Safe monads include the monads State, Reader, Writer,
|
||||
Maybe and combinations of their corresponding monad transformers.
|
||||
|
||||
extra-source-files:
|
||||
changelog.md
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: https://github.com/josefs/STMonadTrans
|
||||
|
||||
flag splitBase
|
||||
description: Choose the new smaller, split-up base package.
|
||||
|
||||
library
|
||||
build-depends: base >= 4.6
|
||||
|
||||
if flag(splitBase)
|
||||
build-depends: base >= 3, base < 5, mtl, array
|
||||
else
|
||||
build-depends: base < 3
|
||||
|
||||
exposed-modules:
|
||||
Control.Monad.ST.Trans,
|
||||
Control.Monad.ST.Trans.Internal
|
||||
extensions: CPP, MagicHash, UnboxedTuples, Rank2Types, FlexibleInstances,
|
||||
MultiParamTypeClasses, UndecidableInstances
|
||||
|
||||
Test-Suite foo
|
||||
type: detailed-0.9
|
||||
hs-source-dirs: test
|
||||
test-module: Test
|
||||
build-depends: STMonadTrans, base, mtl, array, Cabal
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# generated by cabal-rpm-0.12.5
|
||||
# generated by cabal-rpm-0.13
|
||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||
|
||||
%global pkg_name STMonadTrans
|
||||
|
@ -8,17 +8,19 @@
|
|||
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 0.4.3
|
||||
Release: 8%{?dist}
|
||||
Release: 9%{?dist}
|
||||
Summary: A monad transformer version of the ST monad
|
||||
|
||||
License: BSD
|
||||
Url: https://hackage.haskell.org/package/%{pkg_name}
|
||||
# Begin cabal-rpm sources:
|
||||
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
||||
Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
|
||||
# End cabal-rpm sources
|
||||
|
||||
# Begin cabal-rpm deps:
|
||||
BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-rpm-macros
|
||||
# Begin cabal-rpm deps:
|
||||
BuildRequires: ghc-array-devel
|
||||
BuildRequires: ghc-mtl-devel
|
||||
# End cabal-rpm deps
|
||||
|
@ -48,16 +50,22 @@ This package provides the Haskell %{pkg_name} library development files.
|
|||
|
||||
|
||||
%prep
|
||||
# Begin cabal-rpm setup:
|
||||
%setup -q -n %{pkgver}
|
||||
cp -p %{SOURCE1} %{pkg_name}.cabal
|
||||
cp -bp %{SOURCE1} %{pkg_name}.cabal
|
||||
# End cabal-rpm setup
|
||||
|
||||
|
||||
%build
|
||||
# Begin cabal-rpm build:
|
||||
%ghc_lib_build
|
||||
# End cabal-rpm build
|
||||
|
||||
|
||||
%install
|
||||
# Begin cabal-rpm install
|
||||
%ghc_lib_install
|
||||
# End cabal-rpm install
|
||||
|
||||
|
||||
%check
|
||||
|
@ -73,7 +81,9 @@ cp -p %{SOURCE1} %{pkg_name}.cabal
|
|||
|
||||
|
||||
%files -f %{name}.files
|
||||
# Begin cabal-rpm files:
|
||||
%license LICENSE
|
||||
# End cabal-rpm files
|
||||
|
||||
|
||||
%files devel -f %{name}-devel.files
|
||||
|
@ -81,6 +91,9 @@ cp -p %{SOURCE1} %{pkg_name}.cabal
|
|||
|
||||
|
||||
%changelog
|
||||
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 0.4.3-9
|
||||
- refresh to cabal-rpm-0.13
|
||||
|
||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
|
|
Loading…
Reference in New Issue