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
This commit is contained in:
commit
0311090a37
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
5
ghc-modern-uri.changes
Normal file
5
ghc-modern-uri.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 12 19:56:01 UTC 2024 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Add modern-uri at version 0.3.6.1 revision 2.
|
||||
|
127
ghc-modern-uri.spec
Normal file
127
ghc-modern-uri.spec
Normal file
@ -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
|
3
modern-uri-0.3.6.1.tar.gz
Normal file
3
modern-uri-0.3.6.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0246f9cfced1227abe3a6403eeacc6b5f79f7e3319759a4dd1fd341c12454fe9
|
||||
size 26185
|
133
modern-uri.cabal
Normal file
133
modern-uri.cabal
Normal file
@ -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 <markkarpov92@gmail.com>
|
||||
author: Mark Karpov <markkarpov92@gmail.com>
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user