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
This commit is contained in:
Peter Simons 2018-01-12 20:55:49 +00:00 committed by Git OBS Bridge
parent 0e7e936831
commit 26221f28c0
2 changed files with 76 additions and 0 deletions

74
case-insensitive.cabal Normal file
View File

@ -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 <v.dijk.bas@gmail.com>
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

View File

@ -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