commit ghc-RSA for openSUSE:Factory

2017-09-15 Thread root
Hello community,

here is the log from the commit of package ghc-RSA for openSUSE:Factory checked 
in at 2017-09-15 21:14:06

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


Package is "ghc-RSA"

Fri Sep 15 21:14:06 2017 rev:5 rq:523985 version:2.3.0

Changes:

--- /work/SRC/openSUSE:Factory/ghc-RSA/ghc-RSA.changes  2017-08-31 
20:46:08.214419939 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-RSA.new/ghc-RSA.changes 2017-09-15 
21:14:07.771903930 +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-RSA.spec ++
--- /var/tmp/diff_new_pack.JyXOMV/_old  2017-09-15 21:14:08.423812335 +0200
+++ /var/tmp/diff_new_pack.JyXOMV/_new  2017-09-15 21:14:08.423812335 +0200
@@ -23,8 +23,8 @@
 Release:0
 Summary:Implementation of RSA, using the padding schemes of PKCS#1 v2.1
 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-SHA-devel
@@ -33,7 +33,6 @@
 BuildRequires:  ghc-crypto-api-devel
 BuildRequires:  ghc-crypto-pubkey-types-devel
 BuildRequires:  ghc-rpm-macros
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-DRBG-devel
 BuildRequires:  ghc-QuickCheck-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}
@@ -79,10 +78,8 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%defattr(-,root,root,-)
 %doc LICENSE
 
 %files devel -f %{name}-devel.files
-%defattr(-,root,root,-)
 
 %changelog




commit ghc-RSA for openSUSE:Factory

2017-08-31 Thread root
Hello community,

here is the log from the commit of package ghc-RSA for openSUSE:Factory checked 
in at 2017-08-31 20:46:06

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


Package is "ghc-RSA"

Thu Aug 31 20:46:06 2017 rev:4 rq:513195 version:2.3.0

Changes:

--- /work/SRC/openSUSE:Factory/ghc-RSA/ghc-RSA.changes  2016-07-27 
16:09:24.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-RSA.new/ghc-RSA.changes 2017-08-31 
20:46:08.214419939 +0200
@@ -1,0 +2,5 @@
+Thu Jul 27 14:07:58 UTC 2017 - psim...@suse.com
+
+- Update to version 2.3.0.
+
+---

Old:

  RSA-2.2.0.tar.gz

New:

  RSA-2.3.0.tar.gz



Other differences:
--
++ ghc-RSA.spec ++
--- /var/tmp/diff_new_pack.mLBLQy/_old  2017-08-31 20:46:09.246275105 +0200
+++ /var/tmp/diff_new_pack.mLBLQy/_new  2017-08-31 20:46:09.250274543 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-RSA
 #
-# 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
@@ -19,21 +19,19 @@
 %global pkg_name RSA
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:2.2.0
+Version:2.3.0
 Release:0
 Summary:Implementation of RSA, using the padding schemes of PKCS#1 v2.1
 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-SHA-devel
 BuildRequires:  ghc-binary-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-crypto-api-devel
 BuildRequires:  ghc-crypto-pubkey-types-devel
-BuildRequires:  ghc-pureMD5-devel
 BuildRequires:  ghc-rpm-macros
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
@@ -43,7 +41,6 @@
 BuildRequires:  ghc-test-framework-devel
 BuildRequires:  ghc-test-framework-quickcheck2-devel
 %endif
-# End cabal-rpm deps
 
 %description
 This library implements the RSA encryption and signature algorithms for
@@ -66,20 +63,14 @@
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
-
 %build
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
-
 %check
-%if %{with tests}
-%{cabal} test
-%endif
-
+%cabal_test
 
 %post devel
 %ghc_pkg_recache

++ RSA-2.2.0.tar.gz -> RSA-2.3.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/RSA-2.2.0/RSA.cabal new/RSA-2.3.0/RSA.cabal
--- old/RSA-2.2.0/RSA.cabal 2015-10-12 20:52:47.0 +0200
+++ new/RSA-2.3.0/RSA.cabal 2017-06-08 23:42:59.0 +0200
@@ -1,6 +1,6 @@
 name:   RSA
 category:   Cryptography, Codec
-version:2.2.0
+version:2.3.0
 license:BSD3
 license-file: LICENSE
 author: Adam Wick 
@@ -24,7 +24,6 @@
bytestring  >  0.8 && < 0.12,
crypto-api  >= 0.10&& < 0.14,
crypto-pubkey-types >= 0.2 && < 0.6,
-   pureMD5 >= 2.1 && < 2.3,
SHA >= 1.6.4.1 && < 2.0
   exposed-modules: Codec.Crypto.RSA,
