Accepting request 838495 from devel:languages:haskell

version update

OBS-URL: https://build.opensuse.org/request/show/838495
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-text-conversions?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2020-09-30 17:53:34 +00:00 committed by Git OBS Bridge
commit 3724687d7b
3 changed files with 68 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Sep 22 09:35:59 UTC 2020 - psimons@suse.com
- Update text-conversions to version 0.3.0 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Tue Aug 18 10:46:13 UTC 2020 - Peter Simons <psimons@suse.com>

View File

@ -25,6 +25,7 @@ Summary: Safe conversions between textual types
License: ISC
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-base16-bytestring-devel
BuildRequires: ghc-base64-bytestring-devel
@ -53,6 +54,7 @@ files.
%prep
%autosetup -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build

60
text-conversions.cabal Normal file
View File

@ -0,0 +1,60 @@
name: text-conversions
version: 0.3.0
x-revision: 1
synopsis: Safe conversions between textual types
description: Safe conversions between textual types
category: Data
homepage: https://github.com/cjdev/text-conversions#readme
bug-reports: https://github.com/cjdev/text-conversions/issues
author: Alexis King
maintainer: lexi.lambda@gmail.com
license: ISC
license-file: LICENSE
build-type: Simple
cabal-version: >= 1.10
extra-source-files:
CHANGELOG.md
LICENSE
package.yaml
README.md
stack.yaml
source-repository head
type: git
location: https://github.com/cjdev/text-conversions
library
hs-source-dirs:
src
default-extensions: FlexibleInstances MultiParamTypeClasses OverloadedStrings
ghc-options: -Wall
build-depends:
base >= 4.7 && < 5
, bytestring
-- see https://github.com/haskell-infra/hackage-trustees/issues/280
, base16-bytestring >= 0.1.1 && < 0.2
, base64-bytestring
, errors
, text
exposed-modules:
Data.Text.Conversions
default-language: Haskell2010
test-suite text-conversions-test-suite
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs:
test
default-extensions: FlexibleInstances MultiParamTypeClasses OverloadedStrings
ghc-options: -Wall -rtsopts -threaded -with-rtsopts=-N
build-depends:
base
, text-conversions
, bytestring
, hspec
, hspec-discover
, text
other-modules:
Data.Text.ConversionsSpec
default-language: Haskell2010