From 0c38ef995e44cb4755cf50ec4a3bb7d53dedfb2b0d3c8eaa3f6bc06c1cefb892 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 28 Jan 2025 10:11:51 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-unicode-collation revision:3, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-unicode-collation?expand=0&rev=17 --- .gitattributes | 23 +++++ .gitignore | 1 + ghc-unicode-collation.changes | 73 +++++++++++++++ ghc-unicode-collation.spec | 123 +++++++++++++++++++++++++ unicode-collation-0.1.3.6.tar.gz | 3 + unicode-collation.cabal | 153 +++++++++++++++++++++++++++++++ 6 files changed, 376 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ghc-unicode-collation.changes create mode 100644 ghc-unicode-collation.spec create mode 100644 unicode-collation-0.1.3.6.tar.gz create mode 100644 unicode-collation.cabal diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ghc-unicode-collation.changes b/ghc-unicode-collation.changes new file mode 100644 index 0000000..84d4e83 --- /dev/null +++ b/ghc-unicode-collation.changes @@ -0,0 +1,73 @@ +------------------------------------------------------------------- +Thu Jan 23 06:07:35 UTC 2025 - Peter Simons + +- Update unicode-collation to version 0.1.3.6 revision 2. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Tue Jun 18 01:33:39 UTC 2024 - Peter Simons + +- Update unicode-collation to version 0.1.3.6 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Wed Dec 20 19:13:59 UTC 2023 - Peter Simons + +- Update unicode-collation to version 0.1.3.6. + Upstream has edited the change log file since the last release in + a non-trivial way, i.e. they did more than just add a new entry + at the top. You can review the file at: + http://hackage.haskell.org/package/unicode-collation-0.1.3.6/src/CHANGELOG.md + +------------------------------------------------------------------- +Thu Aug 31 16:46:13 UTC 2023 - Peter Simons + +- Update unicode-collation to version 0.1.3.5. + ## 0.1.3.5 + + + Allow text 2.1. + +------------------------------------------------------------------- +Thu Mar 30 17:08:46 UTC 2023 - Peter Simons + +- Updated spec file to conform with ghc-rpm-macros-2.5.2. + +------------------------------------------------------------------- +Thu Mar 16 16:33:56 UTC 2023 - Peter Simons + +- Update unicode-collation to version 0.1.3.4. + ## 0.1.3.4 + + + Allow base 4.18. + +------------------------------------------------------------------- +Mon Oct 3 02:43:53 UTC 2022 - Peter Simons + +- Update unicode-collation to version 0.1.3.3. + ## 0.1.3.3 + + + Allow base 4.17. Closes #12. + +------------------------------------------------------------------- +Thu May 19 16:16:45 UTC 2022 - Peter Simons + +- Update unicode-collation to version 0.1.3.2. + ## 0.1.3.2 + + * Allow text 2.0. + +------------------------------------------------------------------- +Mon Nov 15 06:57:49 UTC 2021 - psimons@suse.com + +- Update unicode-collation to version 0.1.3.1. + ## 0.1.3.1 + + * Allow base 4.16 (so the library can compile with ghc 9.2). + + * Micro-optimization in normalize; update benchmarks. + +------------------------------------------------------------------- +Thu May 13 08:26:06 UTC 2021 - psimons@suse.com + +- Add unicode-collation at version 0.1.3. + diff --git a/ghc-unicode-collation.spec b/ghc-unicode-collation.spec new file mode 100644 index 0000000..5a92c67 --- /dev/null +++ b/ghc-unicode-collation.spec @@ -0,0 +1,123 @@ +# +# spec file for package ghc-unicode-collation +# +# Copyright (c) 2025 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-collation +%global pkgver %{pkg_name}-%{version} +%bcond_with tests +Name: ghc-%{pkg_name} +Version: 0.1.3.6 +Release: 0 +Summary: Haskell implementation of the Unicode Collation Algorithm +License: BSD-2-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/2.cabal#/%{pkg_name}.cabal +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-binary-devel +BuildRequires: ghc-binary-prof +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-containers-devel +BuildRequires: ghc-containers-prof +BuildRequires: ghc-parsec-devel +BuildRequires: ghc-parsec-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-template-haskell-devel +BuildRequires: ghc-template-haskell-prof +BuildRequires: ghc-text-devel +BuildRequires: ghc-text-prof +BuildRequires: ghc-th-lift-instances-devel +BuildRequires: ghc-th-lift-instances-prof +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-hunit-devel +BuildRequires: ghc-tasty-hunit-prof +BuildRequires: ghc-tasty-prof +BuildRequires: ghc-tasty-quickcheck-devel +BuildRequires: ghc-tasty-quickcheck-prof +BuildRequires: ghc-unicode-transforms-devel +BuildRequires: ghc-unicode-transforms-prof +%endif + +%description +This library provides a pure Haskell implementation of the Unicode Collation +Algorithm described at . It is not as +fully-featured or as performant as 'text-icu', but it avoids a dependency on a +large C library. Locale-specific tailorings are also provided. + +%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 diff --git a/unicode-collation-0.1.3.6.tar.gz b/unicode-collation-0.1.3.6.tar.gz new file mode 100644 index 0000000..26e1a19 --- /dev/null +++ b/unicode-collation-0.1.3.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d64163d64cdf8c872d7ec02b49bc0d0192c70875b8c002765c5142cc880d3a30 +size 2056131 diff --git a/unicode-collation.cabal b/unicode-collation.cabal new file mode 100644 index 0000000..19e080d --- /dev/null +++ b/unicode-collation.cabal @@ -0,0 +1,153 @@ +cabal-version: 2.2 +name: unicode-collation +version: 0.1.3.6 +x-revision: 2 +synopsis: Haskell implementation of the Unicode Collation Algorithm +description: This library provides a pure Haskell implementation of + the Unicode Collation Algorithm described at + . It is not + as fully-featured or as performant as @text-icu@, but + it avoids a dependency on a large C library. + Locale-specific tailorings are also provided. + +homepage: https://github.com/jgm/unicode-collation +bug-reports: https://github.com/jgm/unicode-collation/issues +license: BSD-2-Clause +license-file: LICENSE +author: John MacFarlane +maintainer: John MacFarlane +copyright: 2021 John MacFarlane +category: Text +build-type: Simple +extra-doc-files: README.md + CHANGELOG.md +extra-source-files: stack.yaml + data/allkeys.txt + data/UnicodeData.txt + data/tailorings/*.txt + data/cjk/*.txt + test/uca-collation-test/*.txt +tested-with: GHC == 8.4.4 + GHC == 8.6.5 + GHC == 8.8.3 + GHC == 8.10.7 + GHC == 9.0.1 + GHC == 9.2.2 + GHC == 9.4.2 + GHC == 9.6.3 + GHC == 9.8.1 + +source-repository head + type: git + location: https://github.com/jgm/unicode-collation.git + +flag doctests + Description: Run doctests as part of test suite. + Use with: @--write-ghc-environment-files=always@. + Default: False + +flag executable + Description: Build the unicode-collate executable. + Default: False + +common common-options + build-depends: base >= 4.11 && < 4.22 + + ghc-options: -Wall + -Wcompat + -Widentities + -Wincomplete-uni-patterns + -Wincomplete-record-updates + +RTS -A8m -RTS + if impl(ghc >= 8.0) + ghc-options: -Wredundant-constraints + if impl(ghc >= 8.2) + ghc-options: -fhide-source-paths + if impl(ghc >= 8.4) + ghc-options: -Wpartial-fields + + default-language: Haskell2010 + other-extensions: CPP, TemplateHaskell + +library + import: common-options + hs-source-dirs: src + exposed-modules: Text.Collate + Text.Collate.Lang + Text.Collate.Normalize + other-modules: Text.Collate.Trie + Text.Collate.Collation + Text.Collate.Collator + Text.Collate.CanonicalCombiningClass + Text.Collate.TH + Text.Collate.Tailorings + Text.Collate.UnicodeData + build-depends: bytestring + , template-haskell + , th-lift-instances + , containers + , binary + , text >= 1.2 && < 2.2 + , parsec + + other-extensions: TemplateHaskell + + +executable unicode-collate + import: common-options + hs-source-dirs: app + main-is: Main.hs + build-depends: unicode-collation + , containers + , text + ghc-options: -threaded + -rtsopts + -with-rtsopts=-N + if flag(executable) + buildable: True + else + buildable: False + +test-suite unit + import: common-options + type: exitcode-stdio-1.0 + hs-source-dirs: test + main-is: unit.hs + build-depends: unicode-collation + , bytestring + , tasty + , tasty-quickcheck + , tasty-hunit + , unicode-transforms >= 0.3.7.1 + , text + ghc-options: -threaded + -rtsopts + -with-rtsopts=-N + +test-suite doctests + import: common-options + type: exitcode-stdio-1.0 + hs-source-dirs: test + main-is: doctests.hs + build-depends: doctest >= 0.8 + , th-lift-instances + ghc-options: -threaded + -rtsopts + -with-rtsopts=-N + if flag(doctests) + buildable: True + else + buildable: False + +benchmark benchmark + import: common-options + type: exitcode-stdio-1.0 + hs-source-dirs: benchmark + main-is: Main.hs + build-depends: tasty-bench + , unicode-collation + , text + , text-icu >= 0.8 + , quickcheck-instances + , QuickCheck + ghc-options: -rtsopts -with-rtsopts=-A8m