Accepting request 477446 from devel:languages:haskell

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/477446
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-distributive?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2017-03-18 19:50:21 +00:00 committed by Git OBS Bridge
commit 11438f85ca
5 changed files with 126 additions and 17 deletions

View File

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

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,13 @@
-------------------------------------------------------------------
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
- Update to version 0.5.1 with cabal2obs.
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jul 10 17:34:08 UTC 2016 - psimons@suse.com Sun Jul 10 17:34:08 UTC 2016 - psimons@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package ghc-distributive # spec file for package ghc-distributive
# #
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -19,27 +19,27 @@
%global pkg_name distributive %global pkg_name distributive
%bcond_with tests %bcond_with tests
Name: ghc-%{pkg_name} Name: ghc-%{pkg_name}
Version: 0.5.0.2 Version: 0.5.2
Release: 0 Release: 0
Summary: Distributive functors -- Dual to Traversable Summary: Distributive functors -- Dual to Traversable
License: BSD-2-Clause License: BSD-2-Clause
Group: System/Libraries Group: Development/Languages/Other
Url: https://hackage.haskell.org/package/%{pkg_name} Url: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz 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-Cabal-devel
# Begin cabal-rpm deps:
BuildRequires: ghc-base-orphans-devel BuildRequires: ghc-base-orphans-devel
BuildRequires: ghc-cabal-doctest-devel
BuildRequires: ghc-rpm-macros BuildRequires: ghc-rpm-macros
BuildRequires: ghc-tagged-devel BuildRequires: ghc-tagged-devel
BuildRequires: ghc-transformers-compat-devel BuildRequires: ghc-transformers-compat-devel
BuildRequires: ghc-transformers-devel BuildRequires: ghc-transformers-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %{with tests} %if %{with tests}
BuildRequires: ghc-directory-devel
BuildRequires: ghc-doctest-devel BuildRequires: ghc-doctest-devel
BuildRequires: ghc-filepath-devel BuildRequires: ghc-generic-deriving-devel
BuildRequires: ghc-hspec-devel
%endif %endif
# End cabal-rpm deps
%description %description
Distributive functors -- Dual to Traversable. Distributive functors -- Dual to Traversable.
@ -57,21 +57,16 @@ This package provides the Haskell %{pkg_name} library development files.
%prep %prep
%setup -q -n %{pkg_name}-%{version} %setup -q -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build %build
%ghc_lib_build %ghc_lib_build
%install %install
%ghc_lib_install %ghc_lib_install
%check %check
%if %{with tests} %cabal_test
%{cabal} test
%endif
%post devel %post devel
%ghc_pkg_recache %ghc_pkg_recache