diff --git a/equivalence-0.3.5.cabal b/equivalence-0.3.5.cabal new file mode 100644 index 0000000..f52cf52 --- /dev/null +++ b/equivalence-0.3.5.cabal @@ -0,0 +1,48 @@ +Name: equivalence +Version: 0.3.5 +x-revision: 1 +License: BSD3 +License-File: LICENSE +Author: Patrick Bahr +Maintainer: paba@itu.dk +Homepage: https://github.com/pa-ba/equivalence +bug-reports: https://github.com/pa-ba/equivalence/issues/new +Synopsis: Maintaining an equivalence relation implemented as union-find using STT. +Description: + This is an implementation of Tarjan's Union-Find algorithm (Robert + E. Tarjan. "Efficiency of a Good But Not Linear Set Union + Algorithm", JACM 22(2), 1975) in order to maintain an equivalence + relation. + + This implementation is a port of the /union-find/ package using the + ST monad transformer (instead of the IO monad). +Category: Algorithms, Data +Stability: provisional +Build-Type: Simple +Cabal-Version: >=1.9.2 + +Extra-Source-Files: CHANGES.txt + + +source-repository head + type: git + location: https://github.com/pa-ba/equivalence + + +Test-Suite test + Type: exitcode-stdio-1.0 + Main-is: Data_Test.hs + Other-Modules: Data.Equivalence.Monad_Test,Data.Equivalence.Monad, Data.Equivalence.STT + hs-source-dirs: src testsuite/tests + Build-Depends: base >= 4, template-haskell, containers, mtl >= 2.2.1 && < 2.3, QuickCheck >= 2, + STMonadTrans >= 0.4.3, transformers >= 0.2, transformers-compat >= 0.3, fail + +Library + Build-Depends: + base >= 4 && < 5, containers, mtl >= 2.2.1 && < 2.3, STMonadTrans >= 0.4.3, + transformers >= 0.2 && < 0.6, transformers-compat >= 0.3 + Exposed-Modules: + Data.Equivalence.STT, + Data.Equivalence.Monad + Hs-Source-Dirs: src + build-depends: fail diff --git a/ghc-equivalence.spec b/ghc-equivalence.spec index a69888e..e294249 100644 --- a/ghc-equivalence.spec +++ b/ghc-equivalence.spec @@ -15,6 +15,7 @@ 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: @@ -75,6 +76,7 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup cabal-tweak-drop-dep 'build-depends: fail'