Codec.Crypto.RSA.Exceptions,
@@ -42,7 +41,6 @@
   crypto-api >= 0.10&& < 0.14,
   crypto-pubkey-types>= 0.4 && < 0.6,
   DRBG   >= 0.5.2   && < 0.7,
-  pureMD5>= 2.1 && < 2.3,
   QuickCheck >= 2.5 && < 3,
   tagged >= 0.2 && < 0.9,
   test-framework >= 0.8.0.3 && < 0.10,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/RSA-2.2.0/Test.hs new/RSA-2.3.0/Test.hs
--- old/RSA-2.2.0/Test.hs   2015-10-12 20:52:47.0 +0200
+++ new/RSA-2.3.0/Test.hs   2017-06-08 23:42:59.0 +0200
@@ -4,7 +4,6 @@
 import qualified Data.ByteString as BSS
 import Data.ByteString.Lazy(ByteString)
 import qualified Data.ByteString.Lazy as BS
-import qualified Data.Digest.Pure.MD5 as MD5
 import Data.Digest.Pure.SHA
 import System.IO
 import Test.QuickCheck
@@ -81,7 +80,6 @@
 
 instance Show HashInfo where
   show (HashInfo ident _)
-| ident == algorithmIdent hashMD5= ""
 | ident == algorithmIdent hashSHA1   = ""
 | 

commit ghc-RSA for openSUSE:Factory

2016-07-27 Thread h_root
Hello community,

here is the log from the commit of package ghc-RSA for openSUSE:Factory checked 
in at 2016-07-27 16:09:14

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


Package is "ghc-RSA"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-RSA/ghc-RSA.changes  2016-01-08 
15:22:46.0 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-RSA.new/ghc-RSA.changes 2016-07-27 
16:09:24.0 +0200
@@ -1,0 +2,5 @@
+Sun Jul 10 17:14:02 UTC 2016 - psim...@suse.com
+
+- Update to version 2.2.0 revision 0 with cabal2obs.
+
+---



Other differences:
--
++ ghc-RSA.spec ++
--- /var/tmp/diff_new_pack.FYufG3/_old  2016-07-27 16:09:25.0 +0200
+++ /var/tmp/diff_new_pack.FYufG3/_new  2016-07-27 16:09:25.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-RSA
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 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,22 +17,16 @@
 
 
 %global pkg_name RSA
-
 %bcond_with tests
-
-Name:   ghc-RSA
+Name:   ghc-%{pkg_name}
 Version:2.2.0
 Release:0
 Summary:Implementation of RSA, using the padding schemes of PKCS#1 v2.1
 License:BSD-3-Clause
 Group:  System/Libraries
-
 Url:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-
 BuildRequires:  ghc-Cabal-devel
-BuildRequires:  ghc-rpm-macros
 # Begin cabal-rpm deps:
 BuildRequires:  ghc-SHA-devel
 BuildRequires:  ghc-binary-devel
@@ -40,6 +34,8 @@
 BuildRequires:  ghc-crypto-api-devel
 BuildRequires:  ghc-crypto-pubkey-types-devel
 BuildRequires:  ghc-pureMD5-devel
+BuildRequires:  ghc-rpm-macros
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-DRBG-devel
 BuildRequires:  ghc-QuickCheck-devel
@@ -56,33 +52,35 @@
 The algorithms included are based of RFC 3447, or the Public-Key Cryptography
 Standard for RSA, version 2.1 (a.k.a, PKCS#1 v2.1).
 
-
 %package devel
 Summary:Haskell %{pkg_name} library development files
 Group:  Development/Libraries/Other
+Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}
 Requires(postun): ghc-compiler = %{ghc_version}
-Requires:   %{name} = %{version}-%{release}
 
 %description devel
 This package provides the Haskell %{pkg_name} library development files.
 
-
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
+
 %build
 %ghc_lib_build
 
+
 %install
 %ghc_lib_install
 
+
 %check
 %if %{with tests}
-%cabal test
+%{cabal} test
 %endif
 
+
 %post devel
 %ghc_pkg_recache
 




commit ghc-RSA for openSUSE:Factory

2016-01-08 Thread h_root
Hello community,

here is the log from the commit of package ghc-RSA for openSUSE:Factory checked 
in at 2016-01-08 15:22:45

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


Package is "ghc-RSA"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-RSA/ghc-RSA.changes  2015-12-29 
12:59:07.0 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-RSA.new/ghc-RSA.changes 2016-01-08 
15:22:46.0 +0100
@@ -1,0 +2,5 @@
+Thu Dec 24 13:32:57 UTC 2015 - mimi...@gmail.com
+
+- update to 2.2.0
+
+---

