osc copypac from project:devel:languages:haskell:ghc-9.8.x package:ghc-unicode-transforms revision:3, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-unicode-transforms?expand=0&rev=66
This commit is contained in:
2024-07-19 12:40:34 +00:00
committed by Git OBS Bridge
commit efc02f5ca7
6 changed files with 530 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,170 @@
-------------------------------------------------------------------
Fri Jul 5 11:01:41 UTC 2024 - Peter Simons <psimons@suse.com>
- Update unicode-transforms to version 0.4.0.1 revision 6.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Sun Jun 23 13:53:23 UTC 2024 - Peter Simons <psimons@suse.com>
- Update unicode-transforms to version 0.4.0.1 revision 5.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Tue Oct 24 17:10:40 UTC 2023 - Peter Simons <psimons@suse.com>
- Update unicode-transforms to version 0.4.0.1 revision 4.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Thu Mar 30 17:08:47 UTC 2023 - Peter Simons <psimons@suse.com>
- Updated spec file to conform with ghc-rpm-macros-2.5.2.
-------------------------------------------------------------------
Tue Mar 14 07:26:57 UTC 2023 - Peter Simons <psimons@suse.com>
- Update unicode-transforms to version 0.4.0.1 revision 3.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Thu Oct 20 15:41:04 UTC 2022 - Peter Simons <psimons@suse.com>
- Update unicode-transforms to version 0.4.0.1 revision 2.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Wed Sep 14 06:56:28 UTC 2022 - Peter Simons <psimons@suse.com>
- Update unicode-transforms to version 0.4.0.1 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Mon Mar 21 11:41:13 UTC 2022 - Peter Simons <psimons@suse.com>
- Update unicode-transforms to version 0.4.0.1.
## 0.4.0.1 (March 2022)
* Support text-icu == 0.8.* in tests
* Support unicode-data == 0.3.*
-------------------------------------------------------------------
Sun Jan 9 09:53:23 UTC 2022 - Peter Simons <psimons@suse.com>
- Update unicode-transforms to version 0.4.0 revision 1.
## 0.4.0 (November 2021)
* Bump `unicode-data` to `0.2`
* Allow `text 2.0`
* Update to Unicode version 14.0.0
* Drop support for GHC 7.10
-------------------------------------------------------------------
Sun Nov 21 20:08:38 UTC 2021 - Ondřej Súkup <mimi.vx@gmail.com>
- relax overspecified constraints on unicode-data
-------------------------------------------------------------------
Fri Jul 23 13:01:45 UTC 2021 - psimons@suse.com
- Update unicode-transforms to version 0.3.8.
## 0.3.8
* Allow ghc-prim 0.7
* Extract `unicode-data` into its own package
* Depend on the latest stable `text`
-------------------------------------------------------------------
Thu Apr 22 07:55:14 UTC 2021 - psimons@suse.com
- Update unicode-transforms to version 0.3.7.1 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
- disable %{ix86} build
-------------------------------------------------------------------
Tue Oct 13 07:00:26 UTC 2020 - psimons@suse.com
- Update unicode-transforms to version 0.3.7.1.
## 0.3.7.1
* Fix x32 build
-------------------------------------------------------------------
Tue Aug 18 17:11:54 UTC 2020 - psimons@suse.com
- Update unicode-transforms to version 0.3.7.
## 0.3.7
* Significant performance improvements
* Update to Unicode version 13.0.0
-------------------------------------------------------------------
Tue Aug 18 10:46:25 UTC 2020 - Peter Simons <psimons@suse.com>
- Replace %setup -q with the more modern %autosetup macro.
-------------------------------------------------------------------
Tue Jun 16 11:14:46 UTC 2020 - Peter Simons <psimons@suse.com>
- Re-generate file with latest version of spec-cleaner.
-------------------------------------------------------------------
Fri Nov 8 16:15:06 UTC 2019 - Peter Simons <psimons@suse.com>
- Drop obsolete group attributes.
-------------------------------------------------------------------
Mon Jun 17 02:01:41 UTC 2019 - psimons@suse.com
- Update unicode-transforms to version 0.3.6.
## 0.3.6
* Update to Unicode version 12.1.0
* Update Quickcheck dependency version bounds
* Test with GHC 8.6.5
-------------------------------------------------------------------
Sat Nov 17 03:01:51 UTC 2018 - psimons@suse.com
- Update unicode-transforms to version 0.3.5.
## 0.3.5
* Update dependency version bounds
* Test with GHC 8.6.2
-------------------------------------------------------------------
Sat Oct 20 11:32:10 UTC 2018 - Peter Simons <psimons@suse.com>
- Use https URL to refer to bugs.opensuse.org.
-------------------------------------------------------------------
Wed Jul 18 14:26:46 UTC 2018 - psimons@suse.com
- Cosmetic: replace tabs with blanks, strip trailing white space,
and update copyright headers with spec-cleaner.
-------------------------------------------------------------------
Mon May 14 17:02:11 UTC 2018 - psimons@suse.com
- Update unicode-transforms to version 0.3.4.
* GHC 8.4.1 support
* GHC 8.2.1 support
-------------------------------------------------------------------
Thu Jul 27 14:08:09 UTC 2017 - psimons@suse.com
- Update to version 0.3.2.
-------------------------------------------------------------------
Sun Feb 12 14:15:51 UTC 2017 - psimons@suse.com
- Update to version 0.2.1 with cabal2obs.
-------------------------------------------------------------------
Thu Sep 15 07:01:17 UTC 2016 - psimons@suse.com
- Update to version 0.1.0.1 revision 0 with cabal2obs.

112
ghc-unicode-transforms.spec Normal file
View File

@@ -0,0 +1,112 @@
#
# spec file for package ghc-unicode-transforms
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global pkg_name unicode-transforms
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 0.4.0.1
Release: 0
Summary: Unicode normalization
License: BSD-3-Clause
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/6.cabal#/%{pkg_name}.cabal
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-base-devel
BuildRequires: ghc-base-prof
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-text-devel
BuildRequires: ghc-text-prof
BuildRequires: ghc-unicode-data-devel
BuildRequires: ghc-unicode-data-prof
ExcludeArch: %{ix86}
%if %{with tests}
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-QuickCheck-prof
BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-deepseq-prof
BuildRequires: ghc-hspec-devel
BuildRequires: ghc-hspec-prof
BuildRequires: ghc-split-devel
BuildRequires: ghc-split-prof
%endif
%description
Fast Unicode 14.0.0 normalization in Haskell (NFC, NFKC, NFD, NFKD).
%package devel
Summary: Haskell %{pkg_name} library development files
Requires: %{name} = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
%description devel
This package provides the Haskell %{pkg_name} library development
files.
%package -n ghc-%{pkg_name}-doc
Summary: Haskell %{pkg_name} library documentation
Requires: ghc-filesystem
BuildArch: noarch
%description -n ghc-%{pkg_name}-doc
This package provides the Haskell %{pkg_name} library documentation.
%package -n ghc-%{pkg_name}-prof
Summary: Haskell %{pkg_name} profiling library
Requires: ghc-%{pkg_name}-devel = %{version}-%{release}
Supplements: (ghc-%{pkg_name}-devel and ghc-prof)
%description -n ghc-%{pkg_name}-prof
This package provides the Haskell %{pkg_name} profiling library.
%prep
%autosetup -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build
%install
%ghc_lib_install
%check
%cabal_test
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%files -f %{name}.files
%license LICENSE
%files devel -f %{name}-devel.files
%doc Changelog.md README.md
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
%license LICENSE
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
%changelog

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3278e1e1d648da4bcd7368658ae091a89080e88a2f44db9df5136711e99649fc
size 648836

221
unicode-transforms.cabal Normal file
View File

