Hello community,

here is the log from the commit of package ghc-case-insensitive for 
openSUSE:Factory checked in at 2016-08-25 09:57:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-case-insensitive (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-case-insensitive.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-case-insensitive"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/ghc-case-insensitive/ghc-case-insensitive.changes    
    2016-07-21 08:03:11.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-case-insensitive.new/ghc-case-insensitive.changes
   2016-08-25 09:57:50.000000000 +0200
@@ -1,0 +2,5 @@
+Mon Jul 25 11:21:37 UTC 2016 - psim...@suse.com
+
+- Update to version 1.2.0.7 revision 0 with cabal2obs.
+
+-------------------------------------------------------------------

Old:
----
  case-insensitive-1.2.0.6.tar.gz

New:
----
  case-insensitive-1.2.0.7.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-case-insensitive.spec ++++++
--- /var/tmp/diff_new_pack.oNTXpv/_old  2016-08-25 09:57:50.000000000 +0200
+++ /var/tmp/diff_new_pack.oNTXpv/_new  2016-08-25 09:57:50.000000000 +0200
@@ -19,15 +19,14 @@
 %global pkg_name case-insensitive
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        1.2.0.6
+Version:        1.2.0.7
 Release:        0
 Summary:        Case insensitive string comparison
 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-deepseq-devel
 BuildRequires:  ghc-hashable-devel
@@ -40,7 +39,6 @@
 BuildRequires:  ghc-test-framework-devel
 BuildRequires:  ghc-test-framework-hunit-devel
 %endif
-# End cabal-rpm deps
 
 %description
 The module 'Data.CaseInsensitive' provides the 'CI' type constructor which can
@@ -62,20 +60,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

++++++ case-insensitive-1.2.0.6.tar.gz -> case-insensitive-1.2.0.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/case-insensitive-1.2.0.6/CHANGELOG 
new/case-insensitive-1.2.0.7/CHANGELOG
--- old/case-insensitive-1.2.0.6/CHANGELOG      2016-03-15 14:46:07.000000000 
+0100
+++ new/case-insensitive-1.2.0.7/CHANGELOG      2016-07-21 07:15:00.000000000 
+0200
@@ -1,3 +1,8 @@
+1.2.0.7
+
+* Fix build of benchmarks when getting the sources from Hackage.
+
+
 1.2.0.6
 
 * Add Travis CI support
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/case-insensitive-1.2.0.6/README.markdown 
new/case-insensitive-1.2.0.7/README.markdown
--- old/case-insensitive-1.2.0.6/README.markdown        2016-03-15 
14:46:07.000000000 +0100
+++ new/case-insensitive-1.2.0.7/README.markdown        2016-07-21 
07:15:00.000000000 +0200
@@ -1,3 +1,6 @@
+[![Hackage](https://img.shields.io/hackage/v/case-insensitive.svg)](https://hackage.haskell.org/package/case-insensitive)
+[![Build 
Status](https://travis-ci.org/basvandijk/case-insensitive.svg)](https://travis-ci.org/basvandijk/case-insensitive)
+
 The module `Data.CaseInsensitive` provides the `CI` type constructor
 which can be parameterised by a string-like type like: `String`,
 `ByteString`, `Text`, etc.. Comparisons of values of the resulting
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/case-insensitive-1.2.0.6/bench/NoClass.hs 
new/case-insensitive-1.2.0.7/bench/NoClass.hs
--- old/case-insensitive-1.2.0.6/bench/NoClass.hs       1970-01-01 
01:00:00.000000000 +0100
+++ new/case-insensitive-1.2.0.7/bench/NoClass.hs       2016-07-21 
07:15:00.000000000 +0200
@@ -0,0 +1,24 @@
+module NoClass ( CI, mk ) where
+
+import           Control.DeepSeq            ( NFData, rnf, deepseq )
+import           Data.ByteString            ( ByteString )
+import qualified Data.ByteString      as B  ( map )
+import           Data.Word                  ( Word8 )
+
+data CI s = CI !s !s
+
+instance NFData s => NFData (CI s) where
+    rnf (CI o f) = o `deepseq` f `deepseq` ()
+
+mk :: ByteString -> CI ByteString
+mk s = CI s (foldCase s)
+
+foldCase :: ByteString -> ByteString
+foldCase = B.map toLower8
+
+toLower8 :: Word8 -> Word8
+toLower8 w
+  |  65 <= w && w <=  90 ||
+    192 <= w && w <= 214 ||
+    216 <= w && w <= 222 = w + 32
+  | otherwise            = w
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/case-insensitive-1.2.0.6/case-insensitive.cabal 
new/case-insensitive-1.2.0.7/case-insensitive.cabal
--- old/case-insensitive-1.2.0.6/case-insensitive.cabal 2016-03-15 
14:46:07.000000000 +0100
+++ new/case-insensitive-1.2.0.7/case-insensitive.cabal 2016-07-21 
07:15:00.000000000 +0200
@@ -1,5 +1,5 @@
 name:          case-insensitive
-version:       1.2.0.6
+version:       1.2.0.7
 cabal-version: >=1.8
 build-type:    Simple
 license:       BSD3
@@ -61,6 +61,7 @@
 benchmark bench-case-insensitive
   type:           exitcode-stdio-1.0
   main-is:        bench.hs
+  other-modules:  NoClass
   hs-source-dirs: bench
 
   ghc-options:    -Wall -O2


Reply via email to