diff options
author | CoprDistGit <infra@openeuler.org> | 2023-10-30 07:00:20 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-10-30 07:00:20 +0000 |
commit | 3e5d6a62f64b2c7f607b3c6dadd585023c4e9b70 (patch) | |
tree | 9bee2b0ca900ebb36d7c403be9fa4dec89cd915e | |
parent | 763d59f8e888312e9b7848052731a6735cdcdf97 (diff) |
automatic import of ghc-base64openeuler23.09
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | base64.cabal | 101 | ||||
-rw-r--r-- | ghc-base64.spec | 102 | ||||
-rw-r--r-- | sources | 1 |
4 files changed, 205 insertions, 0 deletions
@@ -0,0 +1 @@ +/base64-0.4.2.4.tar.gz diff --git a/base64.cabal b/base64.cabal new file mode 100755 index 0000000..e8c2ab7 --- /dev/null +++ b/base64.cabal @@ -0,0 +1,101 @@ +cabal-version: 2.0
+name: base64
+version: 0.4.2.4
+x-revision: 3
+synopsis: A modern RFC 4648-compliant Base64 library
+description:
+ RFC 4648-compliant Base64 with an eye towards performance and modernity (additional support for RFC 7049 standards)
+
+homepage: https://github.com/emilypi/base64
+bug-reports: https://github.com/emilypi/base64/issues
+license: BSD3
+license-file: LICENSE
+author: Emily Pillmore
+maintainer: emilypi@cohomolo.gy
+copyright: (c) 2019-2022 Emily Pillmore
+category: Data
+build-type: Simple
+extra-doc-files:
+ CHANGELOG.md
+ README.md
+
+tested-with: GHC ==8.10.7 || ==9.0.2 || ==9.2.4 || ==9.4.1 || ==9.6.1
+
+source-repository head
+ type: git
+ location: https://github.com/emilypi/base64.git
+
+library
+ exposed-modules:
+ Data.ByteString.Base64
+ Data.ByteString.Base64.URL
+ Data.ByteString.Lazy.Base64
+ Data.ByteString.Lazy.Base64.URL
+ Data.ByteString.Short.Base64
+ Data.ByteString.Short.Base64.URL
+ Data.Text.Encoding.Base64
+ Data.Text.Encoding.Base64.Error
+ Data.Text.Encoding.Base64.URL
+ Data.Text.Lazy.Encoding.Base64
+ Data.Text.Lazy.Encoding.Base64.URL
+ Data.Text.Short.Encoding.Base64
+ Data.Text.Short.Encoding.Base64.URL
+
+ other-modules:
+ Data.ByteString.Base64.Internal
+ Data.ByteString.Base64.Internal.Head
+ Data.ByteString.Base64.Internal.Tables
+ Data.ByteString.Base64.Internal.Tail
+ Data.ByteString.Base64.Internal.Utils
+ Data.ByteString.Base64.Internal.W16.Loop
+ Data.ByteString.Base64.Internal.W32.Loop
+ Data.ByteString.Base64.Internal.W64.Loop
+
+ build-depends:
+ base >=4.14 && <4.19
+ , bytestring >=0.10 && <0.12
+ , deepseq >=1.4.3.0 && <1.5
+ , text >=1.2 && <1.3 || >=2.0 && <2.1
+ , text-short ^>=0.1
+
+ hs-source-dirs: src
+ default-language: Haskell2010
+ ghc-options: -Wall
+
+test-suite tasty
+ default-language: Haskell2010
+ type: exitcode-stdio-1.0
+ hs-source-dirs: test
+ other-modules: Internal
+ main-is: Main.hs
+ build-depends:
+ base >=4.14 && <4.19
+ , base64
+ , base64-bytestring
+ , bytestring
+ , QuickCheck
+ , random-bytestring
+ , tasty
+ , tasty-hunit
+ , tasty-quickcheck
+ , text
+ , text-short
+
+ ghc-options: -Wall -threaded -with-rtsopts=-N
+
+benchmark bench
+ default-language: Haskell2010
+ type: exitcode-stdio-1.0
+ hs-source-dirs: benchmarks
+ main-is: Base64Bench.hs
+ build-depends:
+ base >=4.14 && <4.19
+ , base64
+ , base64-bytestring
+ , bytestring
+ , criterion
+ , deepseq
+ , random-bytestring
+ , text
+
+ ghc-options: -Wall -rtsopts
diff --git a/ghc-base64.spec b/ghc-base64.spec new file mode 100644 index 0000000..28b0232 --- /dev/null +++ b/ghc-base64.spec @@ -0,0 +1,102 @@ +%global pkg_name base64 +%global pkgver %{pkg_name}-%{version} +%bcond_with tests + +Name: ghc-%{pkg_name} +Version: 0.4.2.4 +Release: 1 +Summary: A modern RFC 4648-compliant Base64 library +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/3.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-deepseq-devel +BuildRequires: ghc-deepseq-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-text-devel +BuildRequires: ghc-text-prof +BuildRequires: ghc-text-short-devel +BuildRequires: ghc-text-short-prof +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-QuickCheck-prof +BuildRequires: ghc-base64-bytestring-devel +BuildRequires: ghc-base64-bytestring-prof +BuildRequires: ghc-random-bytestring-devel +BuildRequires: ghc-random-bytestring-prof +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 +%endif + +%description +RFC 4648-compliant Base64 with an eye towards performance and modernity +(additional support for RFC 7049 standards). + +%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}-help +Summary: Haskell %{pkg_name} library documentation +BuildArch: noarch + +%description -n ghc-%{pkg_name}-help +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}-help -f ghc-%{pkg_name}-help.files +%license LICENSE + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + +%changelog +* Tue Aug 22 2023 Lin Runze <lrzlin@163.com> 0.4.2.4-1 +- Initial packaging (Version 0.4.2.4) @@ -0,0 +1 @@ +0d1c43574743d8a2c502b09cb8671550 base64-0.4.2.4.tar.gz |