forked from pool/ghc-edit-distance
Accepting request 434621 from devel:languages:haskell
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/434621 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-edit-distance?expand=0&rev=3
This commit is contained in:
commit
d197922dcb
49
edit-distance.cabal
Normal file
49
edit-distance.cabal
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
name: edit-distance
|
||||||
|
version: 0.2.2.1
|
||||||
|
x-revision: 1
|
||||||
|
cabal-version: >= 1.10
|
||||||
|
category: Algorithms
|
||||||
|
synopsis: Levenshtein and restricted Damerau-Levenshtein edit distances
|
||||||
|
description: Optimized edit distances for fuzzy matching, including Levenshtein and restricted Damerau-Levenshtein algorithms.
|
||||||
|
license: BSD3
|
||||||
|
license-File: LICENSE
|
||||||
|
extra-source-files: README.md
|
||||||
|
author: Max Bolingbroke <batterseapower@hotmail.com>
|
||||||
|
copyright: (c) 2008-2013 Maximilian Bolinbroke
|
||||||
|
maintainer: Oleg Grenrus <oleg.grenrus@iki.fi>
|
||||||
|
homepage: http://github.com/phadej/edit-distance
|
||||||
|
build-type: Simple
|
||||||
|
|
||||||
|
library
|
||||||
|
default-language: Haskell98
|
||||||
|
exposed-modules: Text.EditDistance
|
||||||
|
other-modules: Text.EditDistance.EditCosts
|
||||||
|
Text.EditDistance.SquareSTUArray
|
||||||
|
Text.EditDistance.STUArray
|
||||||
|
Text.EditDistance.Bits
|
||||||
|
Text.EditDistance.MonadUtilities
|
||||||
|
Text.EditDistance.ArrayUtilities
|
||||||
|
build-depends: base >= 4.5 && < 5, array >= 0.1, random >= 1.0, containers >= 0.1.0.1
|
||||||
|
ghc-options: -O2 -Wall
|
||||||
|
|
||||||
|
test-suite edit-distance-tests
|
||||||
|
default-language: Haskell98
|
||||||
|
main-is: Text/EditDistance/Tests.hs
|
||||||
|
other-modules: Text.EditDistance.Tests.EditOperationOntology
|
||||||
|
Text.EditDistance.Tests.Properties
|
||||||
|
type: exitcode-stdio-1.0
|
||||||
|
ghc-options: -O2 -Wall
|
||||||
|
build-depends: base >= 4.5 && < 5, array >= 0.1, random >= 1.0, containers >= 0.1.0.1,
|
||||||
|
test-framework >= 0.1.1, QuickCheck >= 2.4 && <2.10, test-framework-quickcheck2
|
||||||
|
|
||||||
|
benchmark edit-distance-benchmark
|
||||||
|
default-language: Haskell98
|
||||||
|
main-is: Text/EditDistance/Benchmark.hs
|
||||||
|
type: exitcode-stdio-1.0
|
||||||
|
build-depends: base >= 4.5 && < 5, array >= 0.1, random >= 1.0, time >= 1.0, process >= 1.0,
|
||||||
|
deepseq >= 1.2, unix >= 2.3, criterion >= 1.1, containers >= 0.1.0.1
|
||||||
|
ghc-options: -O2
|
||||||
|
|
||||||
|
source-repository head
|
||||||
|
type: git
|
||||||
|
location: https://github.com/phadej/edit-distance.git
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 17 18:28:05 UTC 2016 - psimons@suse.com
|
||||||
|
|
||||||
|
- Update to version 0.2.2.1 revision 1 with cabal2obs.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jul 10 17:18:49 UTC 2016 - psimons@suse.com
|
Sun Jul 10 17:18:49 UTC 2016 - psimons@suse.com
|
||||||
|
|
||||||
|
@ -23,11 +23,11 @@ Version: 0.2.2.1
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: Levenshtein and restricted Damerau-Levenshtein edit distances
|
Summary: Levenshtein and restricted Damerau-Levenshtein edit distances
|
||||||
License: BSD-3-Clause
|
License: BSD-3-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/1.cabal#/%{pkg_name}.cabal
|
||||||
BuildRequires: ghc-Cabal-devel
|
BuildRequires: ghc-Cabal-devel
|
||||||
# Begin cabal-rpm deps:
|
|
||||||
BuildRequires: ghc-array-devel
|
BuildRequires: ghc-array-devel
|
||||||
BuildRequires: ghc-containers-devel
|
BuildRequires: ghc-containers-devel
|
||||||
BuildRequires: ghc-random-devel
|
BuildRequires: ghc-random-devel
|
||||||
@ -38,7 +38,6 @@ BuildRequires: ghc-QuickCheck-devel
|
|||||||
BuildRequires: ghc-test-framework-devel
|
BuildRequires: ghc-test-framework-devel
|
||||||
BuildRequires: ghc-test-framework-quickcheck2-devel
|
BuildRequires: ghc-test-framework-quickcheck2-devel
|
||||||
%endif
|
%endif
|
||||||
# End cabal-rpm deps
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Optimized edit distances for fuzzy matching, including Levenshtein and
|
Optimized edit distances for fuzzy matching, including Levenshtein and
|
||||||
@ -57,21 +56,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
|
||||||
@ -85,6 +79,5 @@ This package provides the Haskell %{pkg_name} library development files.
|
|||||||
|
|
||||||
%files devel -f %{name}-devel.files
|
%files devel -f %{name}-devel.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README.md
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user