Hello community,
here is the log from the commit of package ghc-cryptohash-sha256 for
openSUSE:Factory checked in at 2016-07-21 08:05:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-cryptohash-sha256 (Old)
and /work/SRC/openSUSE:Factory/.ghc-cryptohash-sha256.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-cryptohash-sha256"
Changes:
--------
---
/work/SRC/openSUSE:Factory/ghc-cryptohash-sha256/ghc-cryptohash-sha256.changes
2016-06-07 23:47:20.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.ghc-cryptohash-sha256.new/ghc-cryptohash-sha256.changes
2016-07-21 08:05:41.000000000 +0200
@@ -1,0 +2,5 @@
+Sun Jul 10 17:28:01 UTC 2016 - [email protected]
+
+- Update to version 0.11.100.1 revision 0 with cabal2obs.
+
+-------------------------------------------------------------------
Old:
----
cryptohash-sha256-0.11.100.0.tar.gz
New:
----
cryptohash-sha256-0.11.100.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-cryptohash-sha256.spec ++++++
--- /var/tmp/diff_new_pack.JZyNh7/_old 2016-07-21 08:05:42.000000000 +0200
+++ /var/tmp/diff_new_pack.JZyNh7/_new 2016-07-21 08:05:42.000000000 +0200
@@ -15,25 +15,22 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
-%global pkg_name cryptohash-sha256
+%global pkg_name cryptohash-sha256
%bcond_with tests
-
Name: ghc-%{pkg_name}
-Version: 0.11.100.0
+Version: 0.11.100.1
Release: 0
Summary: Fast, pure and practical SHA-256 implementation
-Group: System/Libraries
-
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-bytestring-devel
+BuildRequires: ghc-rpm-macros
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %{with tests}
BuildRequires: ghc-SHA-devel
BuildRequires: ghc-base16-bytestring-devel
@@ -61,20 +58,18 @@
'cryptohash''s "Crypto.Hash.SHA256" module, though with a clearly smaller
footprint.
-
%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}
@@ -89,25 +84,22 @@
%check
%if %{with tests}
-%cabal test
+%{cabal} test
%endif
%post devel
%ghc_pkg_recache
-
%postun devel
%ghc_pkg_recache
-
%files -f %{name}.files
%defattr(-,root,root,-)
%doc LICENSE
-
%files devel -f %{name}-devel.files
%defattr(-,root,root,-)
-
+%doc changelog.md
%changelog
++++++ cryptohash-sha256-0.11.100.0.tar.gz ->
cryptohash-sha256-0.11.100.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/cryptohash-sha256-0.11.100.0/cbits/sha256.c
new/cryptohash-sha256-0.11.100.1/cbits/sha256.c
--- old/cryptohash-sha256-0.11.100.0/cbits/sha256.c 2016-05-16
18:18:38.000000000 +0200
+++ new/cryptohash-sha256-0.11.100.1/cbits/sha256.c 2016-06-27
22:36:50.000000000 +0200
@@ -50,7 +50,7 @@
{
#if WORDS_BIGENDIAN
return hl;
-#elif __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)
+#elif __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
return __builtin_bswap32(hl);
#else
/* GCC usually transforms this into a bswap insn */
@@ -73,7 +73,7 @@
{
#if WORDS_BIGENDIAN
return hll;
-#elif __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)
+#elif __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
return __builtin_bswap64(hll);
#else
return ((uint64_t)cpu_to_be32(hll & 0xffffffff) << 32LL) | cpu_to_be32(hll
>> 32);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/cryptohash-sha256-0.11.100.0/changelog.md
new/cryptohash-sha256-0.11.100.1/changelog.md
--- old/cryptohash-sha256-0.11.100.0/changelog.md 2016-05-16
18:18:38.000000000 +0200
+++ new/cryptohash-sha256-0.11.100.1/changelog.md 2016-06-27
22:36:50.000000000 +0200
@@ -1,3 +1,8 @@
+## 0.11.100.1
+
+ - Use `__builtin_bswap{32,64}` only with GCC >= 4.3
+ ([#1](https://github.com/hvr/cryptohash-sha256/issues/1))
+
## 0.11.100.0
- new `hmac` and `hmaclazy` functions providing HMAC-SHA1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/cryptohash-sha256-0.11.100.0/cryptohash-sha256.cabal
new/cryptohash-sha256-0.11.100.1/cryptohash-sha256.cabal
--- old/cryptohash-sha256-0.11.100.0/cryptohash-sha256.cabal 2016-05-16
18:18:38.000000000 +0200
+++ new/cryptohash-sha256-0.11.100.1/cryptohash-sha256.cabal 2016-06-27
22:36:50.000000000 +0200
@@ -1,5 +1,5 @@
name: cryptohash-sha256
-version: 0.11.100.0
+version: 0.11.100.1
description:
A practical incremental and one-pass, pure API to the
<https://en.wikipedia.org/wiki/SHA-2 SHA-256 hash algorithm>