diff --git a/distributive-0.5.1.tar.gz b/distributive-0.5.1.tar.gz deleted file mode 100644 index 8442a2b..0000000 --- a/distributive-0.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8fd0968c19b00b64c8219b81903c72841494460fcf1c10e84fa44f321bb3ae92 -size 8827 diff --git a/distributive-0.5.2.tar.gz b/distributive-0.5.2.tar.gz new file mode 100644 index 0000000..59625a5 --- /dev/null +++ b/distributive-0.5.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ade2be6a5e81950ab2918d938037dde0ce09d04dc399cefbf191ce6cb5f76cd9 +size 11824 diff --git a/distributive.cabal b/distributive.cabal new file mode 100644 index 0000000..aeb8c95 --- /dev/null +++ b/distributive.cabal @@ -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 +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 diff --git a/ghc-distributive.changes b/ghc-distributive.changes index 7620b71..0a64296 100644 --- a/ghc-distributive.changes +++ b/ghc-distributive.changes @@ -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 diff --git a/ghc-distributive.spec b/ghc-distributive.spec index a2e3210..dfb6b8b 100644 --- a/ghc-distributive.spec +++ b/ghc-distributive.spec @@ -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