update to 0.4.1

This commit is contained in:
Jens Petersen 2023-01-22 23:31:42 +08:00
parent 2a38d00bc2
commit 690f7a9930
4 changed files with 30 additions and 57 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
/equivalence-0.3.3.tar.gz
/equivalence-0.3.4.tar.gz
/equivalence-0.3.5.tar.gz
/equivalence-0.4.1.tar.gz

View File

@ -1,48 +0,0 @@
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

View File

@ -1,26 +1,32 @@
# generated by cabal-rpm-2.0.9
# generated by cabal-rpm-2.1.0
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
%global pkg_name equivalence
%global pkgver %{pkg_name}-%{version}
# testsuite missing deps: fail
%bcond_without tests
Name: ghc-%{pkg_name}
Version: 0.3.5
Release: 9%{?dist}
Version: 0.4.1
Release: 1%{?dist}
Summary: Maintaining an equivalence relation implemented as union-find using STT
License: BSD
License: BSD-3-Clause
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:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-STMonadTrans-devel
BuildRequires: ghc-base-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-transformers-devel
BuildRequires: ghc-transformers-compat-devel
%if %{with ghc_prof}
BuildRequires: ghc-STMonadTrans-prof
BuildRequires: ghc-base-prof
BuildRequires: ghc-containers-prof
@ -28,6 +34,11 @@ BuildRequires: ghc-containers-prof
BuildRequires: ghc-mtl-prof
BuildRequires: ghc-transformers-prof
BuildRequires: ghc-transformers-compat-prof
%endif
%if %{with tests}
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-template-haskell-devel
%endif
# End cabal-rpm deps
%description
@ -76,7 +87,6 @@ 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'
@ -93,6 +103,12 @@ cabal-tweak-drop-dep 'build-depends: fail'
# End cabal-rpm install
%check
%if %{with tests}
%cabal_test
%endif
%files -f %{name}.files
# Begin cabal-rpm files:
%license LICENSE
@ -100,7 +116,7 @@ cabal-tweak-drop-dep 'build-depends: fail'
%files devel -f %{name}-devel.files
%doc CHANGES.txt
%doc CHANGES.md
%if %{with haddock}
@ -115,6 +131,10 @@ cabal-tweak-drop-dep 'build-depends: fail'
%changelog
* Sun Jan 22 2023 Jens Petersen <petersen@redhat.com> - 0.4.1-1
- https://hackage.haskell.org/package/equivalence-0.4.1/changelog
- refresh to cabal-rpm-2.1.0 with SPDX migration
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (equivalence-0.3.5.tar.gz) = f8a073c9ddc49a8c1d60a280b84f97947a23ed6a021b92d4028100ed308cf1dfcd0b26889a6cbbde0e77f00b777b2d1af0fa2410422641e0a03395692a9ebefc
SHA512 (equivalence-0.4.1.tar.gz) = 84bb593b3995da9ae05327e46c3965b0b66c662591fe264030a283cee52b6eca23aaa49a3c9f11b8c616dd1a5a8d731db3ba2d8993e0d8aa29d11e0f7efef0f3