synchronize with lts-7 project from configuration 2a6270155a14cef1f255d1664d61ff4091d92688

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-distributive?expand=0&rev=10
This commit is contained in:
Peter Simons 2017-02-06 15:08:29 +00:00 committed by Git OBS Bridge
parent 03dddbac19
commit 57858a2c21
5 changed files with 118 additions and 7 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8fd0968c19b00b64c8219b81903c72841494460fcf1c10e84fa44f321bb3ae92
size 8827

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ade2be6a5e81950ab2918d938037dde0ce09d04dc399cefbf191ce6cb5f76cd9
size 11824

104
distributive.cabal Normal file
View File

@ -0,0 +1,104 @@
name: distributive
category: Data Structures
version: 0.5.2
x-revision: 2
license: BSD3
cabal-version: >= 1.8
license-file: LICENSE
author: Edward A. Kmett
maintainer: Edward A. Kmett <ekmett@gmail.com>
stability: provisional
homepage: http://github.com/ekmett/distributive/
bug-reports: http://github.com/ekmett/distributive/issues
copyright: Copyright (C) 2011-2016 Edward A. Kmett
synopsis: Distributive functors -- Dual to Traversable
description: Distributive functors -- Dual to Traversable
build-type: Custom
extra-source-files:
.travis.yml
.vim.custom
config
travis-cabal-apt-install
CHANGELOG.markdown
README.markdown
source-repository head
type: git
location: git://github.com/ekmett/distributive.git
custom-setup
setup-depends:
base >= 4 && <5,
cabal-doctest >= 1 && <1.1,
Cabal
flag semigroups
manual: True
default: True
description:
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.
flag tagged
manual: True
default: True
description:
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.
library
build-depends:
base >= 4 && < 5,
base-orphans >= 0.5 && < 1,
transformers >= 0.2 && < 0.6,
transformers-compat >= 0.3 && < 1
hs-source-dirs: src
exposed-modules:
Data.Distributive
if impl(ghc>=7.2)
exposed-modules: Data.Distributive.Generic
if flag(tagged)
build-depends: tagged >= 0.7 && < 1
if impl(ghc>=7.2 && < 7.6)
build-depends: ghc-prim
if impl(ghc < 8.0)
if flag(semigroups)
build-depends: semigroups >= 0.11 && < 1
if impl(ghc < 7.8)
hs-source-dirs: src-compat
other-modules: Data.Coerce
ghc-options: -Wall
-- Verify the results of the examples
test-suite doctests
type: exitcode-stdio-1.0
main-is: doctests.hs
build-depends:
base >= 4,
doctest >= 0.11.1 && <0.12
ghc-options: -Wall -threaded
hs-source-dirs: tests
test-suite spec
type: exitcode-stdio-1.0
hs-source-dirs: tests
build-depends:
base >= 4 && < 5,
distributive,
generic-deriving >= 1.11 && < 2,
hspec >= 2 && < 3
main-is: Spec.hs
other-modules: GenericsSpec
ghc-options: -Wall -threaded -rtsopts

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Feb 5 19:32:22 UTC 2017 - psimons@suse.com
- Update to version 0.5.2 revision 2 with cabal2obs.
-------------------------------------------------------------------
Mon Jan 9 06:33:58 UTC 2017 - psimons@suse.com

View File

@ -19,24 +19,26 @@
%global pkg_name distributive
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 0.5.1
Version: 0.5.2
Release: 0
Summary: Distributive functors -- Dual to Traversable
License: BSD-2-Clause
Group: Development/Languages/Other
Url: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-base-orphans-devel
BuildRequires: ghc-cabal-doctest-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-tagged-devel
BuildRequires: ghc-transformers-compat-devel
BuildRequires: ghc-transformers-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %{with tests}
BuildRequires: ghc-directory-devel
BuildRequires: ghc-doctest-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-generic-deriving-devel
BuildRequires: ghc-hspec-devel
%endif
%description
@ -55,6 +57,7 @@ This package provides the Haskell %{pkg_name} library development files.
%prep
%setup -q -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build
@ -77,6 +80,5 @@ This package provides the Haskell %{pkg_name} library development files.
%files devel -f %{name}-devel.files
%defattr(-,root,root,-)
%doc CHANGELOG.markdown README.markdown
%changelog