commit 1d1c5b63d57fcdcba2c2a9c95962b341c8454a88919d67a0d7ed6a3dc3ed7072 Author: Mark Stopka Date: Tue Nov 3 12:51:48 2020 +0000 osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-base64-bytestring-type revision:1 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-base64-bytestring-type?expand=0&rev=1 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/base64-bytestring-type-1.0.1.tar.gz b/base64-bytestring-type-1.0.1.tar.gz new file mode 100644 index 0000000..6a366be --- /dev/null +++ b/base64-bytestring-type-1.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f607d07c4aab227b4536c495fa7c07b35ddc9c2c013d385c16c02f236526780e +size 5259 diff --git a/base64-bytestring-type.cabal b/base64-bytestring-type.cabal new file mode 100644 index 0000000..0da192f --- /dev/null +++ b/base64-bytestring-type.cabal @@ -0,0 +1,121 @@ +cabal-version: 1.12 +name: base64-bytestring-type +version: 1.0.1 +x-revision: 7 +synopsis: A newtype around ByteString, for base64 encoding +description: + A newtype around ByteString, for base64 encoding. + Strict and lazy, normal and url alphabet variants. + +category: Data +homepage: https://github.com/phadej/base64-bytestring-type#readme +bug-reports: https://github.com/phadej/base64-bytestring-type/issues +author: Oleg Grenrus +maintainer: Oleg Grenrus +license: BSD3 +license-file: LICENSE +build-type: Simple +tested-with: + GHC ==7.8.4 + || ==7.10.3 + || ==8.0.2 + || ==8.2.2 + || ==8.4.4 + || ==8.6.5 + || ==8.8.4 + || ==8.10.2 + +extra-source-files: + README.md + CHANGELOG.md + +source-repository head + type: git + location: https://github.com/futurice/haskell-base64-bytestring-type + +flag cereal + description: Instances for @Serialize@ from @cereal@ package + manual: True + default: True + +flag serialise + description: Instances for @Serialise@ from @serialise@ package + manual: True + default: True + +flag http-api-data + description: + Instances for @To/FromHttpApiData@ from @http-api-data@ package + + manual: True + default: True + +library + hs-source-dirs: src + ghc-options: -Wall + + -- boot libraries + -- https://ghc.haskell.org/trac/ghc/wiki/Commentary/Libraries/VersionHistory + build-depends: + base >=4.7.0.0 && <4.15 + , binary >=0.7.1.0 && <0.10 + , bytestring >=0.10.4.0 && <0.11 + , deepseq >=1.3.0.2 && <1.5 + , text >=1.2.3.0 && <1.3 + + -- other dependencies: + build-depends: + aeson >=1.2.3.0 && <1.6 + , base-compat >=0.9.3 && <0.12 + , base64-bytestring >=1.0.0.1 && <1.3 + , hashable >=1.2.6.1 && <1.4 + , QuickCheck >=2.11.3 && <2.15 + + if !impl(ghc >=8.0) + build-depends: semigroups >=0.18.5 && <0.20 + + if flag(cereal) + build-depends: cereal >=0.5.5.0 && <0.6 + + if flag(serialise) + build-depends: serialise >=0.2.1.0 && <0.3 + + if flag(http-api-data) + build-depends: http-api-data ==0.4.* + + exposed-modules: + Data.ByteString.Base64.Lazy.Type + Data.ByteString.Base64.Type + Data.ByteString.Base64.URL.Lazy.Type + Data.ByteString.Base64.URL.Type + + default-language: Haskell2010 + +test-suite tests + default-language: Haskell2010 + type: exitcode-stdio-1.0 + main-is: Tests.hs + hs-source-dirs: test + ghc-options: -Wall + + -- dependencies with bounds inherited from library: + build-depends: + aeson + , base + , base64-bytestring-type + , binary + , bytestring + + if flag(cereal) + build-depends: cereal + + if flag(serialise) + build-depends: serialise + + if flag(http-api-data) + build-depends: http-api-data + + -- other dependencies + build-depends: + tasty >=1.2.1 && <1.4 + , tasty-quickcheck >=0.10 && <0.11 diff --git a/ghc-base64-bytestring-type.changes b/ghc-base64-bytestring-type.changes new file mode 100644 index 0000000..ab2873b --- /dev/null +++ b/ghc-base64-bytestring-type.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Nov 3 10:09:07 UTC 2020 - psimons@suse.com + +- Add base64-bytestring-type at version 1.0.1 revision 7. + diff --git a/ghc-base64-bytestring-type.spec b/ghc-base64-bytestring-type.spec new file mode 100644 index 0000000..8c608cd --- /dev/null +++ b/ghc-base64-bytestring-type.spec @@ -0,0 +1,88 @@ +# +# spec file for package ghc-base64-bytestring-type +# +# Copyright (c) 2020 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 base64-bytestring-type +%bcond_with tests +Name: ghc-%{pkg_name} +Version: 1.0.1 +Release: 0 +Summary: A newtype around ByteString, for base64 encoding +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/7.cabal#/%{pkg_name}.cabal +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-aeson-devel +BuildRequires: ghc-base-compat-devel +BuildRequires: ghc-base64-bytestring-devel +BuildRequires: ghc-binary-devel +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-cereal-devel +BuildRequires: ghc-deepseq-devel +BuildRequires: ghc-hashable-devel +BuildRequires: ghc-http-api-data-devel +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-serialise-devel +BuildRequires: ghc-text-devel +%if %{with tests} +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-quickcheck-devel +%endif + +%description +A newtype around ByteString, for base64 encoding. Strict and lazy, normal and +url alphabet variants. + +%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. + +%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 + +%changelog