refresh to cabal-rpm-0.13

This commit is contained in:
Jens Petersen 2019-02-17 22:44:04 +08:00
parent 2121f661bd
commit 11991d62f5
2 changed files with 115 additions and 102 deletions

View File

@ -1,98 +1,98 @@
name: contravariant name: contravariant
category: Control, Data category: Control, Data
version: 1.4.1 version: 1.4.1
x-revision: 1 x-revision: 1
license: BSD3 license: BSD3
cabal-version: >= 1.6 cabal-version: >= 1.6
license-file: LICENSE license-file: LICENSE
author: Edward A. Kmett author: Edward A. Kmett
maintainer: Edward A. Kmett <ekmett@gmail.com> maintainer: Edward A. Kmett <ekmett@gmail.com>
stability: provisional stability: provisional
homepage: http://github.com/ekmett/contravariant/ homepage: http://github.com/ekmett/contravariant/
bug-reports: http://github.com/ekmett/contravariant/issues bug-reports: http://github.com/ekmett/contravariant/issues
copyright: Copyright (C) 2007-2015 Edward A. Kmett copyright: Copyright (C) 2007-2015 Edward A. Kmett
synopsis: Contravariant functors synopsis: Contravariant functors
description: Contravariant functors. description: Contravariant functors.
build-type: Simple build-type: Simple
tested-with: GHC == 7.0.4 tested-with: GHC == 7.0.4
, GHC == 7.2.2 , GHC == 7.2.2
, GHC == 7.4.2 , GHC == 7.4.2
, GHC == 7.6.3 , GHC == 7.6.3
, GHC == 7.8.4 , GHC == 7.8.4
, GHC == 7.10.3 , GHC == 7.10.3
, GHC == 8.0.2 , GHC == 8.0.2
, GHC == 8.2.2 , GHC == 8.2.2
, GHC == 8.4.1 , GHC == 8.4.1
extra-source-files: extra-source-files:
.travis.yml .travis.yml
CHANGELOG.markdown CHANGELOG.markdown
README.markdown README.markdown
HLint.hs HLint.hs
source-repository head source-repository head
type: git type: git
location: git://github.com/ekmett/contravariant.git location: git://github.com/ekmett/contravariant.git
flag tagged flag tagged
description: description:
You can disable the use of the `tagged` package using `-f-tagged`. You can disable the use of the `tagged` package using `-f-tagged`.
. .
Disabling this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users. Disabling this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users.
default: True default: True
manual: True manual: True
flag semigroups flag semigroups
description: description:
You can disable the use of the `semigroups` package using `-f-semigroups`. You can disable the use of the `semigroups` package using `-f-semigroups`.
. .
Disabling this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users. Disabling this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users.
default: True default: True
manual: True manual: True
flag safe flag safe
description: Get Safe guarantees rather than merely Trustworthy, but with worse constant factors. description: Get Safe guarantees rather than merely Trustworthy, but with worse constant factors.
default: False default: False
manual: True manual: True
flag StateVar flag StateVar
description: description:
You can disable the use of the `StateVar` package using `-f-StateVar`. You can disable the use of the `StateVar` package using `-f-StateVar`.
. .
Disabling this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users. Disabling this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users.
default: True default: True
manual: True manual: True
library library
hs-source-dirs: src hs-source-dirs: src
build-depends: build-depends:
base < 4.12, base < 4.12,
transformers >= 0.2 && < 0.6, transformers >= 0.2 && < 0.6,
transformers-compat >= 0.3 && < 1 transformers-compat >= 0.3 && < 1
if !impl(ghc >= 7.9) if !impl(ghc >= 7.9)
build-depends: void >= 0.6 && < 1 build-depends: void >= 0.6 && < 1
if flag(tagged) && !impl(ghc >= 7.7) if flag(tagged) && !impl(ghc >= 7.7)
build-depends: tagged >= 0.4.4 && < 1 build-depends: tagged >= 0.4.4 && < 1
if flag(semigroups) && !impl(ghc >= 7.11) if flag(semigroups) && !impl(ghc >= 7.11)
build-depends: semigroups >= 0.15.2 && < 1 build-depends: semigroups >= 0.15.2 && < 1
if flag(StateVar) if flag(StateVar)
build-depends: StateVar >= 1.1 && < 1.2 build-depends: StateVar >= 1.1 && < 1.2
if impl(ghc >= 7.2 && < 7.6) if impl(ghc >= 7.2 && < 7.6)
build-depends: ghc-prim build-depends: ghc-prim
if flag(safe) if flag(safe)
cpp-options: -DSAFE cpp-options: -DSAFE
exposed-modules: exposed-modules:
Data.Functor.Contravariant Data.Functor.Contravariant
Data.Functor.Contravariant.Compose Data.Functor.Contravariant.Compose
Data.Functor.Contravariant.Divisible Data.Functor.Contravariant.Divisible
if impl(ghc >= 7.4) if impl(ghc >= 7.4)
exposed-modules: Data.Functor.Contravariant.Generic exposed-modules: Data.Functor.Contravariant.Generic
ghc-options: -Wall ghc-options: -Wall

View File

@ -1,4 +1,4 @@
# generated by cabal-rpm-0.12.5 # generated by cabal-rpm-0.13
# https://fedoraproject.org/wiki/Packaging:Haskell # https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name contravariant %global pkg_name contravariant
@ -6,17 +6,19 @@
Name: ghc-%{pkg_name} Name: ghc-%{pkg_name}
Version: 1.4.1 Version: 1.4.1
Release: 2%{?dist} Release: 3%{?dist}
Summary: Contravariant functors Summary: Contravariant functors
License: BSD License: BSD
Url: https://hackage.haskell.org/package/%{pkg_name} Url: https://hackage.haskell.org/package/%{pkg_name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal 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-Cabal-devel
BuildRequires: ghc-rpm-macros BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires: ghc-StateVar-devel BuildRequires: ghc-StateVar-devel
BuildRequires: ghc-transformers-compat-devel BuildRequires: ghc-transformers-compat-devel
BuildRequires: ghc-transformers-devel BuildRequires: ghc-transformers-devel
@ -42,16 +44,22 @@ This package provides the Haskell %{pkg_name} library development files.
%prep %prep
# Begin cabal-rpm setup:
%setup -q -n %{pkgver} %setup -q -n %{pkgver}
cp -p %{SOURCE1} %{pkg_name}.cabal cp -bp %{SOURCE1} %{pkg_name}.cabal
# End cabal-rpm setup
%build %build
# Begin cabal-rpm build:
%ghc_lib_build %ghc_lib_build
# End cabal-rpm build
%install %install
# Begin cabal-rpm install
%ghc_lib_install %ghc_lib_install
# End cabal-rpm install
%post devel %post devel
@ -63,7 +71,9 @@ cp -p %{SOURCE1} %{pkg_name}.cabal
%files -f %{name}.files %files -f %{name}.files
# Begin cabal-rpm files:
%license LICENSE %license LICENSE
# End cabal-rpm files
%files devel -f %{name}-devel.files %files devel -f %{name}-devel.files
@ -71,6 +81,9 @@ cp -p %{SOURCE1} %{pkg_name}.cabal
%changelog %changelog
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 1.4.1-3
- refresh to cabal-rpm-0.13
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-2 * Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild