commit ghc-cryptonite-conduit for openSUSE:Factory

2020-09-07 Thread root
Hello community,

here is the log from the commit of package ghc-cryptonite-conduit for 
openSUSE:Factory checked in at 2020-09-07 21:29:42

Comparing /work/SRC/openSUSE:Factory/ghc-cryptonite-conduit (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-cryptonite-conduit.new.3399 (New)


Package is "ghc-cryptonite-conduit"

Mon Sep  7 21:29:42 2020 rev:10 rq:832265 version:0.2.2

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-cryptonite-conduit/ghc-cryptonite-conduit.changes
2020-08-28 21:29:03.360544095 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-cryptonite-conduit.new.3399/ghc-cryptonite-conduit.changes
  2020-09-07 21:30:35.305249244 +0200
@@ -1,0 +2,6 @@
+Mon Aug 31 09:34:38 UTC 2020 - psim...@suse.com
+
+- Update cryptonite-conduit to version 0.2.2 revision 1.
+  Upstream has revised the Cabal build instructions on Hackage.
+
+---



Other differences:
--



commit ghc-cryptonite-conduit for openSUSE:Factory

2020-08-28 Thread root
Hello community,

here is the log from the commit of package ghc-cryptonite-conduit for 
openSUSE:Factory checked in at 2020-08-28 21:29:01

Comparing /work/SRC/openSUSE:Factory/ghc-cryptonite-conduit (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-cryptonite-conduit.new.3399 (New)


Package is "ghc-cryptonite-conduit"

Fri Aug 28 21:29:01 2020 rev:9 rq:829239 version:0.2.2

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-cryptonite-conduit/ghc-cryptonite-conduit.changes
2020-06-19 17:11:08.857724827 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-cryptonite-conduit.new.3399/ghc-cryptonite-conduit.changes
  2020-08-28 21:29:03.360544095 +0200
@@ -1,0 +2,5 @@
+Tue Aug 18 10:44:32 UTC 2020 - Peter Simons 
+
+- Replace %setup -q with the more modern %autosetup macro.
+
+---



Other differences:
--
++ ghc-cryptonite-conduit.spec ++
--- /var/tmp/diff_new_pack.jfAj3d/_old  2020-08-28 21:29:04.268544526 +0200
+++ /var/tmp/diff_new_pack.jfAj3d/_new  2020-08-28 21:29:04.272544528 +0200
@@ -62,7 +62,7 @@
 files.
 
 %prep
-%setup -q -n %{pkg_name}-%{version}
+%autosetup -n %{pkg_name}-%{version}
 cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build




commit ghc-cryptonite-conduit for openSUSE:Factory

2020-06-19 Thread root
Hello community,

here is the log from the commit of package ghc-cryptonite-conduit for 
openSUSE:Factory checked in at 2020-06-19 17:11:04

Comparing /work/SRC/openSUSE:Factory/ghc-cryptonite-conduit (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-cryptonite-conduit.new.3606 (New)


Package is "ghc-cryptonite-conduit"

Fri Jun 19 17:11:04 2020 rev:8 rq:815067 version:0.2.2

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-cryptonite-conduit/ghc-cryptonite-conduit.changes
2019-12-27 13:52:46.200633161 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-cryptonite-conduit.new.3606/ghc-cryptonite-conduit.changes
  2020-06-19 17:11:08.857724827 +0200
@@ -2 +2 @@
-Fri Nov  8 16:13:31 UTC 2019 - Peter Simons 
+Tue Jun  9 09:26:14 UTC 2020 - psim...@suse.com
@@ -4 +4 @@
-- Drop obsolete group attributes.
+- Add cryptonite-conduit at version 0.2.2.
@@ -6,37 +5,0 @@

-Sat Oct 20 11:31:22 UTC 2018 - Peter Simons 
-
-- Use https URL to refer to bugs.opensuse.org.
-

-Wed Jul 18 14:26:20 UTC 2018 - psim...@suse.com
-
-- Cosmetic: replace tabs with blanks, strip trailing white space,
-  and update copyright headers with spec-cleaner.
-

-Wed Jul 18 14:11:52 UTC 2018 - psim...@suse.com
-
-- Revise cabal build file to specify more accurate dependencies.
-

-Mon May 14 17:02:11 UTC 2018 - psim...@suse.com
-
-- Update cryptonite-conduit to version 0.2.2.
-  * Add the `Crypto.Cipher.ChaChaPoly1305.Conduit` and
-`Crypto.PubKey.ECIES.Conduit` modules
-

-Thu Aug  3 15:38:38 UTC 2017 - psim...@suse.com
-
-- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf.
-

-Sun Feb 12 14:11:16 UTC 2017 - psim...@suse.com
-
-- Update to version 0.2.0 with cabal2obs.
-

-Sun Jul 10 17:22:29 UTC 2016 - psim...@suse.com
-
-- Update to version 0.1 revision 0 with cabal2obs.



Other differences:
--
++ ghc-cryptonite-conduit.spec ++
--- /var/tmp/diff_new_pack.gDaYTH/_old  2020-06-19 17:11:09.773727671 +0200
+++ /var/tmp/diff_new_pack.gDaYTH/_new  2020-06-19 17:11:09.27683 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-cryptonite-conduit
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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




commit ghc-cryptonite-conduit for openSUSE:Factory

2019-12-27 Thread root
Hello community,

here is the log from the commit of package ghc-cryptonite-conduit for 
openSUSE:Factory checked in at 2019-12-27 13:52:44

Comparing /work/SRC/openSUSE:Factory/ghc-cryptonite-conduit (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-cryptonite-conduit.new.6675 (New)


Package is "ghc-cryptonite-conduit"

Fri Dec 27 13:52:44 2019 rev:7 rq:759374 version:0.2.2

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-cryptonite-conduit/ghc-cryptonite-conduit.changes
2018-10-25 08:24:07.195863162 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-cryptonite-conduit.new.6675/ghc-cryptonite-conduit.changes
  2019-12-27 13:52:46.200633161 +0100
@@ -1,0 +2,5 @@
+Fri Nov  8 16:13:31 UTC 2019 - Peter Simons 
+
+- Drop obsolete group attributes.
+
+---



Other differences:
--
++ ghc-cryptonite-conduit.spec ++
--- /var/tmp/diff_new_pack.AVrgqC/_old  2019-12-27 13:52:46.668633494 +0100
+++ /var/tmp/diff_new_pack.AVrgqC/_new  2019-12-27 13:52:46.680633502 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-cryptonite-conduit
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -23,7 +23,6 @@
 Release:0
 Summary:Cryptonite conduit
 License:BSD-3-Clause
-Group:  Development/Libraries/Haskell
 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
@@ -53,7 +52,6 @@
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
-Group:  Development/Libraries/Haskell
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}




commit ghc-cryptonite-conduit for openSUSE:Factory

2018-10-24 Thread root
Hello community,

here is the log from the commit of package ghc-cryptonite-conduit for 
openSUSE:Factory checked in at 2018-10-25 08:24:03

Comparing /work/SRC/openSUSE:Factory/ghc-cryptonite-conduit (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-cryptonite-conduit.new (New)


Package is "ghc-cryptonite-conduit"

Thu Oct 25 08:24:03 2018 rev:6 rq:643376 version:0.2.2

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-cryptonite-conduit/ghc-cryptonite-conduit.changes
2018-07-24 17:17:07.846894931 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-cryptonite-conduit.new/ghc-cryptonite-conduit.changes
   2018-10-25 08:24:07.195863162 +0200
@@ -1,0 +2,5 @@
+Sat Oct 20 11:31:22 UTC 2018 - Peter Simons 
+
+- Use https URL to refer to bugs.opensuse.org.
+
+---



Other differences:
--
++ ghc-cryptonite-conduit.spec ++
--- /var/tmp/diff_new_pack.DWq8tA/_old  2018-10-25 08:24:08.275862671 +0200
+++ /var/tmp/diff_new_pack.DWq8tA/_new  2018-10-25 08:24:08.279862669 +0200
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 




commit ghc-cryptonite-conduit for openSUSE:Factory

2018-07-24 Thread root
Hello community,

here is the log from the commit of package ghc-cryptonite-conduit for 
openSUSE:Factory checked in at 2018-07-24 17:17:01

Comparing /work/SRC/openSUSE:Factory/ghc-cryptonite-conduit (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-cryptonite-conduit.new (New)


Package is "ghc-cryptonite-conduit"

Tue Jul 24 17:17:01 2018 rev:5 rq:623752 version:0.2.2

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-cryptonite-conduit/ghc-cryptonite-conduit.changes
2018-05-30 12:25:21.286232709 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-cryptonite-conduit.new/ghc-cryptonite-conduit.changes
   2018-07-24 17:17:07.846894931 +0200
@@ -1,0 +2,11 @@
+Wed Jul 18 14:26:20 UTC 2018 - psim...@suse.com
+
+- Cosmetic: replace tabs with blanks, strip trailing white space,
+  and update copyright headers with spec-cleaner.
+
+---
+Wed Jul 18 14:11:52 UTC 2018 - psim...@suse.com
+
+- Revise cabal build file to specify more accurate dependencies.
+
+---
@@ -22 +32,0 @@
-

New:

  cryptonite-conduit.cabal



Other differences:
--
++ ghc-cryptonite-conduit.spec ++
--- /var/tmp/diff_new_pack.aqIL6Y/_old  2018-07-24 17:17:09.242896732 +0200
+++ /var/tmp/diff_new_pack.aqIL6Y/_new  2018-07-24 17:17:09.246896737 +0200
@@ -26,6 +26,7 @@
 Group:  Development/Libraries/Haskell
 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-conduit-devel
@@ -64,6 +65,7 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
+cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++ cryptonite-conduit.cabal ++
Name:cryptonite-conduit
version: 0.2.2
x-revision: 1
Synopsis:cryptonite conduit
Description:
  Conduit bridge for cryptonite
  .
  For now only provide a conduit version for hash and hmac, but
  with contribution, this could provide cipher conduits too,
  and probably other things.
License: BSD3
License-file:LICENSE
Copyright:   Vincent Hanquez 
Author:  Vincent Hanquez 
Maintainer:  vinc...@snarc.org
Category:Cryptography, Conduit
Stability:   experimental
Build-Type:  Simple
Homepage:https://github.com/haskell-crypto/cryptonite-conduit
Cabal-Version:   >=1.8
Extra-source-files:  README.md CHANGELOG.md

Library
  Exposed-modules:   Crypto.Cipher.ChaChaPoly1305.Conduit
 Crypto.MAC.HMAC.Conduit
 Crypto.Hash.Conduit
 Crypto.PubKey.ECIES.Conduit
  Build-depends: base >= 4.8 && < 5
   , bytestring
   , conduit
   , conduit-extra
   , cryptonite
   , exceptions
   , memory
   , resourcet
   , transformers
  ghc-options:   -Wall -fwarn-tabs

test-suite cryptonite-conduit-test
  type:exitcode-stdio-1.0
  hs-source-dirs:  test
  main-is: Spec.hs
  build-depends:   base
 , bytestring
 , conduit
 , conduit-combinators
 , cryptonite
 , cryptonite-conduit
 , memory
 , tasty
 , tasty-hunit
 , tasty-quickcheck
  ghc-options:   -Wall

source-repository head
  type: git
  location: https://github.com/haskell-crypto/cryptonite-conduit



commit ghc-cryptonite-conduit for openSUSE:Factory

2018-05-30 Thread root
Hello community,

here is the log from the commit of package ghc-cryptonite-conduit for 
openSUSE:Factory checked in at 2018-05-30 12:06:23

Comparing /work/SRC/openSUSE:Factory/ghc-cryptonite-conduit (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-cryptonite-conduit.new (New)


Package is "ghc-cryptonite-conduit"

Wed May 30 12:06:23 2018 rev:4 rq:607778 version:0.2.2

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-cryptonite-conduit/ghc-cryptonite-conduit.changes
2017-09-15 21:29:49.991184475 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-cryptonite-conduit.new/ghc-cryptonite-conduit.changes
   2018-05-30 12:25:21.286232709 +0200
@@ -1,0 +2,7 @@
+Mon May 14 17:02:11 UTC 2018 - psim...@suse.com
+
+- Update cryptonite-conduit to version 0.2.2.
+  * Add the `Crypto.Cipher.ChaChaPoly1305.Conduit` and
+`Crypto.PubKey.ECIES.Conduit` modules
+
+---

Old:

  cryptonite-conduit-0.2.0.tar.gz

New:

  cryptonite-conduit-0.2.2.tar.gz



Other differences:
--
++ ghc-cryptonite-conduit.spec ++
--- /var/tmp/diff_new_pack.9AFoVl/_old  2018-05-30 12:25:22.046207805 +0200
+++ /var/tmp/diff_new_pack.9AFoVl/_new  2018-05-30 12:25:22.050207674 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-cryptonite-conduit
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %global pkg_name cryptonite-conduit
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.2.0
+Version:0.2.2
 Release:0
 Summary:Cryptonite conduit
 License:BSD-3-Clause
@@ -31,6 +31,7 @@
 BuildRequires:  ghc-conduit-devel
 BuildRequires:  ghc-conduit-extra-devel
 BuildRequires:  ghc-cryptonite-devel
+BuildRequires:  ghc-exceptions-devel
 BuildRequires:  ghc-memory-devel
 BuildRequires:  ghc-resourcet-devel
 BuildRequires:  ghc-rpm-macros
@@ -39,6 +40,7 @@
 BuildRequires:  ghc-conduit-combinators-devel
 BuildRequires:  ghc-tasty-devel
 BuildRequires:  ghc-tasty-hunit-devel
+BuildRequires:  ghc-tasty-quickcheck-devel
 %endif
 
 %description
@@ -79,9 +81,9 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%doc LICENSE
+%license LICENSE
 
 %files devel -f %{name}-devel.files
-%doc README.md
+%doc CHANGELOG.md README.md
 
 %changelog

++ cryptonite-conduit-0.2.0.tar.gz -> cryptonite-conduit-0.2.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cryptonite-conduit-0.2.0/CHANGELOG.md 
new/cryptonite-conduit-0.2.2/CHANGELOG.md
--- old/cryptonite-conduit-0.2.0/CHANGELOG.md   1970-01-01 01:00:00.0 
+0100
+++ new/cryptonite-conduit-0.2.2/CHANGELOG.md   2017-07-10 19:03:17.0 
+0200
@@ -0,0 +1,12 @@
+## 0.2.1
+
+* Add the `Crypto.Cipher.ChaChaPoly1305.Conduit` and
+  `Crypto.PubKey.ECIES.Conduit` modules
+
+## 0.2.0
+
+* Add HMAC sink
+
+## 0.1
+
+* Initial release
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cryptonite-conduit-0.2.0/Crypto/Cipher/ChaChaPoly1305/Conduit.hs 
new/cryptonite-conduit-0.2.2/Crypto/Cipher/ChaChaPoly1305/Conduit.hs
--- old/cryptonite-conduit-0.2.0/Crypto/Cipher/ChaChaPoly1305/Conduit.hs
1970-01-01 01:00:00.0 +0100
+++ new/cryptonite-conduit-0.2.2/Crypto/Cipher/ChaChaPoly1305/Conduit.hs
2017-07-10 19:03:17.0 +0200
@@ -0,0 +1,88 @@
+{-# LANGUAGE DeriveDataTypeable #-}
+module Crypto.Cipher.ChaChaPoly1305.Conduit
+  ( encrypt
+  , decrypt
+  , ChaChaException (..)
+  ) where
+
+import   Control.Exception(assert)
+import   Control.Monad.Catch  (Exception, MonadThrow, throwM)
+import qualified Crypto.Cipher.ChaChaPoly1305 as Cha
+import qualified Crypto.Error as CE
+import qualified Crypto.MAC.Poly1305  as Poly1305
+import qualified Data.ByteArray   as BA
+import   Data.ByteString  (ByteString)
+import qualified Data.ByteString  as B
+import qualified Data.ByteString.Lazy as BL
+import   Data.Conduit (ConduitM, await, leftover, 
yield)
+import qualified Data.Conduit.Binary  as CB
+import   Data.Typeable(Typeable)
+
+cf :: MonadThrow m
+   => (CE.CryptoError -> ChaChaException)
+   -> CE.CryptoFailable a
+   -> m a
+cf _ (CE.CryptoPassed x) = return x
+cf f (CE.CryptoFailed e) = throwM (f e)
+
+data ChaChaException
+  = EncryptNonceException !CE.CryptoError
+  | EncryptKeyException !CE.CryptoError
+  | DecryptNonceException !CE

commit ghc-cryptonite-conduit for openSUSE:Factory

2017-09-15 Thread root
Hello community,

here is the log from the commit of package ghc-cryptonite-conduit for 
openSUSE:Factory checked in at 2017-09-15 21:29:49

Comparing /work/SRC/openSUSE:Factory/ghc-cryptonite-conduit (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-cryptonite-conduit.new (New)


Package is "ghc-cryptonite-conduit"

Fri Sep 15 21:29:49 2017 rev:3 rq:524362 version:0.2.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-cryptonite-conduit/ghc-cryptonite-conduit.changes
2017-03-03 17:49:22.288131885 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-cryptonite-conduit.new/ghc-cryptonite-conduit.changes
   2017-09-15 21:29:49.991184475 +0200
@@ -1,0 +2,5 @@
+Thu Aug  3 15:38:38 UTC 2017 - psim...@suse.com
+
+- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf.
+
+---



Other differences:
--
++ ghc-cryptonite-conduit.spec ++
--- /var/tmp/diff_new_pack.88PwIw/_old  2017-09-15 21:29:51.039036801 +0200
+++ /var/tmp/diff_new_pack.88PwIw/_new  2017-09-15 21:29:51.043036237 +0200
@@ -23,8 +23,8 @@
 Release:0
 Summary:Cryptonite conduit
 License:BSD-3-Clause
-Group:  Development/Languages/Other
-Url:https://hackage.haskell.org/package/%{pkg_name}
+Group:  Development/Libraries/Haskell
+URL:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-bytestring-devel
@@ -35,7 +35,6 @@
 BuildRequires:  ghc-resourcet-devel
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-transformers-devel
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-conduit-combinators-devel
 BuildRequires:  ghc-tasty-devel
@@ -51,7 +50,7 @@
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
-Group:  Development/Libraries/Other
+Group:  Development/Libraries/Haskell
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}
@@ -80,11 +79,9 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%defattr(-,root,root,-)
 %doc LICENSE
 
 %files devel -f %{name}-devel.files
-%defattr(-,root,root,-)
 %doc README.md
 
 %changelog




commit ghc-cryptonite-conduit for openSUSE:Factory

2017-03-03 Thread root
Hello community,

here is the log from the commit of package ghc-cryptonite-conduit for 
openSUSE:Factory checked in at 2017-03-03 17:49:21

Comparing /work/SRC/openSUSE:Factory/ghc-cryptonite-conduit (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-cryptonite-conduit.new (New)


Package is "ghc-cryptonite-conduit"

Fri Mar  3 17:49:21 2017 rev:2 rq:461621 version:0.2.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-cryptonite-conduit/ghc-cryptonite-conduit.changes
2016-09-25 14:41:05.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-cryptonite-conduit.new/ghc-cryptonite-conduit.changes
   2017-03-03 17:49:22.288131885 +0100
@@ -1,0 +2,5 @@
+Sun Feb 12 14:11:16 UTC 2017 - psim...@suse.com
+
+- Update to version 0.2.0 with cabal2obs.
+
+---

Old:

  cryptonite-conduit-0.1.tar.gz

New:

  cryptonite-conduit-0.2.0.tar.gz



Other differences:
--
++ ghc-cryptonite-conduit.spec ++
--- /var/tmp/diff_new_pack.nquqK5/_old  2017-03-03 17:49:22.956037556 +0100
+++ /var/tmp/diff_new_pack.nquqK5/_new  2017-03-03 17:49:22.960036991 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-cryptonite-conduit
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,31 +17,37 @@
 
 
 %global pkg_name cryptonite-conduit
+%bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.1
+Version:0.2.0
 Release:0
 Summary:Cryptonite conduit
 License:BSD-3-Clause
-Group:  System/Libraries
+Group:  Development/Languages/Other
 Url:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
 BuildRequires:  ghc-Cabal-devel
-# Begin cabal-rpm deps:
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-conduit-devel
 BuildRequires:  ghc-conduit-extra-devel
 BuildRequires:  ghc-cryptonite-devel
+BuildRequires:  ghc-memory-devel
 BuildRequires:  ghc-resourcet-devel
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-transformers-devel
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-# End cabal-rpm deps
+%if %{with tests}
+BuildRequires:  ghc-conduit-combinators-devel
+BuildRequires:  ghc-tasty-devel
+BuildRequires:  ghc-tasty-hunit-devel
+%endif
 
 %description
 Conduit bridge for cryptonite
 
-For now only provide a conduit version for hash, but with contribution, this
-could provide cipher conduits too, and probably other things.
+For now only provide a conduit version for hash and hmac, but with
+contribution, this could provide cipher conduits too, and probably other
+things.
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
@@ -58,14 +64,14 @@
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
-
 %build
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
+%check
+%cabal_test
 
 %post devel
 %ghc_pkg_recache

++ cryptonite-conduit-0.1.tar.gz -> cryptonite-conduit-0.2.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cryptonite-conduit-0.1/Crypto/MAC/HMAC/Conduit.hs 
new/cryptonite-conduit-0.2.0/Crypto/MAC/HMAC/Conduit.hs
--- old/cryptonite-conduit-0.1/Crypto/MAC/HMAC/Conduit.hs   1970-01-01 
01:00:00.0 +0100
+++ new/cryptonite-conduit-0.2.0/Crypto/MAC/HMAC/Conduit.hs 2017-02-06 
10:33:56.0 +0100
@@ -0,0 +1,30 @@
+{-# LANGUAGE RankNTypes, BangPatterns #-}
+-- |
+-- Module  : Crypto.MAC.HMAC.Conduit
+-- License : BSD-style
+-- Maintainer  : Vincent Hanquez 
+-- Stability   : experimental
+-- Portability : unknown
+--
+-- A module containing Conduit facilities for hmac based functions.
+--
+module Crypto.MAC.HMAC.Conduit
+( -- * Cryptographic hash functions
+  sinkHMAC
+) where
+
+import Crypto.Hash
+import Crypto.MAC.HMAC
+import Data.ByteArray
+import Data.Conduit
+import qualified Data.ByteString as BS
+
+-- | A 'Sink' that calculates HMAC of a stream of 'B.ByteString'@s@ and
+-- returns digest @d@.
+sinkHMAC :: (Monad m, ByteArrayAccess key, HashAlgorithm hash) => key -> 
ConduitM BS.ByteString o m (HMAC hash)
+sinkHMAC key = sink (initialize key)
+  where sink ctx = do
+b <- await
+case b of
+Nothing -> return $! finalize ctx
+Just bs -> sink $! update ctx bs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cryptonite-conduit-0.1/README.md 
new/cryptonite-conduit-0.2.0/README.md
--- old/