Hello community,
here is the log from the commit of package ghc-leveldb-haskell for
openSUSE:Factory checked in at 2017-06-04 01:57:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-leveldb-haskell (Old)
and /work/SRC/openSUSE:Factory/.ghc-leveldb-haskell.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-leveldb-haskell"
Sun Jun 4 01:57:51 2017 rev:2 rq:499712 version:0.6.5
Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-leveldb-haskell/ghc-leveldb-haskell.changes
2016-11-02 12:33:27.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.ghc-leveldb-haskell.new/ghc-leveldb-haskell.changes
2017-06-04 01:57:52.220803127 +0200
@@ -1,0 +2,5 @@
+Thu May 18 09:52:25 UTC 2017 - [email protected]
+
+- Update to version 0.6.5 with cabal2obs.
+
+-------------------------------------------------------------------
Old:
----
leveldb-haskell-0.6.4.tar.gz
New:
----
leveldb-haskell-0.6.5.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-leveldb-haskell.spec ++++++
--- /var/tmp/diff_new_pack.VUZkFM/_old 2017-06-04 01:57:52.772725154 +0200
+++ /var/tmp/diff_new_pack.VUZkFM/_new 2017-06-04 01:57:52.776724589 +0200
@@ -1,7 +1,7 @@
#
# spec file for package ghc-leveldb-haskell
#
-# 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,15 +19,14 @@
%global pkg_name leveldb-haskell
%bcond_with tests
Name: ghc-%{pkg_name}
-Version: 0.6.4
+Version: 0.6.5
Release: 0
Summary: Haskell bindings to LevelDB
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-data-default-devel
BuildRequires: ghc-exceptions-devel
@@ -45,8 +44,6 @@
BuildRequires: ghc-tasty-quickcheck-devel
BuildRequires: ghc-temporary-devel
%endif
-# End cabal-rpm deps
-BuildRequires: ghc-async-devel
%description
From <http://code.google.com/p/snappy>:
@@ -66,11 +63,9 @@
Group: Development/Libraries/Other
Requires: %{name} = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version}
-# Begin cabal-rpm deps:
Requires: leveldb-devel
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
-# End cabal-rpm deps
%description devel
This package provides the Haskell %{pkg_name} library development
@@ -79,20 +74,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
++++++ leveldb-haskell-0.6.4.tar.gz -> leveldb-haskell-0.6.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/leveldb-haskell-0.6.4/CHANGELOG
new/leveldb-haskell-0.6.5/CHANGELOG
--- old/leveldb-haskell-0.6.4/CHANGELOG 2015-01-17 12:17:17.000000000 +0100
+++ new/leveldb-haskell-0.6.5/CHANGELOG 2017-05-08 23:49:23.000000000 +0200
@@ -1,3 +1,7 @@
+[0.6.5]:
+
+* Relaxed constraints in `MonadResource` module
+
[0.6.1]:
* Expose `compactRange`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/leveldb-haskell-0.6.4/leveldb-haskell.cabal
new/leveldb-haskell-0.6.5/leveldb-haskell.cabal
--- old/leveldb-haskell-0.6.4/leveldb-haskell.cabal 2016-05-04
14:16:14.000000000 +0200
+++ new/leveldb-haskell-0.6.5/leveldb-haskell.cabal 2017-05-08
23:47:08.000000000 +0200
@@ -1,5 +1,5 @@
name: leveldb-haskell
-version: 0.6.4
+version: 0.6.5
synopsis: Haskell bindings to LevelDB
homepage: http://github.com/kim/leveldb-haskell
bug-reports: http://github.com/kim/leveldb-haskell/issues
@@ -12,7 +12,7 @@
stability: Experimental
build-type: Simple
cabal-version: >=1.10
-tested-with: GHC == 7.4.2, GHC == 7.6.4, GHC == 7.8.3, GHC == 7.10.1
+tested-with: GHC == 7.4.2, GHC == 7.6.4, GHC == 7.8.3, GHC == 7.10.1,
GHC == 8.0.1
description:
From <http://code.google.com/p/snappy>:
.
@@ -59,8 +59,7 @@
, resourcet > 0.3.2
, transformers
- ghc-options: -Wall -rtsopts -funbox-strict-fields
- ghc-prof-options: -prof -auto-all
+ ghc-options: -Wall -funbox-strict-fields
hs-source-dirs: src
@@ -76,8 +75,7 @@
, data-default
, leveldb-haskell
- ghc-options: -Wall -O -rtsopts
- ghc-prof-options: -prof -auto-all
+ ghc-options: -Wall -O -threaded -rtsopts
hs-source-dirs: examples
@@ -98,8 +96,7 @@
, data-default
, leveldb-haskell
- ghc-options: -Wall -O -rtsopts
- ghc-prof-options: -prof -auto-all
+ ghc-options: -Wall -O -threaded -rtsopts
hs-source-dirs: examples
@@ -118,8 +115,7 @@
, data-default
, leveldb-haskell
- ghc-options: -Wall -O -rtsopts
- ghc-prof-options: -prof -auto-all
+ ghc-options: -Wall -O -threaded -rtsopts
hs-source-dirs: examples
@@ -139,8 +135,7 @@
, data-default
, leveldb-haskell
- ghc-options: -Wall -O -rtsopts
- ghc-prof-options: -prof -auto-all
+ ghc-options: -Wall -O -threaded -rtsopts
hs-source-dirs: examples
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/leveldb-haskell-0.6.4/src/Database/LevelDB/MonadResource.hs
new/leveldb-haskell-0.6.5/src/Database/LevelDB/MonadResource.hs
--- old/leveldb-haskell-0.6.4/src/Database/LevelDB/MonadResource.hs
2015-09-13 23:33:34.000000000 +0200
+++ new/leveldb-haskell-0.6.5/src/Database/LevelDB/MonadResource.hs
2017-03-25 22:46:32.000000000 +0100
@@ -71,17 +71,20 @@
import Control.Applicative ((<$>))
import Control.Monad.Trans.Resource
-import Data.ByteString (ByteString)
-import Data.Int (Int64)
-
import Database.LevelDB.Base (BatchOp, BloomFilter,
Comparator,
Compression, DB, FilterPolicy,
Iterator, Options, Property,
Range, ReadOptions, Snapshot,
WriteBatch, WriteOptions,
+ approximateSize, compactRange,
defaultOptions,
defaultReadOptions,
- defaultWriteOptions)
+ defaultWriteOptions, delete,
+ destroy, get, getProperty,
+ iterFirst, iterGetError,
iterKey,
+ iterLast, iterNext, iterPrev,
+ iterSeek, iterValid, iterValue,
+ put, repair, version, write)
import qualified Database.LevelDB.Base as Base
import qualified Database.LevelDB.Internal as Internal
@@ -128,46 +131,6 @@
createSnapshot' :: MonadResource m => DB -> m (ReleaseKey, Snapshot)
createSnapshot' db = allocate (Base.createSnapshot db) (Base.releaseSnapshot
db)
--- | Get a DB property
-getProperty :: MonadResource m => DB -> Property -> m (Maybe ByteString)
-getProperty = Base.getProperty
-
--- | Destroy the given leveldb database.
-destroy :: MonadResource m => FilePath -> Options -> m ()
-destroy = Base.destroy
-
--- | Repair the given leveldb database.
-repair :: MonadResource m => FilePath -> Options -> m ()
-repair = Base.repair
-
-
--- | Inspect the approximate sizes of the different levels
-approximateSize :: MonadResource m => DB -> Range -> m Int64
-approximateSize = Base.approximateSize
-
--- | Compact the underlying storage for the given Range.
--- In particular this means discarding deleted and overwritten data as well as
--- rearranging the data to reduce the cost of operations accessing the data.
-compactRange :: MonadResource m => DB -> Range -> m ()
-compactRange = Base.compactRange
-
--- | Write a key/value pair
-put :: MonadResource m => DB -> WriteOptions -> ByteString -> ByteString -> m
()
-put = Base.put
-
--- | Read a value by key
-get :: MonadResource m => DB -> ReadOptions -> ByteString -> m (Maybe
ByteString)
-get = Base.get
-
--- | Delete a key/value pair
-delete :: MonadResource m => DB -> WriteOptions -> ByteString -> m ()
-delete = Base.delete
-
--- | Perform a batch mutation
-write :: MonadResource m => DB -> WriteOptions -> WriteBatch -> m ()
-write = Base.write
-
-
-- | Run an action with an Iterator. The iterator will be closed after the
-- action returns or an error is thrown. Thus, the iterator will /not/ be valid
-- after this function terminates.
@@ -193,64 +156,3 @@
-- | Create an 'Iterator' which can be released early.
iterOpen' :: MonadResource m => DB -> ReadOptions -> m (ReleaseKey, Iterator)
iterOpen' db opts = allocate (Base.createIter db opts) Base.releaseIter
-
--- | An iterator is either positioned at a key/value pair, or not valid. This
--- function returns /true/ iff the iterator is valid.
-iterValid :: MonadResource m => Iterator -> m Bool
-iterValid = Base.iterValid
-
--- | Position at the first key in the source that is at or past target. The
--- iterator is /valid/ after this call iff the source contains an entry that
--- comes at or past target.
-iterSeek :: MonadResource m => Iterator -> ByteString -> m ()
-iterSeek = Base.iterSeek
-
--- | Position at the first key in the source. The iterator is /valid/ after
this
--- call iff the source is not empty.
-iterFirst :: MonadResource m => Iterator -> m ()
-iterFirst = Base.iterFirst
-
--- | Position at the last key in the source. The iterator is /valid/ after this
--- call iff the source is not empty.
-iterLast :: MonadResource m => Iterator -> m ()
-iterLast = Base.iterLast
-
--- | Moves to the next entry in the source. After this call, 'iterValid' is
--- /true/ iff the iterator was not positioned at the last entry in the source.
---
--- If the iterator is not valid, this function does nothing. Note that this is
a
--- shortcoming of the C API: an 'iterPrev' might still be possible, but we
can't
--- determine if we're at the last or first entry.
-iterNext :: MonadResource m => Iterator -> m ()
-iterNext = Base.iterNext
-
--- | Moves to the previous entry in the source. After this call, 'iterValid' is
--- /true/ iff the iterator was not positioned at the first entry in the source.
---
--- If the iterator is not valid, this function does nothing. Note that this is
a
--- shortcoming of the C API: an 'iterNext' might still be possible, but we
can't
--- determine if we're at the last or first entry.
-iterPrev :: MonadResource m => Iterator -> m ()
-iterPrev = Base.iterPrev
-
--- | Return the key for the current entry if the iterator is currently
--- positioned at an entry, ie. 'iterValid'.
-iterKey :: MonadResource m => Iterator -> m (Maybe ByteString)
-iterKey = Base.iterKey
-
--- | Return the value for the current entry if the iterator is currently
--- positioned at an entry, ie. 'iterValid'.
-iterValue :: MonadResource m => Iterator -> m (Maybe ByteString)
-iterValue = Base.iterValue
-
--- | Check for errors
---
--- Note that this captures somewhat severe errors such as a corrupted database.
-iterGetError :: MonadResource m => Iterator -> m (Maybe ByteString)
-iterGetError = Base.iterGetError
-
-
--- | Return the runtime version of the underlying LevelDB library as a (major,
--- minor) pair.
-version :: MonadResource m => m (Int, Int)
-version = Base.version
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/leveldb-haskell-0.6.4/src/Database/LevelDB/Types.hs
new/leveldb-haskell-0.6.5/src/Database/LevelDB/Types.hs
--- old/leveldb-haskell-0.6.4/src/Database/LevelDB/Types.hs 2015-09-13
23:33:34.000000000 +0200
+++ new/leveldb-haskell-0.6.5/src/Database/LevelDB/Types.hs 2017-05-08
22:41:36.000000000 +0200
@@ -179,7 +179,7 @@
data ReadOptions = ReadOptions
{ verifyCheckSums :: !Bool
-- ^ If true, all data read from underlying storage will be verified
- -- against corresponding checksuyms.
+ -- against corresponding checksums.
--
-- Default: False
, fillCache :: !Bool