refresh to cabal-rpm-0.13
This commit is contained in:
parent
9e9ceba4c9
commit
19090dedb6
|
@ -1,4 +1,4 @@
|
||||||
# generated by cabal-rpm-0.12.5
|
# generated by cabal-rpm-0.13
|
||||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||||
|
|
||||||
%global pkg_name text-short
|
%global pkg_name text-short
|
||||||
|
@ -8,16 +8,19 @@
|
||||||
|
|
||||||
Name: ghc-%{pkg_name}
|
Name: ghc-%{pkg_name}
|
||||||
Version: 0.1.2
|
Version: 0.1.2
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: Memory-efficient representation of Unicode text strings
|
Summary: Memory-efficient representation of Unicode text strings
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
Url: https://hackage.haskell.org/package/%{pkg_name}
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
||||||
|
# Begin cabal-rpm sources:
|
||||||
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
||||||
|
Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
|
||||||
|
# End cabal-rpm sources
|
||||||
|
|
||||||
|
# Begin cabal-rpm deps:
|
||||||
BuildRequires: ghc-Cabal-devel
|
BuildRequires: ghc-Cabal-devel
|
||||||
BuildRequires: ghc-rpm-macros
|
BuildRequires: ghc-rpm-macros
|
||||||
# Begin cabal-rpm deps:
|
|
||||||
BuildRequires: ghc-binary-devel
|
BuildRequires: ghc-binary-devel
|
||||||
BuildRequires: ghc-bytestring-devel
|
BuildRequires: ghc-bytestring-devel
|
||||||
BuildRequires: ghc-deepseq-devel
|
BuildRequires: ghc-deepseq-devel
|
||||||
|
@ -59,15 +62,22 @@ This package provides the Haskell %{pkg_name} library development files.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
# Begin cabal-rpm setup:
|
||||||
%setup -q -n %{pkgver}
|
%setup -q -n %{pkgver}
|
||||||
|
cp -bp %{SOURCE1} %{pkg_name}.cabal
|
||||||
|
# End cabal-rpm setup
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
# Begin cabal-rpm build:
|
||||||
%ghc_lib_build
|
%ghc_lib_build
|
||||||
|
# End cabal-rpm build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
# Begin cabal-rpm install
|
||||||
%ghc_lib_install
|
%ghc_lib_install
|
||||||
|
# End cabal-rpm install
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
@ -83,7 +93,9 @@ This package provides the Haskell %{pkg_name} library development files.
|
||||||
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
|
# Begin cabal-rpm files:
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
# End cabal-rpm files
|
||||||
|
|
||||||
|
|
||||||
%files devel -f %{name}-devel.files
|
%files devel -f %{name}-devel.files
|
||||||
|
@ -91,6 +103,9 @@ This package provides the Haskell %{pkg_name} library development files.
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 0.1.2-5
|
||||||
|
- refresh to cabal-rpm-0.13
|
||||||
|
|
||||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-4
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,91 @@
|
||||||
|
cabal-version: 1.18
|
||||||
|
|
||||||
|
name: text-short
|
||||||
|
version: 0.1.2
|
||||||
|
x-revision: 1
|
||||||
|
synopsis: Memory-efficient representation of Unicode text strings
|
||||||
|
license: BSD3
|
||||||
|
license-file: LICENSE
|
||||||
|
author: Herbert Valerio Riedel
|
||||||
|
maintainer: hvr@gnu.org
|
||||||
|
bug-reports: https://github.com/hvr/text-short/issues
|
||||||
|
category: Data
|
||||||
|
build-type: Simple
|
||||||
|
description: This package provides the 'ShortText' type which is suitable for keeping many short strings in memory. This is similiar to how 'ShortByteString' relates to 'ByteString'.
|
||||||
|
.
|
||||||
|
The main difference between 'Text' and 'ShortText' is that 'ShortText' uses UTF-8 instead of UTF-16 internally and also doesn't support zero-copy slicing (thereby saving 2 words). Consequently, the memory footprint of a (boxed) 'ShortText' value is 4 words (2 words when unboxed) plus the length of the UTF-8 encoded payload.
|
||||||
|
|
||||||
|
tested-with: GHC==8.4.1, GHC==8.2.2, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4
|
||||||
|
extra-source-files: ChangeLog.md
|
||||||
|
|
||||||
|
Source-Repository head
|
||||||
|
Type: git
|
||||||
|
Location: https://github.com/hvr/text-short.git
|
||||||
|
|
||||||
|
flag asserts
|
||||||
|
description: Enable runtime-checks via @assert@
|
||||||
|
default: False
|
||||||
|
manual: True
|
||||||
|
|
||||||
|
library
|
||||||
|
exposed-modules: Data.Text.Short
|
||||||
|
Data.Text.Short.Partial
|
||||||
|
Data.Text.Short.Unsafe
|
||||||
|
|
||||||
|
other-modules: Data.Text.Short.Internal
|
||||||
|
|
||||||
|
build-depends: base >= 4.7 && < 4.13
|
||||||
|
, bytestring >= 0.10.4 && < 0.11
|
||||||
|
, hashable >= 1.2.6 && < 1.3
|
||||||
|
, deepseq >= 1.3 && < 1.5
|
||||||
|
, text >= 1.0 && < 1.3
|
||||||
|
, binary >= 0.7.1 && < 0.9
|
||||||
|
, ghc-prim >= 0.3.1 && < 0.6
|
||||||
|
|
||||||
|
if !impl(ghc >= 8.0)
|
||||||
|
build-depends: semigroups >= 0.18.2 && < 0.19
|
||||||
|
|
||||||
|
-- GHC version specific PrimOps
|
||||||
|
if impl(ghc >= 8.4)
|
||||||
|
hs-source-dirs: src-ghc804
|
||||||
|
else
|
||||||
|
c-sources: cbits/memcmp.c
|
||||||
|
hs-source-dirs: src-ghc708
|
||||||
|
other-modules: PrimOps
|
||||||
|
|
||||||
|
hs-source-dirs: src
|
||||||
|
|
||||||
|
default-language: Haskell2010
|
||||||
|
other-extensions: CPP
|
||||||
|
, GeneralizedNewtypeDeriving
|
||||||
|
, MagicHash
|
||||||
|
, UnliftedFFITypes
|
||||||
|
, Trustworthy
|
||||||
|
, Unsafe
|
||||||
|
|
||||||
|
c-sources: cbits/cbits.c
|
||||||
|
|
||||||
|
if flag(asserts)
|
||||||
|
ghc-options: -fno-ignore-asserts
|
||||||
|
else
|
||||||
|
cc-options: -DNDEBUG=1
|
||||||
|
|
||||||
|
ghc-options: -Wall
|
||||||
|
cc-options: -O3 -Wall
|
||||||
|
|
||||||
|
test-suite tests
|
||||||
|
type: exitcode-stdio-1.0
|
||||||
|
hs-source-dirs: src-test
|
||||||
|
main-is: Tests.hs
|
||||||
|
|
||||||
|
build-depends: base
|
||||||
|
, binary
|
||||||
|
, text
|
||||||
|
, text-short
|
||||||
|
-- deps which don't inherit constraints from library stanza:
|
||||||
|
, tasty >= 1.0.0 && < 1.1
|
||||||
|
, tasty-quickcheck >= 0.10 && < 0.11
|
||||||
|
, tasty-hunit >= 0.10.0 && < 0.11
|
||||||
|
, quickcheck-instances >= 0.3.14 && < 0.4
|
||||||
|
|
||||||
|
default-language: Haskell2010
|
Loading…
Reference in New Issue