Old:

  RSA-2.1.0.3.tar.gz

New:

  RSA-2.2.0.tar.gz



Other differences:
--
++ ghc-RSA.spec ++
--- /var/tmp/diff_new_pack.XwbqjK/_old  2016-01-08 15:22:47.0 +0100
+++ /var/tmp/diff_new_pack.XwbqjK/_new  2016-01-08 15:22:47.0 +0100
@@ -21,7 +21,7 @@
 %bcond_with tests
 
 Name:   ghc-RSA
-Version:2.1.0.3
+Version:2.2.0
 Release:0
 Summary:Implementation of RSA, using the padding schemes of PKCS#1 v2.1
 License:BSD-3-Clause

++ RSA-2.1.0.3.tar.gz -> RSA-2.2.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/RSA-2.1.0.3/RSA.cabal new/RSA-2.2.0/RSA.cabal
--- old/RSA-2.1.0.3/RSA.cabal   2015-09-03 23:21:31.0 +0200
+++ new/RSA-2.2.0/RSA.cabal 2015-10-12 20:52:47.0 +0200
@@ -1,6 +1,6 @@
 name:   RSA
 category:   Cryptography, Codec
-version:2.1.0.3
+version:2.2.0
 license:BSD3
 license-file: LICENSE
 author: Adam Wick 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/RSA-2.1.0.3/src/Codec/Crypto/RSA/Pure.hs 
new/RSA-2.2.0/src/Codec/Crypto/RSA/Pure.hs
--- old/RSA-2.1.0.3/src/Codec/Crypto/RSA/Pure.hs2015-09-03 
23:21:31.0 +0200
+++ new/RSA-2.2.0/src/Codec/Crypto/RSA/Pure.hs  2015-10-12 20:52:47.0 
+0200
@@ -73,7 +73,7 @@
   | RSAIncorrectMsgSize
   | RSADecryptionError
   | RSAGenError GenError
- deriving (Show, Typeable)
+ deriving (Eq, Show, Typeable)
 
 instance Exception RSAError
 
@@ -325,7 +325,7 @@
 -- generate an error, represented by the Left constructor.
 --
 -- Futher, k (the length of the ciphertext in bytes) must be greater than or
--- equal to (2 * hLen + 2), where hLen is the length of the output of the 
+-- equal to (2 * hLen + 2), where hLen is the length of the output of the
 -- hash function in bytes. If this equation does not hold, a (different)
 -- error will be generated.
 --
@@ -345,7 +345,7 @@
  keySize= private_size k
  -- WARNING: Step 1a is missing!
  unless (BS.length c == fromIntegral keySize) $-- Step 1b
-   Left RSADecryptionError 
+   Left RSADecryptionError
  unless (fromIntegral keySize >= ((2 * hashLength) + 2)) $ -- Step 1c
Left RSADecryptionError
  let c_ip = os2ip c-- Step 2a
@@ -417,7 +417,7 @@
  em   <- i2osp m_i (private_size k) -- Step 2c
  let (zt, ps_z_m) = BS.splitAt 2 em -- Step 3...
  (ps, z_m)= BS.span (/= 0) ps_z_m
- (z, m)   = BS.splitAt 1 z_m 
+ (z, m)   = BS.splitAt 1 z_m
  when (BS.unpack zt /= [0,2]) $ Left RSADecryptionError
  when (BS.unpack z  /= [0])   $ Left RSADecryptionError
  when (BS.length ps <  8 )$ Left RSADecryptionError
@@ -483,17 +483,17 @@
 -- 
 
 -- |A 'mask generation function'. The input is a bytestring, and the output
--- is a hash of the given length. Unless you know what you're doing, you 
+-- is a hash of the given length. Unless you know what you're doing, you
 -- should probably use a MGF1 formulation created with generate_MGF1.
 type MGF = ByteString -> Int64 -> Either RSAError ByteString
 
--- |Generate a mask generation function for the rsaes_oaep_*. As 
+-- |Generate a mask generation function for the rsaes_oaep_*. As
 -- suggested by the name, the generated function is an instance of the MGF1
--- function. The arguments are the underlying hash function to use and the 
+-- function. The arguments are the underlying hash function to use and the
 -- size of a hash in bytes.
 --
 -- The bytestring passed to the generated function cannot be longer than
--- 2^32 * hLen, where hLen is the passed length of the hash. 
+-- 2^32 * hLen, where hLen is the passed length of the hash.
 generateMGF1 :: (ByteString -> ByteString) -> MGF
 generateMGF1 hash mgfSeed maskLen
   | BS.length mgfSeed > ((2 ^ (32::Integer)) *