commit ghc-text-metrics for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-text-metrics for openSUSE:Factory checked in at 2020-09-07 21:32:32 Comparing /work/SRC/openSUSE:Factory/ghc-text-metrics (Old) and /work/SRC/openSUSE:Factory/.ghc-text-metrics.new.3399 (New) Package is "ghc-text-metrics" Mon Sep 7 21:32:32 2020 rev:9 rq:832327 version:0.3.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-text-metrics/ghc-text-metrics.changes 2019-12-27 13:58:13.592799148 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-text-metrics.new.3399/ghc-text-metrics.changes 2020-09-07 21:32:45.097308794 +0200 @@ -1,0 +2,11 @@ +Fri Sep 4 13:46:51 UTC 2020 - Peter Simons + +- Replace %setup -q with the more modern %autosetup macro. + +--- +Fri Sep 4 13:46:36 UTC 2020 - psim...@suse.com + +- Update text-metrics to version 0.3.0 revision 4. + Upstream has revised the Cabal build instructions on Hackage. + +--- Other differences: -- ++ ghc-text-metrics.spec ++ --- /var/tmp/diff_new_pack.Pt1cQL/_old 2020-09-07 21:32:46.369309378 +0200 +++ /var/tmp/diff_new_pack.Pt1cQL/_new 2020-09-07 21:32:46.373309380 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-text-metrics # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -50,7 +50,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep -%setup -q -n %{pkg_name}-%{version} +%autosetup -n %{pkg_name}-%{version} cp -p %{SOURCE1} %{pkg_name}.cabal %build
commit ghc-text-metrics for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-text-metrics for openSUSE:Factory checked in at 2019-12-27 13:58:10 Comparing /work/SRC/openSUSE:Factory/ghc-text-metrics (Old) and /work/SRC/openSUSE:Factory/.ghc-text-metrics.new.6675 (New) Package is "ghc-text-metrics" Fri Dec 27 13:58:10 2019 rev:8 rq:759528 version:0.3.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-text-metrics/ghc-text-metrics.changes 2018-10-25 08:21:25.307936226 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-text-metrics.new.6675/ghc-text-metrics.changes 2019-12-27 13:58:13.592799148 +0100 @@ -1,0 +2,5 @@ +Fri Nov 8 16:14:56 UTC 2019 - Peter Simons + +- Drop obsolete group attributes. + +--- Other differences: -- ++ ghc-text-metrics.spec ++ --- /var/tmp/diff_new_pack.2Lx2oW/_old 2019-12-27 13:58:14.076799382 +0100 +++ /var/tmp/diff_new_pack.2Lx2oW/_new 2019-12-27 13:58:14.076799382 +0100 @@ -1,7 +1,7 @@ # # spec file for package ghc-text-metrics # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -23,7 +23,6 @@ Release:0 Summary:Calculate various string metrics efficiently License:BSD-3-Clause -Group: Development/Libraries/Haskell URL:https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/4.cabal#/%{pkg_name}.cabal @@ -42,7 +41,6 @@ %package devel Summary:Haskell %{pkg_name} library development files -Group: Development/Libraries/Haskell Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version}
commit ghc-text-metrics for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-text-metrics for openSUSE:Factory checked in at 2018-10-25 08:21:25 Comparing /work/SRC/openSUSE:Factory/ghc-text-metrics (Old) and /work/SRC/openSUSE:Factory/.ghc-text-metrics.new (New) Package is "ghc-text-metrics" Thu Oct 25 08:21:25 2018 rev:7 rq:643202 version:0.3.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-text-metrics/ghc-text-metrics.changes 2018-07-24 17:22:27.703305832 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-text-metrics.new/ghc-text-metrics.changes 2018-10-25 08:21:25.307936226 +0200 @@ -1,0 +2,5 @@ +Fri Oct 19 13:14:56 UTC 2018 - Peter Simons + +- Update Cabal build instructions to support ghc-8.6.1. + +--- Other differences: -- ++ ghc-text-metrics.spec ++ --- /var/tmp/diff_new_pack.rOXl4S/_old 2018-10-25 08:21:25.991935920 +0200 +++ /var/tmp/diff_new_pack.rOXl4S/_new 2018-10-25 08:21:25.995935918 +0200 @@ -12,7 +12,7 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -26,7 +26,7 @@ Group: Development/Libraries/Haskell URL:https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz -Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/3.cabal#/%{pkg_name}.cabal +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/4.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-rpm-macros ++ text-metrics.cabal ++ --- /var/tmp/diff_new_pack.rOXl4S/_old 2018-10-25 08:21:26.039935898 +0200 +++ /var/tmp/diff_new_pack.rOXl4S/_new 2018-10-25 08:21:26.039935898 +0200 @@ -1,6 +1,6 @@ name: text-metrics version: 0.3.0 -x-revision: 3 +x-revision: 4 cabal-version:>= 1.10 tested-with: GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.1 license: BSD3 @@ -27,7 +27,7 @@ library build-depends: base >= 4.7 && < 5.0 -, containers >= 0.5.6.2 && < 0.6 +, containers >= 0.5 && < 0.7 , text >= 0.2 && < 1.3 , vector >= 0.11 && < 0.13 exposed-modules:Data.Text.Metrics
commit ghc-text-metrics for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-text-metrics for openSUSE:Factory checked in at 2018-07-24 17:22:27 Comparing /work/SRC/openSUSE:Factory/ghc-text-metrics (Old) and /work/SRC/openSUSE:Factory/.ghc-text-metrics.new (New) Package is "ghc-text-metrics" Tue Jul 24 17:22:27 2018 rev:6 rq:623869 version:0.3.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-text-metrics/ghc-text-metrics.changes 2018-05-30 12:27:29.837880064 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-text-metrics.new/ghc-text-metrics.changes 2018-07-24 17:22:27.703305832 +0200 @@ -1,0 +2,11 @@ +Wed Jul 18 14:26:43 UTC 2018 - psim...@suse.com + +- Cosmetic: replace tabs with blanks, strip trailing white space, + and update copyright headers with spec-cleaner. + +--- +Wed Jul 18 14:13:48 UTC 2018 - psim...@suse.com + +- Revise cabal build file to specify more accurate dependencies. + +--- @@ -32 +42,0 @@ - Other differences: -- ++ ghc-text-metrics.spec ++ --- /var/tmp/diff_new_pack.vIzLsC/_old 2018-07-24 17:22:28.923307393 +0200 +++ /var/tmp/diff_new_pack.vIzLsC/_new 2018-07-24 17:22:28.927307398 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-text-metrics # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -26,7 +26,7 @@ Group: Development/Libraries/Haskell URL:https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz -Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/3.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-rpm-macros ++ text-metrics.cabal ++ --- /var/tmp/diff_new_pack.vIzLsC/_old 2018-07-24 17:22:28.959307439 +0200 +++ /var/tmp/diff_new_pack.vIzLsC/_new 2018-07-24 17:22:28.963307445 +0200 @@ -1,6 +1,6 @@ name: text-metrics version: 0.3.0 -x-revision: 2 +x-revision: 3 cabal-version:>= 1.10 tested-with: GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.1 license: BSD3 @@ -57,7 +57,7 @@ hs-source-dirs: bench-speed type: exitcode-stdio-1.0 build-depends: base >= 4.7 && < 5.0 -, criterion>= 0.6.2.1 && < 1.5 +, criterion>= 0.6.2.1 && < 1.6 , deepseq >= 1.4 && < 1.5 , text >= 0.2 && < 1.3 , text-metrics
commit ghc-text-metrics for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-text-metrics for openSUSE:Factory checked in at 2018-05-30 12:20:55 Comparing /work/SRC/openSUSE:Factory/ghc-text-metrics (Old) and /work/SRC/openSUSE:Factory/.ghc-text-metrics.new (New) Package is "ghc-text-metrics" Wed May 30 12:20:55 2018 rev:5 rq:609823 version:0.3.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-text-metrics/ghc-text-metrics.changes 2017-09-15 22:18:10.630478400 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-text-metrics.new/ghc-text-metrics.changes 2018-05-30 12:27:29.837880064 +0200 @@ -1,0 +2,7 @@ +Wed May 16 14:36:29 UTC 2018 - psim...@suse.com + +- Prefer the new %license attribute over %doc. +- Update Cabal file to revision 2. + * allow building with recent versions of criterion + +--- New: text-metrics.cabal Other differences: -- ++ ghc-text-metrics.spec ++ --- /var/tmp/diff_new_pack.VygsIu/_old 2018-05-30 12:27:30.725849097 +0200 +++ /var/tmp/diff_new_pack.VygsIu/_new 2018-05-30 12:27:30.725849097 +0200 @@ -26,6 +26,7 @@ Group: Development/Libraries/Haskell URL:https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-rpm-macros @@ -52,6 +53,7 @@ %prep %setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build @@ -69,7 +71,7 @@ %ghc_pkg_recache %files -f %{name}.files -%doc LICENSE.md +%license LICENSE.md %files devel -f %{name}-devel.files %doc CHANGELOG.md README.md ++ text-metrics.cabal ++ name: text-metrics version: 0.3.0 x-revision: 2 cabal-version:>= 1.10 tested-with: GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.1 license: BSD3 license-file: LICENSE.md author: Mark Karpov maintainer: Mark Karpov homepage: https://github.com/mrkkrp/text-metrics bug-reports: https://github.com/mrkkrp/text-metrics/issues category: Text, Algorithms synopsis: Calculate various string metrics efficiently build-type: Simple description: Calculate various string metrics efficiently. extra-doc-files: CHANGELOG.md , README.md source-repository head type: git location: https://github.com/mrkkrp/text-metrics.git flag dev description:Turn on development settings. manual: True default:False library build-depends: base >= 4.7 && < 5.0 , containers >= 0.5.6.2 && < 0.6 , text >= 0.2 && < 1.3 , vector >= 0.11 && < 0.13 exposed-modules:Data.Text.Metrics if flag(dev) ghc-options: -Wall -Werror else ghc-options: -O2 -Wall default-language: Haskell2010 test-suite tests main-is:Main.hs hs-source-dirs: tests type: exitcode-stdio-1.0 build-depends: QuickCheck >= 2.8 && < 3.0 , base >= 4.7 && < 5.0 , hspec>= 2.0 && < 3.0 , text >= 0.2 && < 1.3 , text-metrics if flag(dev) ghc-options: -Wall -Werror else ghc-options: -O2 -Wall default-language: Haskell2010 benchmark bench-speed main-is:Main.hs hs-source-dirs: bench-speed type: exitcode-stdio-1.0 build-depends: base >= 4.7 && < 5.0 , criterion>= 0.6.2.1 && < 1.5 , deepseq >= 1.4 && < 1.5 , text >= 0.2 && < 1.3 , text-metrics if flag(dev) ghc-options: -O2 -Wall -Werror else ghc-options: -O2 -Wall default-language: Haskell2010 benchmark bench-memory main-is:Main.hs hs-source-dirs: bench-memory type: exitcode-stdio-1.0 build-depends: base >= 4.7 && < 5.0 , deepseq >= 1.4 && < 1.5 , text >= 0.2 && < 1.3 , text-metrics , weigh>= 0.0.4 if flag(dev) ghc-options: -O2 -Wall -Werror else ghc-options: -O2 -Wall default-language: Haskell2010
commit ghc-text-metrics for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-text-metrics for openSUSE:Factory checked in at 2017-09-15 22:18:09 Comparing /work/SRC/openSUSE:Factory/ghc-text-metrics (Old) and /work/SRC/openSUSE:Factory/.ghc-text-metrics.new (New) Package is "ghc-text-metrics" Fri Sep 15 22:18:09 2017 rev:4 rq:525516 version:0.3.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-text-metrics/ghc-text-metrics.changes 2017-08-31 21:00:30.341340143 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-text-metrics.new/ghc-text-metrics.changes 2017-09-15 22:18:10.630478400 +0200 @@ -1,0 +2,5 @@ +Thu Aug 3 15:38:38 UTC 2017 - psim...@suse.com + +- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf. + +--- Other differences: -- ++ ghc-text-metrics.spec ++ --- /var/tmp/diff_new_pack.ChEres/_old 2017-09-15 22:18:11.366374741 +0200 +++ /var/tmp/diff_new_pack.ChEres/_new 2017-09-15 22:18:11.370374177 +0200 @@ -23,15 +23,14 @@ Release:0 Summary:Calculate various string metrics efficiently License:BSD-3-Clause -Group: Development/Languages/Other -Url:https://hackage.haskell.org/package/%{pkg_name} +Group: Development/Libraries/Haskell +URL:https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-text-devel BuildRequires: ghc-vector-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build %if %{with tests} BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-hspec-devel @@ -42,7 +41,7 @@ %package devel Summary:Haskell %{pkg_name} library development files -Group: Development/Libraries/Other +Group: Development/Libraries/Haskell Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} @@ -70,11 +69,9 @@ %ghc_pkg_recache %files -f %{name}.files -%defattr(-,root,root,-) %doc LICENSE.md %files devel -f %{name}-devel.files -%defattr(-,root,root,-) %doc CHANGELOG.md README.md %changelog
commit ghc-text-metrics for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-text-metrics for openSUSE:Factory checked in at 2017-08-31 21:00:28 Comparing /work/SRC/openSUSE:Factory/ghc-text-metrics (Old) and /work/SRC/openSUSE:Factory/.ghc-text-metrics.new (New) Package is "ghc-text-metrics" Thu Aug 31 21:00:28 2017 rev:3 rq:513514 version:0.3.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-text-metrics/ghc-text-metrics.changes 2017-06-22 10:39:20.558507940 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-text-metrics.new/ghc-text-metrics.changes 2017-08-31 21:00:30.341340143 +0200 @@ -1,0 +2,5 @@ +Thu Jul 27 14:06:28 UTC 2017 - psim...@suse.com + +- Update to version 0.3.0. + +--- Old: text-metrics-0.2.0.tar.gz text-metrics.cabal New: text-metrics-0.3.0.tar.gz Other differences: -- ++ ghc-text-metrics.spec ++ --- /var/tmp/diff_new_pack.K6p7GD/_old 2017-08-31 21:00:32.157085026 +0200 +++ /var/tmp/diff_new_pack.K6p7GD/_new 2017-08-31 21:00:32.185081092 +0200 @@ -19,17 +19,18 @@ %global pkg_name text-metrics %bcond_with tests Name: ghc-%{pkg_name} -Version:0.2.0 +Version:0.3.0 Release:0 Summary:Calculate various string metrics efficiently License:BSD-3-Clause Group: Development/Languages/Other Url:https://hackage.haskell.org/package/%{pkg_name} 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-containers-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-text-devel +BuildRequires: ghc-vector-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %if %{with tests} BuildRequires: ghc-QuickCheck-devel @@ -52,7 +53,6 @@ %prep %setup -q -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++ text-metrics-0.2.0.tar.gz -> text-metrics-0.3.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/text-metrics-0.2.0/CHANGELOG.md new/text-metrics-0.3.0/CHANGELOG.md --- old/text-metrics-0.2.0/CHANGELOG.md 2016-10-09 16:43:02.0 +0200 +++ new/text-metrics-0.3.0/CHANGELOG.md 2017-06-13 10:43:59.0 +0200 @@ -1,3 +1,13 @@ +## Text Metrics 0.3.0 + +* All functions are now implemented in pure Haskell. + +* All functions return `Int` or `Ratio Int` instead of `Natural` and `Ratio + Natural`. + +* Added `overlap` (returns overlap coefficient) and `jaccard` (returns + Jaccard similarity coefficient). + ## Text Metrics 0.2.0 * Made the `levenshtein`, `levenshteinNorm`, `damerauLevenshtein`, and diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/text-metrics-0.2.0/Data/Text/Metrics.hs new/text-metrics-0.3.0/Data/Text/Metrics.hs --- old/text-metrics-0.2.0/Data/Text/Metrics.hs 2016-10-09 16:43:02.0 +0200 +++ new/text-metrics-0.3.0/Data/Text/Metrics.hs 2017-06-13 10:42:49.0 +0200 @@ -1,34 +1,24 @@ -- | -- Module : Data.Text.Metrics --- Copyright : © 2016 Mark Karpov +-- Copyright : © 2016–2017 Mark Karpov -- License : BSD 3 clause -- --- Maintainer : Mark Karpov+-- Maintainer : Mark Karpov -- Stability : experimental -- Portability : portable -- --- The module provides efficient implementations of various strings metrics. --- It works with strict 'Text' values and returns either 'Natural' numbers --- (because the metrics cannot be negative), or @'Ratio' 'Natural'@ values --- because returned values are rational non-negative numbers by definition. --- --- The functions provided here are the fastest implementations available for --- use in Haskell programs. In fact the functions are implemented in C for --- maximal efficiency, but this leads to a minor flaw. When we work with --- 'Text' values in C, they are represented as UTF-16 encoded strings of --- two-byte values. The algorithms treat the strings as if a character --- corresponds to one element in such strings, which is true for almost all --- modern text data. However, there are characters that are represented by --- two adjoined elements in UTF-16: emoji, historic scripts, less used --- Chinese ideographs, and some more. If input 'Text' of the functions --- contains such characters, the functions may return slightly incorrect --- result. Decide for yourself if this is acceptable for your use case, but --- chances are you will never run into situations when the functions
commit ghc-text-metrics for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-text-metrics for openSUSE:Factory checked in at 2017-06-22 10:39:18 Comparing /work/SRC/openSUSE:Factory/ghc-text-metrics (Old) and /work/SRC/openSUSE:Factory/.ghc-text-metrics.new (New) Package is "ghc-text-metrics" Thu Jun 22 10:39:18 2017 rev:2 rq:504112 version:0.2.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-text-metrics/ghc-text-metrics.changes 2017-04-12 18:09:30.218907827 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-text-metrics.new/ghc-text-metrics.changes 2017-06-22 10:39:20.558507940 +0200 @@ -1,0 +2,5 @@ +Sat May 27 12:27:49 UTC 2017 - psim...@suse.com + +- Update to version 0.2.0 revision 1. + +--- New: text-metrics.cabal Other differences: -- ++ ghc-text-metrics.spec ++ --- /var/tmp/diff_new_pack.HWJLOG/_old 2017-06-22 10:39:21.146425052 +0200 +++ /var/tmp/diff_new_pack.HWJLOG/_new 2017-06-22 10:39:21.146425052 +0200 @@ -26,6 +26,7 @@ Group: Development/Languages/Other Url:https://hackage.haskell.org/package/%{pkg_name} 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-rpm-macros BuildRequires: ghc-text-devel @@ -51,6 +52,7 @@ %prep %setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++ text-metrics.cabal ++ -- -- Cabal configuration for ‘text-metrics’ package. -- -- Copyright © 2016 Mark Karpov-- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are -- met: -- -- * Redistributions of source code must retain the above copyright notice, -- this list of conditions and the following disclaimer. -- -- * Redistributions in binary form must reproduce the above copyright -- notice, this list of conditions and the following disclaimer in the -- documentation and/or other materials provided with the distribution. -- -- * Neither the name Mark Karpov nor the names of contributors may be used -- to endorse or promote products derived from this software without -- specific prior written permission. -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS “AS IS” AND ANY -- EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY -- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -- OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -- STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -- ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -- POSSIBILITY OF SUCH DAMAGE. name: text-metrics version: 0.2.0 x-revision: 1 cabal-version:>= 1.10 license: BSD3 license-file: LICENSE.md author: Mark Karpov maintainer: Mark Karpov homepage: https://github.com/mrkkrp/text-metrics bug-reports: https://github.com/mrkkrp/text-metrics/issues category: Text, Algorithms synopsis: Calculate various string metrics efficiently build-type: Simple description: Calculate various string metrics efficiently. extra-doc-files: CHANGELOG.md , README.md extra-source-files: cbits/*.h source-repository head type: git location: https://github.com/mrkkrp/text-metrics.git flag dev description:Turn on development settings. manual: True default:False library build-depends: base >= 4.7 && < 5.0 , text >= 0.2 && < 1.3 if !impl(ghc >= 7.10) build-depends:nats == 1.* exposed-modules:Data.Text.Metrics c-sources: cbits/text_metrics.c include-dirs: cbits if flag(dev) ghc-options: -Wall -Werror else ghc-options: -O2 -Wall default-language: Haskell2010 test-suite tests main-is:Main.hs hs-source-dirs: tests type: exitcode-stdio-1.0 build-depends: QuickCheck >= 2.8 && < 3.0