From 26221f28c00b0296990dee045b312183afd7d57d7c85c1fca0d29a0a3069b3b5 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 12 Jan 2018 20:55:49 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:lts:10 package:ghc-case-insensitive revision:4, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-case-insensitive?expand=0&rev=29 --- case-insensitive.cabal | 74 +++++++++++++++++++++++++++++++++++++++ ghc-case-insensitive.spec | 2 ++ 2 files changed, 76 insertions(+) create mode 100644 case-insensitive.cabal diff --git a/case-insensitive.cabal b/case-insensitive.cabal new file mode 100644 index 0000000..26c79b1 --- /dev/null +++ b/case-insensitive.cabal @@ -0,0 +1,74 @@ +name: case-insensitive +version: 1.2.0.10 +x-revision: 1 +cabal-version: >=1.8 +build-type: Simple +license: BSD3 +license-file: LICENSE +copyright: 2011 Bas van Dijk +author: Bas van Dijk +maintainer: Bas van Dijk +homepage: https://github.com/basvandijk/case-insensitive +bug-reports: https://github.com/basvandijk/case-insensitive/issues +category: Data, Text +synopsis: Case insensitive string comparison +description: The module @Data.CaseInsensitive@ provides the 'CI' type + constructor which can be parameterised by a string-like + type like: 'String', 'ByteString', 'Text', + etc.. Comparisons of values of the resulting type will be + insensitive to cases. +tested-with: + GHC==7.0.4, + GHC==7.2.2 + GHC==7.4.2, + GHC==7.6.3, + GHC==7.8.4, + GHC==7.10.3, + GHC==8.0.1 + +extra-source-files: README.markdown CHANGELOG pg2189.txt + +source-repository head + Type: git + Location: git://github.com/basvandijk/case-insensitive.git + +Library + ghc-options: -Wall + build-depends: base >= 3 && < 4.11 + , bytestring >= 0.9 && < 0.11 + , text >= 0.3 && < 1.3 + , deepseq >= 1.1 && < 1.5 + , hashable >= 1.0 && < 1.3 + if !impl(ghc >= 8.0) + build-depends: semigroups >= 0.18 && < 0.19 + exposed-modules: Data.CaseInsensitive, Data.CaseInsensitive.Unsafe + other-modules: Data.CaseInsensitive.Internal + +test-suite test-case-insensitive + type: exitcode-stdio-1.0 + main-is: test.hs + hs-source-dirs: test + + build-depends: case-insensitive + , base >= 3 && < 4.11 + , bytestring >= 0.9 && < 0.11 + , text >= 0.3 && < 1.3 + , HUnit >= 1.2.2 && < 1.6 + , test-framework >= 0.2.4 && < 0.9 + , test-framework-hunit >= 0.2.4 && < 0.4 + + ghc-options: -Wall + +benchmark bench-case-insensitive + type: exitcode-stdio-1.0 + main-is: bench.hs + other-modules: NoClass + hs-source-dirs: bench + + ghc-options: -Wall -O2 + + build-depends: case-insensitive + , base >= 3 && < 4.11 + , bytestring >= 0.9 && < 0.11 + , criterion >= 0.6.1 && < 1.4 + , deepseq >= 1.1 && < 1.5 diff --git a/ghc-case-insensitive.spec b/ghc-case-insensitive.spec index 871908d..051c303 100644 --- a/ghc-case-insensitive.spec +++ b/ghc-case-insensitive.spec @@ -26,6 +26,7 @@ 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/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-deepseq-devel @@ -57,6 +58,7 @@ files. %prep %setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build