@@ -0,0 +1,221 @@
cabal-version: 2.2
name: unicode-transforms
version: 0.4.0.1
x-revision: 6
synopsis: Unicode normalization
description: Fast Unicode 14.0.0 normalization in Haskell (NFC, NFKC, NFD, NFKD).
category: Data,Text,Unicode
stability: Experimental
homepage: http://github.com/composewell/unicode-transforms
bug-reports: https://github.com/composewell/unicode-transforms/issues
author: Harendra Kumar
maintainer: harendra.kumar@gmail.com
copyright: 2016-2017 Harendra Kumar,
20142015 Antonio Nikishaev
license: BSD-3-Clause
license-file: LICENSE
tested-with: GHC==8.0.2
, GHC==8.2.2
, GHC==8.4.4
, GHC==8.6.5
, GHC==8.8.4
, GHC==8.10.7
, GHC==9.0.2
, GHC==9.2.8
, GHC==9.4.7
, GHC==9.6.3
, GHC==9.8.1
build-type: Simple
extra-source-files:
Changelog.md
MAINTAINING.md
NOTES.md
README.md
download-ucd-files.sh
benchmark/README.md
benchmark/NormalizeFile.hs
benchmark/data/AllChars.txt
benchmark/data/Deutsch.txt
benchmark/data/Devanagari.txt
benchmark/data/English.txt
benchmark/data/Japanese.txt
benchmark/data/Korean.txt
benchmark/data/Vietnamese.txt
test/data/NormalizationTest.txt
test/data/extra/NormalizationTest.txt
source-repository head
type: git
location: https://github.com/composewell/unicode-transforms
flag dev
description: Developer build
manual: True
default: False
flag bench-show
description: Use bench-show to compare benchmarks
manual: True
default: False
flag has-icu
description: Use text-icu for benchmark and test comparisons
manual: True
default: False
flag has-llvm
description: Use llvm backend (faster) for compilation
manual: True
default: False
flag use-gauge
description: Use gauge instead of tasty-bench for benchmarking
manual: True
default: False
library
exposed-modules:
Data.Unicode.Types
Data.Text.Normalize
-- Deprecated
Data.ByteString.UTF8.Normalize
other-modules:
Data.Unicode.Internal.NormalizeStream
hs-source-dirs: .
ghc-options: -Wall -fwarn-identities -fwarn-incomplete-record-updates -fwarn-incomplete-uni-patterns -fwarn-tabs
build-depends:
base >= 4.8 && < 4.21
, unicode-data >= 0.2 && < 0.7
, bytestring >= 0.9 && < 0.13
, ghc-prim >= 0.2 && < 0.12
-- We depend on a lot of internal modules in text. We keep the upper bound
-- inclusive of the latest stable version.
, text >=1.1.1 && <=1.2.5.0 || >=2.0 && <2.2
if flag(dev)
ghc-options: -O0
else
ghc-options: -O2 -funbox-strict-fields -fspec-constr-count=10
if flag(has-llvm)
ghc-options: -fllvm
default-language: Haskell2010
test-suite extras
type: exitcode-stdio-1.0
main-is: Extra.hs
other-modules:
QuickCheckUtils
hs-source-dirs:
test
ghc-options: -Wall -fwarn-identities -fwarn-incomplete-record-updates -fwarn-incomplete-uni-patterns -fwarn-tabs
build-depends:
QuickCheck >=2.1 && <2.16
, base
, deepseq >=1.1 && <1.6
, text
, unicode-transforms
if flag(dev)
ghc-options: -O0
else
ghc-options: -O2 -funbox-strict-fields
if flag(has-llvm)
ghc-options: -fllvm
default-language: Haskell2010
test-suite quickcheck
type: exitcode-stdio-1.0
main-is: Properties.hs
other-modules:
QuickCheckUtils
hs-source-dirs:
test
ghc-options: -Wall -fwarn-identities -fwarn-incomplete-record-updates -fwarn-incomplete-uni-patterns -fwarn-tabs
build-depends:
QuickCheck
, unicode-data
, base
, deepseq
, hspec >= 2.0 && < 3
, text
, unicode-transforms
if flag(dev)
ghc-options: -O0
else
ghc-options: -O2 -funbox-strict-fields
if flag(has-llvm)
ghc-options: -fllvm
if flag(has-icu)
cpp-options: -DHAS_ICU
build-depends:
text-icu >=0.6.2.1 && <0.9
default-language: Haskell2010
test-suite ucd
type: exitcode-stdio-1.0
main-is: NormalizationTest.hs
hs-source-dirs:
test
ghc-options: -Wall -fwarn-identities -fwarn-incomplete-record-updates -fwarn-incomplete-uni-patterns -fwarn-tabs
build-depends:
base
, bytestring
, split >=0.2 && <0.3
, text
, unicode-transforms
if flag(dev)
ghc-options: -O0
else
ghc-options: -O2 -funbox-strict-fields
if flag(has-llvm)
ghc-options: -fllvm
default-language: Haskell2010
benchmark bench
type: exitcode-stdio-1.0
main-is: Benchmark.hs
hs-source-dirs:
benchmark
ghc-options: -Wall -fwarn-identities -fwarn-incomplete-record-updates -fwarn-incomplete-uni-patterns -fwarn-tabs
build-depends:
base
, deepseq
, filepath >=1.0 && <2
, path >=0.0.0 && <0.10
, path-io >=0.1.0 && <1.9
, text
, unicode-transforms
if flag(use-gauge)
build-depends: gauge >=0.2.0 && <0.3
else
build-depends: tasty-bench>= 0.2.5 && <0.4
mixins: tasty-bench (Test.Tasty.Bench as Gauge.Main)
if flag(dev)
ghc-options: -O0
else
ghc-options: -O2 -funbox-strict-fields
if flag(has-llvm)
ghc-options: -fllvm
if flag(has-icu)
cpp-options: -DBENCH_ICU
build-depends:
text-icu
if impl(ghc < 7.10)
build-depends:
path (<0.5.12 || >0.5.12)
default-language: Haskell2010
executable chart
default-language: Haskell2010
hs-source-dirs: benchmark
main-is: Chart.hs
if flag(bench-show)
buildable: True
build-Depends:
base
, bench-show >= 0.3 && < 0.4
, split
, transformers >= 0.4 && < 0.7
else
buildable: False