diff options
author | CoprDistGit <infra@openeuler.org> | 2023-10-26 22:50:12 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-10-26 22:50:12 +0000 |
commit | af4373441802c83680dc04de71daea4a8b0dd77c (patch) | |
tree | 9d6c1b70ccc9f1e717932e31e679bba4863eca8c | |
parent | 5b5a2f7a55e755a215f8c9dd42cbba0527f4dcc7 (diff) |
automatic import of ghc-base64-bytestringopeneuler23.09
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | base64-bytestring.cabal | 92 | ||||
-rw-r--r-- | ghc-base64-bytestring.spec | 99 | ||||
-rw-r--r-- | sources | 1 |
4 files changed, 193 insertions, 0 deletions
@@ -0,0 +1 @@ +/base64-bytestring-1.2.1.0.tar.gz diff --git a/base64-bytestring.cabal b/base64-bytestring.cabal new file mode 100755 index 0000000..56f04b0 --- /dev/null +++ b/base64-bytestring.cabal @@ -0,0 +1,92 @@ +cabal-version: 1.12
+name: base64-bytestring
+version: 1.2.1.0
+x-revision: 1
+synopsis: Fast base64 encoding and decoding for ByteStrings
+description:
+ This package provides support for encoding and decoding binary data according to @base64@ (see also <https://tools.ietf.org/html/rfc4648 RFC 4648>) for strict and lazy ByteStrings
+ .
+ For a fuller-featured and better-performing Base64 library, see the <https://hackage.haskell.org/package/base64 base64> package.
+
+homepage: https://github.com/haskell/base64-bytestring
+bug-reports: https://github.com/haskell/base64-bytestring/issues
+license: BSD3
+license-file: LICENSE
+author: Bryan O'Sullivan <bos@serpentine.com>
+maintainer:
+ Herbert Valerio Riedel <hvr@gnu.org>,
+ Mikhail Glushenkov <mikhail.glushenkov@gmail.com>,
+ Emily Pillmore <emilypi@cohomolo.gy>
+
+copyright: 2010-2020 Bryan O'Sullivan et al.
+category: Data
+build-type: Simple
+tested-with:
+ GHC ==7.0.4
+ || ==7.2.2
+ || ==7.4.2
+ || ==7.6.3
+ || ==7.8.4
+ || ==7.10.3
+ || ==8.0.2
+ || ==8.2.2
+ || ==8.4.4
+ || ==8.6.5
+ || ==8.8.4
+ || ==8.10.7
+
+extra-source-files:
+ README.md
+ CHANGELOG.md
+ utils/Transcode.hs
+ utils/transcode.py
+
+library
+ exposed-modules:
+ Data.ByteString.Base64
+ Data.ByteString.Base64.Lazy
+ Data.ByteString.Base64.URL
+ Data.ByteString.Base64.URL.Lazy
+
+ other-modules: Data.ByteString.Base64.Internal
+ build-depends:
+ base >=4 && <5
+ , bytestring >=0.9 && <0.13
+
+ ghc-options: -Wall -funbox-strict-fields
+ default-language: Haskell2010
+
+test-suite test
+ type: exitcode-stdio-1.0
+ hs-source-dirs: tests
+ main-is: Tests.hs
+ ghc-options: -Wall -threaded -rtsopts
+ build-depends:
+ base
+ , base64-bytestring
+ , bytestring
+ , HUnit
+ , QuickCheck
+ , test-framework
+ , test-framework-hunit
+ , test-framework-quickcheck2
+
+ default-language: Haskell2010
+
+benchmark benchmarks
+ type: exitcode-stdio-1.0
+ hs-source-dirs: benchmarks
+ main-is: BM.hs
+ ghc-options: -Wall -threaded -rtsopts
+ build-depends:
+ base
+ , base64-bytestring
+ , bytestring
+ , criterion
+ , deepseq >=1.1
+
+ default-language: Haskell2010
+
+source-repository head
+ type: git
+ location: git://github.com/haskell/base64-bytestring
diff --git a/ghc-base64-bytestring.spec b/ghc-base64-bytestring.spec new file mode 100644 index 0000000..f07770f --- /dev/null +++ b/ghc-base64-bytestring.spec @@ -0,0 +1,99 @@ +%global pkg_name base64-bytestring +%global pkgver %{pkg_name}-%{version} +%bcond_with tests + +Name: ghc-%{pkg_name} +Version: 1.2.1.0 +Release: 1 +Summary: Fast base64 encoding and decoding for ByteStrings +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/1.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 +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-HUnit-prof +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-QuickCheck-prof +BuildRequires: ghc-test-framework-devel +BuildRequires: ghc-test-framework-hunit-devel +BuildRequires: ghc-test-framework-hunit-prof +BuildRequires: ghc-test-framework-prof +BuildRequires: ghc-test-framework-quickcheck2-devel +BuildRequires: ghc-test-framework-quickcheck2-prof +%endif + +%description +This package provides support for encoding and decoding binary data according +to 'base64' (see also <https://tools.ietf.org/html/rfc4648 RFC 4648>) for +strict and lazy ByteStrings + +For a fuller-featured and better-performing Base64 library, see the +<https://hackage.haskell.org/package/base64 base64> package. + +%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 +* Thu Sep 28 2023 Lin Runze <lrzlin@163.com> 1.2.1.0-1 +- Initial packaging (Version 1.2.1.0) @@ -0,0 +1 @@ +e6e646d1a452f6626de0dd09c8bdbd6b base64-bytestring-1.2.1.0.tar.gz |