commit 46e7b67ffad1f07e3bf57a350bb0d1f43a6ecc0ecd025fb0f0d68d2f4769bd72 Author: Ondřej Súkup Date: Sun Nov 22 10:04:07 2015 +0000 - initial commit OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-edit-distance?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/edit-distance-0.2.2.1.tar.gz b/edit-distance-0.2.2.1.tar.gz new file mode 100644 index 0000000..de3da5d --- /dev/null +++ b/edit-distance-0.2.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e8885ee2f56ad4da940f043ae8f981ee2fe336b5e8e4ba3f7436cff4f526c4a +size 13228 diff --git a/ghc-edit-distance.changes b/ghc-edit-distance.changes new file mode 100644 index 0000000..49e640b --- /dev/null +++ b/ghc-edit-distance.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun Nov 22 10:00:26 UTC 2015 - mimi.vx@gmail.com + +- initial commit + diff --git a/ghc-edit-distance.spec b/ghc-edit-distance.spec new file mode 100644 index 0000000..4f45242 --- /dev/null +++ b/ghc-edit-distance.spec @@ -0,0 +1,92 @@ +# +# spec file for package ghc-edit-distance +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%global pkg_name edit-distance + +%bcond_with tests + +Name: ghc-edit-distance +Version: 0.2.2.1 +Release: 0 +Summary: Levenshtein and restricted Damerau-Levenshtein edit distances +License: BSD-3-Clause +Group: System/Libraries + +Url: https://hackage.haskell.org/package/%{pkg_name} +Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-rpm-macros +# Begin cabal-rpm deps: +BuildRequires: ghc-array-devel +BuildRequires: ghc-containers-devel +BuildRequires: ghc-random-devel +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-test-framework-devel +BuildRequires: ghc-test-framework-quickcheck2-devel +%endif +# End cabal-rpm deps + +%description +Optimized edit distances for fuzzy matching, including Levenshtein and +restricted Damerau-Levenshtein algorithms. + + +%package devel +Summary: Haskell %{pkg_name} library development files +Group: Development/Libraries/Other +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} +Requires: %{name} = %{version}-%{release} + +%description devel +This package provides the Haskell %{pkg_name} library development files. + + +%prep +%setup -q -n %{pkg_name}-%{version} + +%build +%ghc_lib_build + +%install +%ghc_lib_install + +%check +%if %{with tests} +%cabal test +%endif + +%post devel +%ghc_pkg_recache + +%postun devel +%ghc_pkg_recache + +%files -f %{name}.files +%defattr(-,root,root,-) +%doc LICENSE + +%files devel -f %{name}-devel.files +%defattr(-,root,root,-) +%doc README.md + +%changelog