commit ghc-identicon for openSUSE:Factory

2017-09-15 Thread root
Hello community,

here is the log from the commit of package ghc-identicon for openSUSE:Factory 
checked in at 2017-09-15 21:51:25

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


Package is "ghc-identicon"

Fri Sep 15 21:51:25 2017 rev:4 rq:524843 version:0.2.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-identicon/ghc-identicon.changes  
2017-06-22 10:37:58.622059483 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-identicon.new/ghc-identicon.changes 
2017-09-15 21:51:26.532498472 +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-identicon.spec ++
--- /var/tmp/diff_new_pack.aVoFao/_old  2017-09-15 21:51:27.336385166 +0200
+++ /var/tmp/diff_new_pack.aVoFao/_new  2017-09-15 21:51:27.340384602 +0200
@@ -23,15 +23,14 @@
 Release:0
 Summary:Flexible generation of identicons
 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
 Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-JuicyPixels-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-rpm-macros
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
 BuildRequires:  ghc-hspec-devel
@@ -42,7 +41,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}
@@ -71,14 +70,12 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%defattr(-,root,root,-)
 %doc LICENSE.md
 %dir %{_datadir}/%{pkg_name}-%{version}
 %dir %{_datadir}/%{pkg_name}-%{version}/data-examples
 %{_datadir}/%{pkg_name}-%{version}/data-examples/*.png
 
 %files devel -f %{name}-devel.files
-%defattr(-,root,root,-)
 %doc CHANGELOG.md README.md
 
 %changelog




commit ghc-identicon for openSUSE:Factory

2017-06-22 Thread root
Hello community,

here is the log from the commit of package ghc-identicon for openSUSE:Factory 
checked in at 2017-06-22 10:37:57

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


Package is "ghc-identicon"

Thu Jun 22 10:37:57 2017 rev:3 rq:504079 version:0.2.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-identicon/ghc-identicon.changes  
2017-05-10 20:48:14.442124008 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-identicon.new/ghc-identicon.changes 
2017-06-22 10:37:58.622059483 +0200
@@ -1,0 +2,5 @@
+Wed May 31 14:05:44 UTC 2017 - psim...@suse.com
+
+- Update to version 0.2.2 revision 1.
+
+---

Old:

  identicon-0.2.1.tar.gz

New:

  identicon-0.2.2.tar.gz
  identicon.cabal



Other differences:
--
++ ghc-identicon.spec ++
--- /var/tmp/diff_new_pack.W4EStB/_old  2017-06-22 10:37:59.857885259 +0200
+++ /var/tmp/diff_new_pack.W4EStB/_new  2017-06-22 10:37:59.861884695 +0200
@@ -19,13 +19,14 @@
 %global pkg_name identicon
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.2.1
+Version:0.2.2
 Release:0
 Summary:Flexible generation of identicons
 License:BSD-3-Clause
 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
+Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-JuicyPixels-devel
 BuildRequires:  ghc-bytestring-devel
@@ -52,6 +53,7 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
+cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++ identicon-0.2.1.tar.gz -> identicon-0.2.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/identicon-0.2.1/CHANGELOG.md 
new/identicon-0.2.2/CHANGELOG.md
--- old/identicon-0.2.1/CHANGELOG.md2017-03-28 07:56:52.0 +0200
+++ new/identicon-0.2.2/CHANGELOG.md2017-05-22 17:44:21.0 +0200
@@ -1,3 +1,7 @@
+## Identicon 0.2.2
+
+* Improved documentation and metadata.
+
 ## Identicon 0.2.1
 
 * Added `Semigroup` and `Monoid` instances for `Layer`.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/identicon-0.2.1/Graphics/Identicon/Primitive.hs 
new/identicon-0.2.2/Graphics/Identicon/Primitive.hs
--- old/identicon-0.2.1/Graphics/Identicon/Primitive.hs 2017-01-01 
11:58:15.0 +0100
+++ new/identicon-0.2.2/Graphics/Identicon/Primitive.hs 2017-05-22 
17:15:16.0 +0200
@@ -3,7 +3,7 @@
 -- Copyright   :  © 2016–2017 Mark Karpov
 -- License :  BSD 3 clause
 --
--- Maintainer  :  Mark Karpov 
+-- Maintainer  :  Mark Karpov 
 -- Stability   :  experimental
 -- Portability :  portable
 --
@@ -11,8 +11,8 @@
 -- identicon. Filling functions is where you start. They create color layers
 -- that occupy all available space. If you want to limit a layer in size,
 -- specify where this smaller part should be, take a look at the “Position,
--- size, and shape” section. It also contains a 'circle' combinator that
--- limits given filling is such a way that it forms a circle. Finally, we
+-- size, and shape” section. It also contains the 'circle' combinator that
+-- limits a given filling is such a way that it forms a circle. Finally, we
 -- have combinators that add symmetry to layers and other auxiliary
 -- functions.
 --
@@ -23,7 +23,7 @@
 -- > f :: Word8 -> Word8 -> Word8 -> Layer
 -- > f r g b = circle $ gradientLR id black (PixelRGB8 r g b)
 --
--- The function consumes 3 bytes from hash when it's used in identicon.
+-- The function consumes 3 bytes from a hash when it's used in identicon.
 
 module Graphics.Identicon.Primitive
   ( -- * Filling
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/identicon-0.2.1/Graphics/Identicon.hs 
new/identicon-0.2.2/Graphics/Identicon.hs
--- old/identicon-0.2.1/Graphics/Identicon.hs   2017-03-28 08:11:09.0 
+0200
+++ new/identicon-0.2.2/Graphics/Identicon.hs   2017-05-22 17:14:12.0 
+0200
@@ -3,13 +3,13 @@
 -- Copyright   :  © 2016–2017 Mark Karpov
 -- License :  BSD 3 clause
 --
--- Maintainer  :  Mark Karpov 
+-- Maintainer  :  Mark Karpov 
 -- Stability   :  experimental
 -- Portability :  portable
 --
 -- Core types and definitions for flexible generation of identicons. Please
--- see the "Graphics.Identicon.Primitive" 

commit ghc-identicon for openSUSE:Factory

2017-05-10 Thread root
Hello community,

here is the log from the commit of package ghc-identicon for openSUSE:Factory 
checked in at 2017-05-10 20:48:13

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


Package is "ghc-identicon"

Wed May 10 20:48:13 2017 rev:2 rq:489357 version:0.2.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-identicon/ghc-identicon.changes  
2017-04-12 18:07:08.270978800 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-identicon.new/ghc-identicon.changes 
2017-05-10 20:48:14.442124008 +0200
@@ -1,0 +2,5 @@
+Tue Apr  4 11:04:06 UTC 2017 - psim...@suse.com
+
+- Update to version 0.2.1 with cabal2obs.
+
+---

Old:

  identicon-0.2.0.tar.gz

New:

  identicon-0.2.1.tar.gz



Other differences:
--
++ ghc-identicon.spec ++
--- /var/tmp/diff_new_pack.WLJUTF/_old  2017-05-10 20:48:15.290004367 +0200
+++ /var/tmp/diff_new_pack.WLJUTF/_new  2017-05-10 20:48:15.290004367 +0200
@@ -19,7 +19,7 @@
 %global pkg_name identicon
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.2.0
+Version:0.2.1
 Release:0
 Summary:Flexible generation of identicons
 License:BSD-3-Clause
@@ -32,6 +32,7 @@
 BuildRequires:  ghc-rpm-macros
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
+BuildRequires:  ghc-QuickCheck-devel
 BuildRequires:  ghc-hspec-devel
 %endif
 

++ identicon-0.2.0.tar.gz -> identicon-0.2.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/identicon-0.2.0/CHANGELOG.md 
new/identicon-0.2.1/CHANGELOG.md
--- old/identicon-0.2.0/CHANGELOG.md2016-10-19 11:53:47.0 +0200
+++ new/identicon-0.2.1/CHANGELOG.md2017-03-28 07:56:52.0 +0200
@@ -1,3 +1,7 @@
+## Identicon 0.2.1
+
+* Added `Semigroup` and `Monoid` instances for `Layer`.
+
 ## Identicon 0.2.0
 
 * Added benchmarks.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/identicon-0.2.0/Graphics/Identicon/Primitive.hs 
new/identicon-0.2.1/Graphics/Identicon/Primitive.hs
--- old/identicon-0.2.0/Graphics/Identicon/Primitive.hs 2016-10-19 
11:51:32.0 +0200
+++ new/identicon-0.2.1/Graphics/Identicon/Primitive.hs 2017-01-01 
11:58:15.0 +0100
@@ -1,6 +1,6 @@
 -- |
 -- Module  :  Graphics.Identicon.Primitive
--- Copyright   :  © 2016 Mark Karpov
+-- Copyright   :  © 2016–2017 Mark Karpov
 -- License :  BSD 3 clause
 --
 -- Maintainer  :  Mark Karpov 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/identicon-0.2.0/Graphics/Identicon.hs 
new/identicon-0.2.1/Graphics/Identicon.hs
--- old/identicon-0.2.0/Graphics/Identicon.hs   2016-10-19 11:51:32.0 
+0200
+++ new/identicon-0.2.1/Graphics/Identicon.hs   2017-03-28 08:11:09.0 
+0200
@@ -1,6 +1,6 @@
 -- |
 -- Module  :  Graphics.Identicon
--- Copyright   :  © 2016 Mark Karpov
+-- Copyright   :  © 2016–2017 Mark Karpov
 -- License :  BSD 3 clause
 --
 -- Maintainer  :  Mark Karpov 
@@ -40,6 +40,7 @@
 -- black. The circle is mirrored 4 times, and every repetition is rotated by
 -- 90°. This identicon consumes 4 bytes and has one layer.
 
+{-# LANGUAGE CPP  #-}
 {-# LANGUAGE DataKinds#-}
 {-# LANGUAGE FlexibleContexts #-}
 {-# LANGUAGE FlexibleInstances#-}
@@ -73,6 +74,11 @@
 import Data.Word (Word8)
 import GHC.TypeLits
 import qualified Data.ByteString as B
+import qualified Data.Semigroup  as S
+
+#if !MIN_VERSION_base(4,8,0)
+import Data.Monoid
+#endif
 
 
 -- Basic types
@@ -123,6 +129,13 @@
 newtype Layer = Layer
   { unLayer :: Int -> Int -> Int -> Int -> PixelRGB8 }
 
+instance S.Semigroup Layer where
+  Layer a <> Layer b = Layer (\w h -> mixPixels (a w h) (b w h))
+
+instance Monoid Layer where
+  mempty  = Layer $ \_ _ _ _ -> PixelRGB8 0 0 0
+  mappend = (S.<>)
+
 -- | The 'BytesAvailable' type function calculates how many bytes available
 -- for consumption in a given identicon.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/identicon-0.2.0/LICENSE.md 
new/identicon-0.2.1/LICENSE.md
--- old/identicon-0.2.0/LICENSE.md  2016-01-03 14:37:56.0 +0100
+++ new/identicon-0.2.1/LICENSE.md  2017-01-01 11:58:33.0 +0100
@@ -1,4 +1,4 @@
-Copyright © 2016 Mark Karpov
+Copyright © 2016–2017 Mark Karpov
 
 All rights reserved.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore'