1
0

osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-crypto-api revision:2, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-crypto-api?expand=0&rev=1
This commit is contained in:
Peter Simons 2020-06-16 10:56:31 +00:00 committed by Git OBS Bridge
commit 6ffc2b777a
6 changed files with 171 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@ -0,0 +1 @@
.osc

3
crypto-api-0.13.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:298a9ea7ce97c8ccf4bfe46d4864092c3a007a56bede73560070db3bf1ac7aa5
size 48346

64
crypto-api.cabal Normal file
View File

@ -0,0 +1,64 @@
name: crypto-api
version: 0.13.3
x-revision: 1
license: BSD3
license-file: LICENSE
copyright: Thomas DuBuisson <thomas.dubuisson@gmail.com>
author: Thomas DuBuisson <thomas.dubuisson@gmail.com>, Francisco Blas Izquierdo Riera (klondike)
maintainer: Thomas DuBuisson <thomas.dubuisson@gmail.com>
description: A generic interface for cryptographic operations (hashes, ciphers, randomness).
Maintainers of hash and cipher implementations are
encouraged to add instances for the classes defined
in Crypto.Classes. Crypto users are similarly
encouraged to use the interfaces defined in the Classes
module.
Any concepts or functions of general use to more than
one cryptographic algorithm (ex: padding) is within
scope of this package.
synopsis: A generic interface for cryptographic operations
category: Data, Cryptography
homepage: https://github.com/TomMD/crypto-api
bug-reports: https://github.com/TomMD/crypto-api
stability: stable
build-type: Simple
cabal-version: >= 1.6
tested-with: GHC == 7.6.2
extra-source-files:
cbits/misc.c
cbits/misc.h
Flag ALL_CPOLYS
Description: Build all the CMAC polynomes up to 10000 bits instead of just the usual ones
Default: False
Manual: True
Library
-- see https://github.com/TomMD/crypto-api/issues/29
build-depends: base >= 4.9
Build-Depends: base == 4.*,
bytestring >= 0.9,
cereal >= 0.2,
tagged >= 0.1,
entropy, transformers
ghc-options:
hs-source-dirs:
exposed-modules: Crypto.Classes, Crypto.Types, Crypto.HMAC,
Crypto.Random, Crypto.Padding, Crypto.Modes,
Crypto.Util, Crypto.Classes.Exceptions
other-modules: Crypto.CPoly
extensions: ForeignFunctionInterface, MultiParamTypeClasses,
BangPatterns, FunctionalDependencies, FlexibleInstances,
TypeSynonymInstances
c-sources: cbits/misc.c
include-dirs: cbits
if flag(ALL_CPOLYS)
Build-Depends: array
cpp-options: -DALL_CPOLYS
source-repository head
type: git
location: https://github.com/TomMD/crypto-api

5
ghc-crypto-api.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Tue Jun 9 09:26:13 UTC 2020 - psimons@suse.com
- Add crypto-api at version 0.13.3.

75
ghc-crypto-api.spec Normal file
View File

@ -0,0 +1,75 @@
#
# spec file for package ghc-crypto-api
#
# 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 crypto-api
Name: ghc-%{pkg_name}
Version: 0.13.3
Release: 0
Summary: A generic interface for cryptographic operations
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-bytestring-devel
BuildRequires: ghc-cereal-devel
BuildRequires: ghc-entropy-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-tagged-devel
BuildRequires: ghc-transformers-devel
%description
A generic interface for cryptographic operations (hashes, ciphers, randomness).
Maintainers of hash and cipher implementations are encouraged to add instances
for the classes defined in Crypto.Classes. Crypto users are similarly
encouraged to use the interfaces defined in the Classes module. Any concepts or
functions of general use to more than one cryptographic algorithm (ex: padding)
is within scope of this 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.
%prep
%setup -q -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build
%install
%ghc_lib_install
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%files -f %{name}.files
%license LICENSE
%files devel -f %{name}-devel.files
%changelog