refresh to cabal-rpm-0.13
This commit is contained in:
parent
dca4141912
commit
882114f397
|
@ -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,4 +1,4 @@
|
|||
# generated by cabal-rpm-0.12.1
|
||||
# generated by cabal-rpm-0.13
|
||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||
|
||||
%global pkg_name edit-distance
|
||||
|
@ -8,16 +8,19 @@
|
|||
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 0.2.2.1
|
||||
Release: 10%{?dist}
|
||||
Release: 11%{?dist}
|
||||
Summary: Levenshtein and restricted Damerau-Levenshtein edit distances
|
||||
|
||||
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:
|
||||
BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-rpm-macros
|
||||
# Begin cabal-rpm deps:
|
||||
BuildRequires: ghc-array-devel
|
||||
BuildRequires: ghc-containers-devel
|
||||
BuildRequires: ghc-random-devel
|
||||
|
@ -49,15 +52,22 @@ This package provides the Haskell %{pkg_name} library development files.
|
|||
|
||||
|
||||
%prep
|
||||
# Begin cabal-rpm setup:
|
||||
%setup -q -n %{pkgver}
|
||||
cp -bp %{SOURCE1} %{pkg_name}.cabal
|
||||
# End cabal-rpm setup
|
||||
|
||||
|
||||
%build
|
||||
# Begin cabal-rpm build:
|
||||
%ghc_lib_build
|
||||
# End cabal-rpm build
|
||||
|
||||
|
||||
%install
|
||||
# Begin cabal-rpm install
|
||||
%ghc_lib_install
|
||||
# End cabal-rpm install
|
||||
|
||||
|
||||
%check
|
||||
|
@ -73,7 +83,9 @@ This package provides the Haskell %{pkg_name} library development files.
|
|||
|
||||
|
||||
%files -f %{name}.files
|
||||
# Begin cabal-rpm files:
|
||||
%license LICENSE
|
||||
# End cabal-rpm files
|
||||
|
||||
|
||||
%files devel -f %{name}-devel.files
|
||||
|
@ -81,6 +93,9 @@ This package provides the Haskell %{pkg_name} library development files.
|
|||
|
||||
|
||||
%changelog
|
||||
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 0.2.2.1-11
|
||||
- refresh to cabal-rpm-0.13
|
||||
|
||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2.1-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
|
|
Loading…
Reference in New Issue