From 0311090a37cc707e38c30fc91999651be7f68775f2e642ad05c8d02f40b5065b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 10 Dec 2024 11:25:56 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-modern-uri revision:1, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-modern-uri?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + ghc-modern-uri.changes | 5 ++ ghc-modern-uri.spec | 127 ++++++++++++++++++++++++++++++++++++ modern-uri-0.3.6.1.tar.gz | 3 + modern-uri.cabal | 133 ++++++++++++++++++++++++++++++++++++++ 6 files changed, 292 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ghc-modern-uri.changes create mode 100644 ghc-modern-uri.spec create mode 100644 modern-uri-0.3.6.1.tar.gz create mode 100644 modern-uri.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-modern-uri.changes b/ghc-modern-uri.changes new file mode 100644 index 0000000..2df7a5f --- /dev/null +++ b/ghc-modern-uri.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Wed Jun 12 19:56:01 UTC 2024 - Peter Simons + +- Add modern-uri at version 0.3.6.1 revision 2. + diff --git a/ghc-modern-uri.spec b/ghc-modern-uri.spec new file mode 100644 index 0000000..26013dd --- /dev/null +++ b/ghc-modern-uri.spec @@ -0,0 +1,127 @@ +# +# spec file for package ghc-modern-uri +# +# 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 modern-uri +%global pkgver %{pkg_name}-%{version} +%bcond_with tests +Name: ghc-%{pkg_name} +Version: 0.3.6.1 +Release: 0 +Summary: Modern library for working with URIs +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/2.cabal#/%{pkg_name}.cabal +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-QuickCheck-prof +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-containers-devel +BuildRequires: ghc-containers-prof +BuildRequires: ghc-deepseq-devel +BuildRequires: ghc-deepseq-prof +BuildRequires: ghc-exceptions-devel +BuildRequires: ghc-exceptions-prof +BuildRequires: ghc-hashable-devel +BuildRequires: ghc-hashable-prof +BuildRequires: ghc-megaparsec-devel +BuildRequires: ghc-megaparsec-prof +BuildRequires: ghc-mtl-devel +BuildRequires: ghc-mtl-prof +BuildRequires: ghc-profunctors-devel +BuildRequires: ghc-profunctors-prof +BuildRequires: ghc-reflection-devel +BuildRequires: ghc-reflection-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-tagged-devel +BuildRequires: ghc-tagged-prof +BuildRequires: ghc-template-haskell-devel +BuildRequires: ghc-template-haskell-prof +BuildRequires: ghc-text-devel +BuildRequires: ghc-text-prof +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-hspec-devel +BuildRequires: ghc-hspec-megaparsec-devel +BuildRequires: ghc-hspec-megaparsec-prof +BuildRequires: ghc-hspec-prof +%endif + +%description +Modern library for working with URIs. + +%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.md + +%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.md + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + +%changelog diff --git a/modern-uri-0.3.6.1.tar.gz b/modern-uri-0.3.6.1.tar.gz new file mode 100644 index 0000000..f06feb0 --- /dev/null +++ b/modern-uri-0.3.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0246f9cfced1227abe3a6403eeacc6b5f79f7e3319759a4dd1fd341c12454fe9 +size 26185 diff --git a/modern-uri.cabal b/modern-uri.cabal new file mode 100644 index 0000000..3973d13 --- /dev/null +++ b/modern-uri.cabal @@ -0,0 +1,133 @@ +cabal-version: 2.4 +name: modern-uri +version: 0.3.6.1 +x-revision: 2 +license: BSD-3-Clause +license-file: LICENSE.md +maintainer: Mark Karpov +author: Mark Karpov +tested-with: ghc ==9.2.8 ghc ==9.4.5 ghc ==9.6.2 +homepage: https://github.com/mrkkrp/modern-uri +bug-reports: https://github.com/mrkkrp/modern-uri/issues +synopsis: Modern library for working with URIs +description: Modern library for working with URIs. +category: Text +build-type: Simple +extra-doc-files: + CHANGELOG.md + README.md + +source-repository head + type: git + location: https://github.com/mrkkrp/modern-uri.git + +flag dev + description: Turn on development settings. + default: False + manual: True + +library + exposed-modules: + Text.URI + Text.URI.Lens + Text.URI.QQ + + other-modules: + Text.URI.Parser.ByteString + Text.URI.Parser.Text + Text.URI.Parser.Text.Utils + Text.URI.Render + Text.URI.Types + + default-language: Haskell2010 + build-depends: + QuickCheck >=2.4 && <3, + base >=4.15 && <5, + bytestring >=0.2 && <0.13, + containers >=0.5 && <0.8, + deepseq >=1.3 && <1.6, + exceptions >=0.6 && <0.11, + hashable >=1.3 && <2, + megaparsec >=8 && <10, + mtl >=2 && <3, + profunctors >=5.2.1 && <6, + reflection >=2 && <3, + tagged >=0.8 && <0.9, + template-haskell >=2.10 && <2.23, + text >=0.2 && <2.2 + + if flag(dev) + ghc-options: -Wall -Werror -Wpartial-fields -Wunused-packages + + else + ghc-options: -O2 -Wall + +test-suite tests + type: exitcode-stdio-1.0 + main-is: Spec.hs + build-tool-depends: hspec-discover:hspec-discover >=2.0 && <3.0 + hs-source-dirs: tests + other-modules: + Text.QQSpec + Text.URISpec + + default-language: GHC2021 + build-depends: + QuickCheck >=2.4 && <3, + base >=4.15 && <5, + bytestring >=0.2 && <0.13, + hspec >=2 && <3, + hspec-megaparsec >=2 && <3, + megaparsec >=8 && <10, + modern-uri, + text >=0.2 && <2.2 + + if flag(dev) + ghc-options: + -Wall -Werror -Wredundant-constraints -Wpartial-fields + -Wunused-packages + + else + ghc-options: -O2 -Wall + +benchmark bench-speed + type: exitcode-stdio-1.0 + main-is: Main.hs + hs-source-dirs: bench/speed + default-language: GHC2021 + build-depends: + base >=4.15 && <5.0, + bytestring >=0.2 && <0.13, + criterion >=0.6.2.1 && <1.7, + megaparsec >=8 && <10, + modern-uri, + text >=0.2 && <2.2 + + if flag(dev) + ghc-options: + -Wall -Werror -Wredundant-constraints -Wpartial-fields + -Wunused-packages + + else + ghc-options: -O2 -Wall + +benchmark bench-memory + type: exitcode-stdio-1.0 + main-is: Main.hs + hs-source-dirs: bench/memory + default-language: GHC2021 + build-depends: + base >=4.15 && <5, + bytestring >=0.2 && <0.13, + megaparsec >=8 && <10, + modern-uri, + text >=0.2 && <2.2, + weigh >=0.0.4 + + if flag(dev) + ghc-options: + -Wall -Werror -Wredundant-constraints -Wpartial-fields + -Wunused-packages + + else + ghc-options: -O2 -Wall