commit ghc-streaming-commons for openSUSE:Factory

2020-08-28 Thread root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2020-08-28 21:38:33

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


Package is "ghc-streaming-commons"

Fri Aug 28 21:38:33 2020 rev:22 rq:829428 version:0.2.2.1

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
2020-08-10 14:55:58.799936561 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new.3399/ghc-streaming-commons.changes
2020-08-28 21:38:33.512814208 +0200
@@ -1,0 +2,5 @@
+Tue Aug 18 10:46:06 UTC 2020 - Peter Simons 
+
+- Replace %setup -q with the more modern %autosetup macro.
+
+---



Other differences:
--
++ ghc-streaming-commons.spec ++
--- /var/tmp/diff_new_pack.yDZPu6/_old  2020-08-28 21:38:35.228815021 +0200
+++ /var/tmp/diff_new_pack.yDZPu6/_new  2020-08-28 21:38:35.232815023 +0200
@@ -61,7 +61,7 @@
 files.
 
 %prep
-%setup -q -n %{pkg_name}-%{version}
+%autosetup -n %{pkg_name}-%{version}
 
 %build
 %ghc_lib_build




commit ghc-streaming-commons for openSUSE:Factory

2020-08-10 Thread root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2020-08-10 14:55:44

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


Package is "ghc-streaming-commons"

Mon Aug 10 14:55:44 2020 rev:21 rq:824315 version:0.2.2.1

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
2020-06-19 17:18:49.363123126 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new.3399/ghc-streaming-commons.changes
2020-08-10 14:55:58.799936561 +0200
@@ -1,0 +2,16 @@
+Tue Jul 21 08:27:35 UTC 2020 - psim...@suse.com
+
+- Update streaming-commons to version 0.2.2.1.
+  ## 0.2.2.1
+
+  * Fix test suite compilation issue 
[stackage#5528](https://github.com/commercialhaskell/stackage/issues/5528)
+
+---
+Mon Jul 20 02:00:58 UTC 2020 - psim...@suse.com
+
+- Update streaming-commons to version 0.2.2.0.
+  ## 0.2.2.0
+
+  * Remove `AI_ADDRCONFIG` 
[#58](https://github.com/fpco/streaming-commons/issues/58)
+
+---

Old:

  streaming-commons-0.2.1.2.tar.gz

New:

  streaming-commons-0.2.2.1.tar.gz



Other differences:
--
++ ghc-streaming-commons.spec ++
--- /var/tmp/diff_new_pack.XxHnDb/_old  2020-08-10 14:56:00.727937579 +0200
+++ /var/tmp/diff_new_pack.XxHnDb/_new  2020-08-10 14:56:00.731937581 +0200
@@ -19,7 +19,7 @@
 %global pkg_name streaming-commons
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.2.1.2
+Version:0.2.2.1
 Release:0
 Summary:Common lower-level functions needed by various streaming data 
libraries
 License:MIT

++ streaming-commons-0.2.1.2.tar.gz -> streaming-commons-0.2.2.1.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.2.1.2/ChangeLog.md 
new/streaming-commons-0.2.2.1/ChangeLog.md
--- old/streaming-commons-0.2.1.2/ChangeLog.md  2020-01-05 13:26:59.0 
+0100
+++ new/streaming-commons-0.2.2.1/ChangeLog.md  2020-07-19 18:22:26.0 
+0200
@@ -1,5 +1,13 @@
 # ChangeLog for streaming-commons
 
+## 0.2.2.1
+
+* Fix test suite compilation issue 
[stackage#5528](https://github.com/commercialhaskell/stackage/issues/5528)
+
+## 0.2.2.0
+
+* Remove `AI_ADDRCONFIG` 
[#58](https://github.com/fpco/streaming-commons/issues/58)
+
 ## 0.2.1.2
 
 * Update `defaultReadBufferSize` to use system default instead of hardcoded 
value [#54](https://github.com/fpco/streaming-commons/issues/54)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.2.1.2/Data/Streaming/Network.hs 
new/streaming-commons-0.2.2.1/Data/Streaming/Network.hs
--- old/streaming-commons-0.2.1.2/Data/Streaming/Network.hs 2020-01-05 
13:26:59.0 +0100
+++ new/streaming-commons-0.2.2.1/Data/Streaming/Network.hs 2020-07-19 
14:52:10.0 +0200
@@ -120,8 +120,7 @@
 NS.getAddrInfo (Just hints) (Just host') (Just $ show port')
   where
 hints = NS.defaultHints {
-NS.addrFlags = [NS.AI_ADDRCONFIG]
-  , NS.addrSocketType = sockettype
+NS.addrSocketType = sockettype
   , NS.addrFamily = af
   }
 
@@ -157,9 +156,7 @@
 bindPortGenEx :: [(NS.SocketOption, Int)] -> SocketType -> Int -> 
HostPreference -> IO Socket
 bindPortGenEx sockOpts sockettype p s = do
 let hints = NS.defaultHints
-{ NS.addrFlags = [ NS.AI_PASSIVE
- , NS.AI_ADDRCONFIG
- ]
+{ NS.addrFlags = [NS.AI_PASSIVE]
 , NS.addrSocketType = sockettype
 }
 host =
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.2.1.2/Data/Streaming/Process.hs 
new/streaming-commons-0.2.2.1/Data/Streaming/Process.hs
--- old/streaming-commons-0.2.1.2/Data/Streaming/Process.hs 2018-01-31 
16:13:35.0 +0100
+++ new/streaming-commons-0.2.2.1/Data/Streaming/Process.hs 2020-07-19 
14:43:33.0 +0200
@@ -79,6 +79,9 @@
 
 -- | Close the stream with the child process.
 --
+-- You usually do not want to use this, as it will leave the corresponding file
+-- descriptor unassigned and hence available for re-use in the child process.
+--
 -- Since 0.1.4
 data ClosedStream = ClosedStream
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.2.1.2/streaming-commons.cabal 

commit ghc-streaming-commons for openSUSE:Factory

2020-06-19 Thread root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2020-06-19 17:18:44

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


Package is "ghc-streaming-commons"

Fri Jun 19 17:18:44 2020 rev:20 rq:815181 version:0.2.1.2

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
2020-01-29 13:14:07.602039351 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new.3606/ghc-streaming-commons.changes
2020-06-19 17:18:49.363123126 +0200
@@ -1,0 +2,5 @@
+Tue Jun 16 11:14:37 UTC 2020 - Peter Simons 
+
+- Re-generate file with latest version of spec-cleaner.
+
+---



Other differences:
--
++ ghc-streaming-commons.spec ++
--- /var/tmp/diff_new_pack.dScesQ/_old  2020-06-19 17:18:50.091125039 +0200
+++ /var/tmp/diff_new_pack.dScesQ/_new  2020-06-19 17:18:50.091125039 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-streaming-commons
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed




commit ghc-streaming-commons for openSUSE:Factory

2020-01-29 Thread root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2020-01-29 13:13:17

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


Package is "ghc-streaming-commons"

Wed Jan 29 13:13:17 2020 rev:19 rq:766989 version:0.2.1.2

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
2019-12-27 13:57:53.380789382 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new.26092/ghc-streaming-commons.changes
   2020-01-29 13:14:07.602039351 +0100
@@ -1,0 +2,8 @@
+Mon Jan  6 09:54:59 UTC 2020 - psim...@suse.com
+
+- Update streaming-commons to version 0.2.1.2.
+  ## 0.2.1.2
+
+  * Update `defaultReadBufferSize` to use system default instead of hardcoded 
value [#54](https://github.com/fpco/streaming-commons/issues/54)
+
+---

Old:

  streaming-commons-0.2.1.1.tar.gz

New:

  streaming-commons-0.2.1.2.tar.gz



Other differences:
--
++ ghc-streaming-commons.spec ++
--- /var/tmp/diff_new_pack.JnWBMq/_old  2020-01-29 13:14:14.686042973 +0100
+++ /var/tmp/diff_new_pack.JnWBMq/_new  2020-01-29 13:14:14.690042975 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-streaming-commons
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 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,7 +19,7 @@
 %global pkg_name streaming-commons
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.2.1.1
+Version:0.2.1.2
 Release:0
 Summary:Common lower-level functions needed by various streaming data 
libraries
 License:MIT

++ streaming-commons-0.2.1.1.tar.gz -> streaming-commons-0.2.1.2.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.2.1.1/ChangeLog.md 
new/streaming-commons-0.2.1.2/ChangeLog.md
--- old/streaming-commons-0.2.1.1/ChangeLog.md  2019-06-05 14:57:19.0 
+0200
+++ new/streaming-commons-0.2.1.2/ChangeLog.md  2020-01-05 13:26:59.0 
+0100
@@ -1,5 +1,9 @@
 # ChangeLog for streaming-commons
 
+## 0.2.1.2
+
+* Update `defaultReadBufferSize` to use system default instead of hardcoded 
value [#54](https://github.com/fpco/streaming-commons/issues/54)
+
 ## 0.2.1.1
 
 * Fix a failing test case (invalid `ByteString` copying), does not affect 
library itself
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.2.1.1/Data/Streaming/Network.hs 
new/streaming-commons-0.2.1.2/Data/Streaming/Network.hs
--- old/streaming-commons-0.2.1.1/Data/Streaming/Network.hs 2018-06-28 
18:01:46.0 +0200
+++ new/streaming-commons-0.2.1.2/Data/Streaming/Network.hs 2020-01-05 
13:26:59.0 +0100
@@ -94,7 +94,7 @@
 import qualified Network.Socket as NS
 import Data.Streaming.Network.Internal
 import Control.Concurrent (threadDelay)
-import Control.Exception (IOException, try, SomeException, throwIO, 
bracketOnError)
+import Control.Exception (IOException, try, SomeException, throwIO, 
bracketOnError, bracket)
 import Network.Socket (Socket, AddrInfo, SocketType)
 import Network.Socket.ByteString (recv, sendAll)
 import System.IO.Error (isDoesNotExistError)
@@ -108,7 +108,7 @@
 import Control.Monad (forever)
 import Data.IORef (IORef, newIORef, atomicModifyIORef)
 import Data.Array.Unboxed ((!), UArray, listArray)
-import System.IO.Unsafe (unsafePerformIO)
+import System.IO.Unsafe (unsafePerformIO, unsafeDupablePerformIO)
 import System.Random (randomRIO)
 import System.IO.Error (isFullErrorType, ioeGetErrorType)
 #if WINDOWS
@@ -263,8 +263,10 @@
 bindRandomPortUDP :: HostPreference -> IO (Int, Socket)
 bindRandomPortUDP = bindRandomPortGen NS.Datagram
 
+{-# NOINLINE defaultReadBufferSize #-}
 defaultReadBufferSize :: Int
-defaultReadBufferSize = 32768
+defaultReadBufferSize = unsafeDupablePerformIO $
+  bracket (NS.socket NS.AF_INET NS.Stream 0) NS.close (\sock -> 
NS.getSocketOption sock NS.RecvBuffer)
 
 #if !WINDOWS
 -- | Attempt to connect to the given Unix domain socket path.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.2.1.1/README.md 
new/streaming-commons-0.2.1.2/README.md
--- old/streaming-commons-0.2.1.1/README.md 2018-01-31 16:13:39.0 
+0100
+++ new/streaming-commons-0.2.1.2/README.md 2020-01-05 07:08:47.0 
+0100
@@ -4,8 +4,7 @@
 

commit ghc-streaming-commons for openSUSE:Factory

2019-12-27 Thread root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2019-12-27 13:57:49

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


Package is "ghc-streaming-commons"

Fri Dec 27 13:57:49 2019 rev:18 rq:759518 version:0.2.1.1

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
2019-06-12 13:18:45.980566258 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new.6675/ghc-streaming-commons.changes
2019-12-27 13:57:53.380789382 +0100
@@ -1,0 +2,5 @@
+Fri Nov  8 16:14:51 UTC 2019 - Peter Simons 
+
+- Drop obsolete group attributes.
+
+---



Other differences:
--
++ ghc-streaming-commons.spec ++
--- /var/tmp/diff_new_pack.4qjecV/_old  2019-12-27 13:57:53.856789611 +0100
+++ /var/tmp/diff_new_pack.4qjecV/_new  2019-12-27 13:57:53.860789613 +0100
@@ -23,7 +23,6 @@
 Release:0
 Summary:Common lower-level functions needed by various streaming data 
libraries
 License:MIT
-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
@@ -52,7 +51,6 @@
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
-Group:  Development/Libraries/Haskell
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}




commit ghc-streaming-commons for openSUSE:Factory

2019-06-12 Thread root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2019-06-12 13:18:45

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


Package is "ghc-streaming-commons"

Wed Jun 12 13:18:45 2019 rev:17 rq:709203 version:0.2.1.1

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
2018-10-25 09:05:14.926544737 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new.4811/ghc-streaming-commons.changes
2019-06-12 13:18:45.980566258 +0200
@@ -1,0 +2,10 @@
+Thu Jun  6 02:01:25 UTC 2019 - psim...@suse.com
+
+- Update streaming-commons to version 0.2.1.1.
+  # ChangeLog for streaming-commons
+
+  ## 0.2.1.1
+
+  * Fix a failing test case (invalid `ByteString` copying), does not affect 
library itself
+
+---

Old:

  streaming-commons-0.2.1.0.tar.gz

New:

  streaming-commons-0.2.1.1.tar.gz



Other differences:
--
++ ghc-streaming-commons.spec ++
--- /var/tmp/diff_new_pack.G1P6ui/_old  2019-06-12 13:18:46.560565993 +0200
+++ /var/tmp/diff_new_pack.G1P6ui/_new  2019-06-12 13:18:46.564565991 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-streaming-commons
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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,7 +19,7 @@
 %global pkg_name streaming-commons
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.2.1.0
+Version:0.2.1.1
 Release:0
 Summary:Common lower-level functions needed by various streaming data 
libraries
 License:MIT

++ streaming-commons-0.2.1.0.tar.gz -> streaming-commons-0.2.1.1.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.2.1.0/ChangeLog.md 
new/streaming-commons-0.2.1.1/ChangeLog.md
--- old/streaming-commons-0.2.1.0/ChangeLog.md  2018-06-27 09:12:16.0 
+0200
+++ new/streaming-commons-0.2.1.1/ChangeLog.md  2019-06-05 14:57:19.0 
+0200
@@ -1,3 +1,9 @@
+# ChangeLog for streaming-commons
+
+## 0.2.1.1
+
+* Fix a failing test case (invalid `ByteString` copying), does not affect 
library itself
+
 ## 0.2.1.0
 
 * Change `bindRandomPortGen` to use binding to port 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.2.1.0/Data/Streaming/Network.hs 
new/streaming-commons-0.2.1.1/Data/Streaming/Network.hs
--- old/streaming-commons-0.2.1.0/Data/Streaming/Network.hs 2018-06-27 
09:10:50.0 +0200
+++ new/streaming-commons-0.2.1.1/Data/Streaming/Network.hs 2018-06-28 
18:01:46.0 +0200
@@ -200,9 +200,6 @@
 
 -- | Bind to a random port number. Especially useful for writing network tests.
 --
--- This will attempt 30 different port numbers before giving up and throwing an
--- exception.
---
 -- Since 0.1.1
 bindRandomPortGen :: SocketType -> HostPreference -> IO (Int, Socket)
 bindRandomPortGen sockettype s = do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.2.1.0/cbits/text-helper.c 
new/streaming-commons-0.2.1.1/cbits/text-helper.c
--- old/streaming-commons-0.2.1.0/cbits/text-helper.c   2015-11-24 
11:15:28.0 +0100
+++ new/streaming-commons-0.2.1.1/cbits/text-helper.c   2019-06-05 
14:56:43.0 +0200
@@ -14,13 +14,17 @@
 void _hs_streaming_commons_memcpy(void *dest, size_t doff, const void *src, 
size_t soff,
 size_t n)
 {
-  memcpy(dest + (doff<<1), src + (soff<<1), n<<1);
+  char *cdest = dest;
+  const char *csrc = src;
+  memcpy(cdest + (doff<<1), csrc + (soff<<1), n<<1);
 }
 
 int _hs_streaming_commons_memcmp(const void *a, size_t aoff, const void *b, 
size_t boff,
size_t n)
 {
-  return memcmp(a + (aoff<<1), b + (boff<<1), n<<1);
+  const char *ca = a;
+  const char *cb = b;
+  return memcmp(ca + (aoff<<1), cb + (boff<<1), n<<1);
 }
 
 #define UTF8_ACCEPT 0
@@ -68,8 +72,8 @@
  * an UTF16 array
  */
 void
-_hs_streaming_commons_decode_latin1(uint16_t *dest, const uint8_t const *src,
-   const uint8_t const *srcend)
+_hs_streaming_commons_decode_latin1(uint16_t *dest, const uint8_t *src,
+   const uint8_t *srcend)
 {
   const uint8_t *p = src;
 
@@ -130,14 +134,14 @@
 #if defined(__GNUC__) || defined(__clang__)
 static inline uint8_t const *
 

commit ghc-streaming-commons for openSUSE:Factory

2018-10-25 Thread root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2018-10-25 09:05:12

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


Package is "ghc-streaming-commons"

Thu Oct 25 09:05:12 2018 rev:16 rq:643464 version:0.2.1.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
2018-07-24 17:22:14.751289261 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new/ghc-streaming-commons.changes
 2018-10-25 09:05:14.926544737 +0200
@@ -1,0 +2,5 @@
+Sat Oct 20 11:32:03 UTC 2018 - Peter Simons 
+
+- Use https URL to refer to bugs.opensuse.org.
+
+---



Other differences:
--
++ ghc-streaming-commons.spec ++
--- /var/tmp/diff_new_pack.FiryrE/_old  2018-10-25 09:05:15.41050 +0200
+++ /var/tmp/diff_new_pack.FiryrE/_new  2018-10-25 09:05:15.414544437 +0200
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 




commit ghc-streaming-commons for openSUSE:Factory

2018-07-24 Thread root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2018-07-24 17:22:11

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


Package is "ghc-streaming-commons"

Tue Jul 24 17:22:11 2018 rev:15 rq:623862 version:0.2.1.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
2018-05-30 12:27:22.698128637 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new/ghc-streaming-commons.changes
 2018-07-24 17:22:14.751289261 +0200
@@ -1,0 +2,14 @@
+Wed Jul 18 14:26:42 UTC 2018 - psim...@suse.com
+
+- Cosmetic: replace tabs with blanks, strip trailing white space,
+  and update copyright headers with spec-cleaner.
+
+---
+Fri Jul 13 14:31:59 UTC 2018 - psim...@suse.com
+
+- Update streaming-commons to version 0.2.1.0.
+  ## 0.2.1.0
+
+  * Change `bindRandomPortGen` to use binding to port 0
+
+---
@@ -87 +100,0 @@
-

Old:

  streaming-commons-0.2.0.0.tar.gz

New:

  streaming-commons-0.2.1.0.tar.gz



Other differences:
--
++ ghc-streaming-commons.spec ++
--- /var/tmp/diff_new_pack.AlFiPt/_old  2018-07-24 17:22:15.275289932 +0200
+++ /var/tmp/diff_new_pack.AlFiPt/_new  2018-07-24 17:22:15.275289932 +0200
@@ -19,7 +19,7 @@
 %global pkg_name streaming-commons
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.2.0.0
+Version:0.2.1.0
 Release:0
 Summary:Common lower-level functions needed by various streaming data 
libraries
 License:MIT

++ streaming-commons-0.2.0.0.tar.gz -> streaming-commons-0.2.1.0.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.2.0.0/ChangeLog.md 
new/streaming-commons-0.2.1.0/ChangeLog.md
--- old/streaming-commons-0.2.0.0/ChangeLog.md  2018-03-02 14:23:34.0 
+0100
+++ new/streaming-commons-0.2.1.0/ChangeLog.md  2018-06-27 09:12:16.0 
+0200
@@ -1,3 +1,7 @@
+## 0.2.1.0
+
+* Change `bindRandomPortGen` to use binding to port 0
+
 ## 0.2.0
 
 * Drop `blaze-builder` dependency
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.2.0.0/Data/Streaming/Network.hs 
new/streaming-commons-0.2.1.0/Data/Streaming/Network.hs
--- old/streaming-commons-0.2.0.0/Data/Streaming/Network.hs 2018-02-18 
17:52:03.0 +0100
+++ new/streaming-commons-0.2.1.0/Data/Streaming/Network.hs 2018-06-27 
09:10:50.0 +0200
@@ -205,24 +205,10 @@
 --
 -- Since 0.1.1
 bindRandomPortGen :: SocketType -> HostPreference -> IO (Int, Socket)
-bindRandomPortGen sockettype s =
-loop (30 :: Int)
-  where
-loop cnt = do
-port <- getUnassignedPort
-esocket <- try $ bindPortGen sockettype port s
-case esocket :: Either IOException Socket of
-Left e
-| cnt <= 1 -> error $ concat
-[ "Data.Streaming.Network.bindRandomPortGen: Could not get 
port. Last attempted: "
-, show port
-, ". Exception was: "
-, show e
-]
-| otherwise -> do
-skipUnassigned 50
-loop $! cnt - 1
-Right socket -> return (port, socket)
+bindRandomPortGen sockettype s = do
+  socket <- bindPortGen sockettype 0 s
+  port <- NS.socketPort socket
+  return (fromIntegral port, socket)
 
 -- | Top 10 Largest IANA unassigned port ranges with no unauthorized uses known
 unassignedPortsList :: [Int]
@@ -263,14 +249,6 @@
 | i > unassignedPortsMax = (succ unassignedPortsMin, unassignedPorts ! 
unassignedPortsMin)
 | otherwise = (succ i, unassignedPorts ! i)
 
--- | Skip ahead in the unassigned ports list by the given number
-skipUnassigned :: Int -> IO ()
-skipUnassigned i = do
-!() <- atomicModifyIORef nextUnusedPort $ \j ->
-let k = i + j `mod` unassignedPortsMax
- in k `seq` (k, ())
-return ()
-
 -- | Attempt to connect to the given host/port.
 getSocketUDP :: String -> Int -> IO (Socket, AddrInfo)
 getSocketUDP = getSocketGen NS.Datagram
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.2.0.0/streaming-commons.cabal 
new/streaming-commons-0.2.1.0/streaming-commons.cabal
--- old/streaming-commons-0.2.0.0/streaming-commons.cabal   2018-03-02 
14:23:34.0 +0100
+++ new/streaming-commons-0.2.1.0/streaming-commons.cabal   2018-06-27 

commit ghc-streaming-commons for openSUSE:Factory

2018-05-30 Thread root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2018-05-30 12:14:13

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


Package is "ghc-streaming-commons"

Wed May 30 12:14:13 2018 rev:14 rq:607893 version:0.2.0.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
2017-09-15 22:14:54.898050434 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new/ghc-streaming-commons.changes
 2018-05-30 12:27:22.698128637 +0200
@@ -1,0 +2,8 @@
+Mon May 14 17:02:11 UTC 2018 - psim...@suse.com
+
+- Update streaming-commons to version 0.2.0.0.
+  * Drop `blaze-builder` dependency
+  * Update `getAddrInfo` hints to allow hostnames and portnames 
[#46](https://github.com/fpco/streaming-commons/issues/46)
+  * Add `isCompleteInflate`
+
+---

Old:

  streaming-commons-0.1.17.tar.gz

New:

  streaming-commons-0.2.0.0.tar.gz



Other differences:
--
++ ghc-streaming-commons.spec ++
--- /var/tmp/diff_new_pack.caj8va/_old  2018-05-30 12:27:24.270073973 +0200
+++ /var/tmp/diff_new_pack.caj8va/_new  2018-05-30 12:27:24.274073833 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-streaming-commons
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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,7 +19,7 @@
 %global pkg_name streaming-commons
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.1.17
+Version:0.2.0.0
 Release:0
 Summary:Common lower-level functions needed by various streaming data 
libraries
 License:MIT
@@ -29,7 +29,6 @@
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-array-devel
 BuildRequires:  ghc-async-devel
-BuildRequires:  ghc-blaze-builder-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-directory-devel
 BuildRequires:  ghc-network-devel
@@ -82,7 +81,7 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%doc LICENSE
+%license LICENSE
 
 %files devel -f %{name}-devel.files
 %doc ChangeLog.md README.md

++ streaming-commons-0.1.17.tar.gz -> streaming-commons-0.2.0.0.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.17/ChangeLog.md 
new/streaming-commons-0.2.0.0/ChangeLog.md
--- old/streaming-commons-0.1.17/ChangeLog.md   2017-01-23 15:00:32.0 
+0100
+++ new/streaming-commons-0.2.0.0/ChangeLog.md  2018-03-02 14:23:34.0 
+0100
@@ -1,3 +1,15 @@
+## 0.2.0
+
+* Drop `blaze-builder` dependency
+
+## 0.1.19
+
+* Update `getAddrInfo` hints to allow hostnames and portnames 
[#46](https://github.com/fpco/streaming-commons/issues/46)
+
+## 0.1.18
+
+* Add `isCompleteInflate`
+
 ## 0.1.17
 
 * Add `bindPortGenEx`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.17/Data/Streaming/Blaze.hs 
new/streaming-commons-0.2.0.0/Data/Streaming/Blaze.hs
--- old/streaming-commons-0.1.17/Data/Streaming/Blaze.hs2017-01-23 
15:00:32.0 +0100
+++ new/streaming-commons-0.2.0.0/Data/Streaming/Blaze.hs   1970-01-01 
01:00:00.0 +0100
@@ -1,150 +0,0 @@
-{-# LANGUAGE CPP #-}
-{-# LANGUAGE FlexibleContexts #-}
-{-# LANGUAGE BangPatterns #-}
-{-# LANGUAGE RankNTypes #-}
--- | Convert a stream of blaze-builder @Builder@s into a stream of 
@ByteString@s.
---
--- Adapted from blaze-builder-enumerator, written by myself and Simon Meier.
---
--- Note: if you have blaze-builder >= 0.4, 'newBlazeRecv' just calls
--- 'Data.Streaming.ByteString.Builder.newByteStringBuilderRecv'
-
--- Note that the functions here can work in any monad built on top of @IO@ or
--- @ST@.
-module Data.Streaming.Blaze
-( BlazeRecv
-, BlazePopper
-, BlazeFinish
-, newBlazeRecv
-
-  -- * Buffers
-  , Buffer
-
-  -- ** Status information
-  , freeSize
-  , sliceSize
-  , bufferSize
-
-  -- ** Creation and modification
-  , allocBuffer
-  , reuseBuffer
-  , nextSlice
-
-  -- ** Conversion to bytestings
-  , unsafeFreezeBuffer
-  , unsafeFreezeNonEmptyBuffer
-
-  -- * Buffer allocation strategies
-  , BufferAllocStrategy
-  , allNewBuffersStrategy
-  , reuseBufferStrategy
-  , defaultStrategy
-) where
-
-import Blaze.ByteString.Builder
-import qualified Data.ByteString as S
-
-#if MIN_VERSION_blaze_builder(0,4,0)
-
-import Data.Streaming.ByteString.Builder
-
-newBlazeRecv :: BufferAllocStrategy -> IO 

commit ghc-streaming-commons for openSUSE:Factory

2017-09-15 Thread root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2017-09-15 22:14:53

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


Package is "ghc-streaming-commons"

Fri Sep 15 22:14:53 2017 rev:13 rq:525440 version:0.1.17

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
2017-04-11 12:44:16.686097392 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new/ghc-streaming-commons.changes
 2017-09-15 22:14:54.898050434 +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-streaming-commons.spec ++
--- /var/tmp/diff_new_pack.PPJgu5/_old  2017-09-15 22:14:55.697937754 +0200
+++ /var/tmp/diff_new_pack.PPJgu5/_new  2017-09-15 22:14:55.697937754 +0200
@@ -23,8 +23,8 @@
 Release:0
 Summary:Common lower-level functions needed by various streaming data 
libraries
 License:MIT
-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-array-devel
@@ -41,7 +41,6 @@
 BuildRequires:  ghc-transformers-devel
 BuildRequires:  ghc-unix-devel
 BuildRequires:  ghc-zlib-devel
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
 BuildRequires:  ghc-deepseq-devel
@@ -54,7 +53,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}
@@ -83,11 +82,9 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%defattr(-,root,root,-)
 %doc LICENSE
 
 %files devel -f %{name}-devel.files
-%defattr(-,root,root,-)
 %doc ChangeLog.md README.md
 
 %changelog




commit ghc-streaming-commons for openSUSE:Factory

2017-04-11 Thread root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2017-04-11 12:44:15

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


Package is "ghc-streaming-commons"

Tue Apr 11 12:44:15 2017 rev:12 rq:486384 version:0.1.17

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
2016-11-02 12:45:28.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new/ghc-streaming-commons.changes
 2017-04-11 12:44:16.686097392 +0200
@@ -1,0 +2,5 @@
+Thu Jan 26 16:20:11 UTC 2017 - psim...@suse.com
+
+- Update to version 0.1.17 with cabal2obs.
+
+---

Old:

  streaming-commons-0.1.16.tar.gz

New:

  streaming-commons-0.1.17.tar.gz



Other differences:
--
++ ghc-streaming-commons.spec ++
--- /var/tmp/diff_new_pack.ZaO1ht/_old  2017-04-11 12:44:18.065902437 +0200
+++ /var/tmp/diff_new_pack.ZaO1ht/_new  2017-04-11 12:44:18.069901872 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-streaming-commons
 #
-# 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,7 +19,7 @@
 %global pkg_name streaming-commons
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.1.16
+Version:0.1.17
 Release:0
 Summary:Common lower-level functions needed by various streaming data 
libraries
 License:MIT

++ streaming-commons-0.1.16.tar.gz -> streaming-commons-0.1.17.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.16/ChangeLog.md 
new/streaming-commons-0.1.17/ChangeLog.md
--- old/streaming-commons-0.1.16/ChangeLog.md   2016-09-19 14:35:53.0 
+0200
+++ new/streaming-commons-0.1.17/ChangeLog.md   2017-01-23 15:00:32.0 
+0100
@@ -1,3 +1,7 @@
+## 0.1.17
+
+* Add `bindPortGenEx`
+
 ## 0.1.16
 
 * Add `closeStreamingProcessHandle`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.16/Data/Streaming/Network.hs 
new/streaming-commons-0.1.17/Data/Streaming/Network.hs
--- old/streaming-commons-0.1.16/Data/Streaming/Network.hs  2016-09-19 
14:35:53.0 +0200
+++ new/streaming-commons-0.1.17/Data/Streaming/Network.hs  2017-01-23 
15:00:32.0 +0100
@@ -61,6 +61,7 @@
   -- * Functions
   -- ** General
 , bindPortGen
+, bindPortGenEx
 , bindRandomPortGen
 , getSocketGen
 , getSocketFamilyGen
@@ -138,10 +139,23 @@
 getSocketGen :: SocketType -> String -> Int -> IO (Socket, AddrInfo)
 getSocketGen sockettype host port = getSocketFamilyGen sockettype host port 
NS.AF_UNSPEC
 
+defaultSocketOptions :: SocketType -> [(NS.SocketOption, Int)]
+defaultSocketOptions sockettype =
+case sockettype of
+NS.Datagram -> [(NS.ReuseAddr,1)]
+_   -> [(NS.NoDelay,1), (NS.ReuseAddr,1)]
+
 -- | Attempt to bind a listening @Socket@ on the given host/port using given
 -- @SocketType@. If no host is given, will use the first address available.
 bindPortGen :: SocketType -> Int -> HostPreference -> IO Socket
-bindPortGen sockettype p s = do
+bindPortGen sockettype = bindPortGenEx (defaultSocketOptions sockettype) 
sockettype
+
+-- | Attempt to bind a listening @Socket@ on the given host/port using given
+-- socket options and @SocketType@. If no host is given, will use the first 
address available.
+--
+-- Since 0.1.17
+bindPortGenEx :: [(NS.SocketOption, Int)] -> SocketType -> Int -> 
HostPreference -> IO Socket
+bindPortGenEx sockOpts sockettype p s = do
 let hints = NS.defaultHints
 { NS.addrFlags = [ NS.AI_PASSIVE
  , NS.AI_NUMERICSERV
@@ -174,11 +188,6 @@
 tryAddrs (addr1:[]) = theBody addr1
 tryAddrs _  = error "bindPort: addrs is empty"
 
-sockOpts =
-case sockettype of
-NS.Datagram -> [(NS.ReuseAddr,1)]
-_   -> [(NS.NoDelay,1), (NS.ReuseAddr,1)]
-
 theBody addr =
   bracketOnError
   (NS.socket (NS.addrFamily addr) (NS.addrSocketType addr) 
(NS.addrProtocol addr))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.16/Data/Streaming/Process.hs 
new/streaming-commons-0.1.17/Data/Streaming/Process.hs
--- 

commit ghc-streaming-commons for openSUSE:Factory

2016-11-02 Thread h_root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2016-11-02 12:45:25

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


Package is "ghc-streaming-commons"

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
2016-07-27 16:10:59.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new/ghc-streaming-commons.changes
 2016-11-02 12:45:28.0 +0100
@@ -1,0 +2,5 @@
+Mon Sep 26 06:52:13 UTC 2016 - psim...@suse.com
+
+- Update to version 0.1.16 with cabal2obs.
+
+---

Old:

  streaming-commons-0.1.15.5.tar.gz

New:

  streaming-commons-0.1.16.tar.gz



Other differences:
--
++ ghc-streaming-commons.spec ++
--- /var/tmp/diff_new_pack.7Yr9oY/_old  2016-11-02 12:45:30.0 +0100
+++ /var/tmp/diff_new_pack.7Yr9oY/_new  2016-11-02 12:45:30.0 +0100
@@ -19,15 +19,14 @@
 %global pkg_name streaming-commons
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.1.15.5
+Version:0.1.16
 Release:0
 Summary:Common lower-level functions needed by various streaming data 
libraries
 License:MIT
-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-array-devel
 BuildRequires:  ghc-async-devel
 BuildRequires:  ghc-blaze-builder-devel
@@ -48,7 +47,6 @@
 BuildRequires:  ghc-deepseq-devel
 BuildRequires:  ghc-hspec-devel
 %endif
-# End cabal-rpm deps
 
 %description
 Provides low-dependency functionality commonly needed by various streaming data
@@ -69,20 +67,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

++ streaming-commons-0.1.15.5.tar.gz -> streaming-commons-0.1.16.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.15.5/ChangeLog.md 
new/streaming-commons-0.1.16/ChangeLog.md
--- old/streaming-commons-0.1.15.5/ChangeLog.md 2016-05-11 06:44:05.0 
+0200
+++ new/streaming-commons-0.1.16/ChangeLog.md   2016-09-19 14:35:53.0 
+0200
@@ -1,3 +1,7 @@
+## 0.1.16
+
+* Add `closeStreamingProcessHandle`
+
 ## 0.1.15.5
 
 * Make getSocket{Family}TCP try all addr candidates 
[#32](https://github.com/fpco/streaming-commons/pull/32)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.15.5/Data/Streaming/Network.hs 
new/streaming-commons-0.1.16/Data/Streaming/Network.hs
--- old/streaming-commons-0.1.15.5/Data/Streaming/Network.hs2016-05-11 
06:44:05.0 +0200
+++ new/streaming-commons-0.1.16/Data/Streaming/Network.hs  2016-09-19 
14:35:53.0 +0200
@@ -182,10 +182,10 @@
 theBody addr =
   bracketOnError
   (NS.socket (NS.addrFamily addr) (NS.addrSocketType addr) 
(NS.addrProtocol addr))
-  NS.sClose
+  NS.close
   (\sock -> do
   mapM_ (\(opt,v) -> NS.setSocketOption sock opt v) sockOpts
-  NS.bindSocket sock (NS.addrAddress addr)
+  NS.bind sock (NS.addrAddress addr)
   return sock
   )
 tryAddrs addrs'
@@ -290,7 +290,7 @@
 sock <- NS.socket NS.AF_UNIX NS.Stream 0
 ee <- try' $ NS.connect sock (NS.SockAddrUnix path)
 case ee of
-Left e -> NS.sClose sock >> throwIO e
+Left e -> NS.close sock >> throwIO e
 Right () -> return sock
   where
 try' :: IO a -> IO (Either SomeException a)
@@ -301,10 +301,10 @@
 bindPath path = do
   sock <- bracketOnError
 (NS.socket NS.AF_UNIX NS.Stream 0)
-NS.sClose
+NS.close
 (\sock -> do
 removeFileSafe path  -- Cannot bind if the socket file exists.
-NS.bindSocket sock (NS.SockAddrUnix path)
+NS.bind sock (NS.SockAddrUnix path)
 return sock)
   NS.listen sock (max 2048 NS.maxListenQueue)
   return sock
@@ -426,7 +426,7 @@
 NS.setSocketOption sock NS.NoDelay 1
 return sock
 
-connect addrInfo = E.bracketOnError (createSocket addrInfo) NS.sClose $ 
\sock -> do
+connect addrInfo = E.bracketOnError (createSocket addrInfo) NS.close 

commit ghc-streaming-commons for openSUSE:Factory

2016-07-27 Thread h_root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2016-07-27 16:10:58

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


Package is "ghc-streaming-commons"

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
2016-05-16 12:04:09.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new/ghc-streaming-commons.changes
 2016-07-27 16:10:59.0 +0200
@@ -1,0 +2,5 @@
+Sun Jul 10 17:00:04 UTC 2016 - psim...@suse.com
+
+- Update to version 0.1.15.5 revision 0 with cabal2obs.
+
+---



Other differences:
--
++ ghc-streaming-commons.spec ++
--- /var/tmp/diff_new_pack.AbhG2B/_old  2016-07-27 16:11:00.0 +0200
+++ /var/tmp/diff_new_pack.AbhG2B/_new  2016-07-27 16:11:00.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-streaming-commons
 #
-# 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 streaming-commons
-
 %bcond_with tests
-
-Name:   ghc-streaming-commons
+Name:   ghc-%{pkg_name}
 Version:0.1.15.5
 Release:0
 Summary:Common lower-level functions needed by various streaming data 
libraries
 License:MIT
 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-array-devel
 BuildRequires:  ghc-async-devel
@@ -42,14 +36,15 @@
 BuildRequires:  ghc-network-devel
 BuildRequires:  ghc-process-devel
 BuildRequires:  ghc-random-devel
+BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-stm-devel
 BuildRequires:  ghc-text-devel
 BuildRequires:  ghc-transformers-devel
 BuildRequires:  ghc-unix-devel
 BuildRequires:  ghc-zlib-devel
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
-BuildRequires:  ghc-async-devel
 BuildRequires:  ghc-deepseq-devel
 BuildRequires:  ghc-hspec-devel
 %endif
@@ -59,34 +54,36 @@
 Provides low-dependency functionality commonly needed by various streaming data
 libraries, such as conduit and pipes.
 
-
 %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
 
@@ -99,6 +96,6 @@
 
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
-%doc README.md
+%doc ChangeLog.md README.md
 
 %changelog




commit ghc-streaming-commons for openSUSE:Factory

2016-05-16 Thread h_root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2016-05-16 12:04:08

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


Package is "ghc-streaming-commons"

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
2016-04-30 23:30:37.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new/ghc-streaming-commons.changes
 2016-05-16 12:04:09.0 +0200
@@ -1,0 +2,6 @@
+Thu May 12 13:44:14 UTC 2016 - mimi...@gmail.com
+
+- update to 0.1.15.5
+* Make getSocket{Family}TCP try all addr candidates
+
+---

Old:

  streaming-commons-0.1.15.4.tar.gz

New:

  streaming-commons-0.1.15.5.tar.gz



Other differences:
--
++ ghc-streaming-commons.spec ++
--- /var/tmp/diff_new_pack.qRLnPM/_old  2016-05-16 12:04:10.0 +0200
+++ /var/tmp/diff_new_pack.qRLnPM/_new  2016-05-16 12:04:10.0 +0200
@@ -21,7 +21,7 @@
 %bcond_with tests
 
 Name:   ghc-streaming-commons
-Version:0.1.15.4
+Version:0.1.15.5
 Release:0
 Summary:Common lower-level functions needed by various streaming data 
libraries
 License:MIT

++ streaming-commons-0.1.15.4.tar.gz -> streaming-commons-0.1.15.5.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.15.4/ChangeLog.md 
new/streaming-commons-0.1.15.5/ChangeLog.md
--- old/streaming-commons-0.1.15.4/ChangeLog.md 2016-04-21 19:23:04.0 
+0200
+++ new/streaming-commons-0.1.15.5/ChangeLog.md 2016-05-11 06:44:05.0 
+0200
@@ -1,3 +1,7 @@
+## 0.1.15.5
+
+* Make getSocket{Family}TCP try all addr candidates 
[#32](https://github.com/fpco/streaming-commons/pull/32)
+
 ## 0.1.15.3
 
 * Fix benchmarks
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.15.4/Data/Streaming/Network.hs 
new/streaming-commons-0.1.15.5/Data/Streaming/Network.hs
--- old/streaming-commons-0.1.15.4/Data/Streaming/Network.hs2015-11-24 
11:17:22.0 +0100
+++ new/streaming-commons-0.1.15.5/Data/Streaming/Network.hs2016-05-11 
06:44:05.0 +0200
@@ -114,17 +114,22 @@
 import Control.Concurrent.MVar (putMVar, takeMVar, newEmptyMVar)
 #endif
 
+getPossibleAddrs :: SocketType -> String -> Int -> NS.Family -> IO [AddrInfo]
+getPossibleAddrs sockettype host' port' af =
+NS.getAddrInfo (Just hints) (Just host') (Just $ show port')
+  where
+hints = NS.defaultHints {
+NS.addrFlags = [NS.AI_ADDRCONFIG]
+  , NS.addrSocketType = sockettype
+  , NS.addrFamily = af
+  }
+
 -- | Attempt to connect to the given host/port/address family using given 
@SocketType@.
 --
 -- Since 0.1.3
 getSocketFamilyGen :: SocketType -> String -> Int -> NS.Family -> IO (Socket, 
AddrInfo)
 getSocketFamilyGen sockettype host' port' af = do
-let hints = NS.defaultHints {
-  NS.addrFlags = [NS.AI_ADDRCONFIG]
-, NS.addrSocketType = sockettype
-, NS.addrFamily = af
-}
-(addr:_) <- NS.getAddrInfo (Just hints) (Just host') (Just $ show port')
+(addr:_) <- getPossibleAddrs sockettype host' port' af
 sock <- NS.socket (NS.addrFamily addr) (NS.addrSocketType addr)
   (NS.addrProtocol addr)
 return (sock, addr)
@@ -408,15 +413,22 @@
 -- Since 0.1.3
 getSocketFamilyTCP :: ByteString -> Int -> NS.Family -> IO (NS.Socket, 
NS.SockAddr)
 getSocketFamilyTCP host' port' addrFamily = do
-(sock, addr) <- getSocketFamilyGen NS.Stream (S8.unpack host') port' 
addrFamily
-NS.setSocketOption sock NS.NoDelay 1
-ee <- try' $ NS.connect sock (NS.addrAddress addr)
-case ee of
-Left e -> NS.sClose sock >> throwIO e
-Right () -> return (sock, NS.addrAddress addr)
+addrsInfo <- getPossibleAddrs NS.Stream (S8.unpack host') port' addrFamily
+firstSuccess addrsInfo
   where
-try' :: IO a -> IO (Either SomeException a)
-try' = try
+firstSuccess [ai] = connect ai
+firstSuccess (ai:ais) = connect ai `E.catch` \(_ :: IOException) -> 
firstSuccess ais
+firstSuccess _= error "getSocketFamilyTCP: can't happen"
+
+createSocket addrInfo = do
+sock <- NS.socket (NS.addrFamily addrInfo) (NS.addrSocketType addrInfo)
+  (NS.addrProtocol addrInfo)
+NS.setSocketOption sock NS.NoDelay 1
+return sock
+
+connect addrInfo = E.bracketOnError 

commit ghc-streaming-commons for openSUSE:Factory

2016-04-30 Thread h_root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2016-04-30 23:30:35

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


Package is "ghc-streaming-commons"

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
2016-03-16 10:33:44.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new/ghc-streaming-commons.changes
 2016-04-30 23:30:37.0 +0200
@@ -1,0 +2,6 @@
+Tue Apr 26 08:51:19 UTC 2016 - mimi...@gmail.com
+
+- update to 0.1.15.4
+* Fix benchmarks
+
+---
@@ -4 +10 @@
-- update to 0.1.15.1
+- update to 0.1.15.2

Old:

  streaming-commons-0.1.15.2.tar.gz

New:

  streaming-commons-0.1.15.4.tar.gz



Other differences:
--
++ ghc-streaming-commons.spec ++
--- /var/tmp/diff_new_pack.AG6YSR/_old  2016-04-30 23:30:37.0 +0200
+++ /var/tmp/diff_new_pack.AG6YSR/_new  2016-04-30 23:30:37.0 +0200
@@ -21,7 +21,7 @@
 %bcond_with tests
 
 Name:   ghc-streaming-commons
-Version:0.1.15.2
+Version:0.1.15.4
 Release:0
 Summary:Common lower-level functions needed by various streaming data 
libraries
 License:MIT

++ streaming-commons-0.1.15.2.tar.gz -> streaming-commons-0.1.15.4.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.15.2/ChangeLog.md 
new/streaming-commons-0.1.15.4/ChangeLog.md
--- old/streaming-commons-0.1.15.2/ChangeLog.md 2016-03-03 10:57:56.0 
+0100
+++ new/streaming-commons-0.1.15.4/ChangeLog.md 2016-04-21 19:23:04.0 
+0200
@@ -1,3 +1,7 @@
+## 0.1.15.3
+
+* Fix benchmarks
+
 ## 0.1.15.2
 
 * Document child process behavior in `waitForProcess`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/streaming-commons-0.1.15.2/Data/Streaming/Network/Internal.hs 
new/streaming-commons-0.1.15.4/Data/Streaming/Network/Internal.hs
--- old/streaming-commons-0.1.15.2/Data/Streaming/Network/Internal.hs   
2016-03-03 10:57:56.0 +0100
+++ new/streaming-commons-0.1.15.4/Data/Streaming/Network/Internal.hs   
2016-04-24 15:29:11.0 +0200
@@ -39,17 +39,22 @@
 --
 -- Note: The @IsString@ instance recognizes the following special values:
 --
--- * @*@ means @HostAny@
+-- * @*@ means @HostAny@ - "any IPv4 or IPv6 hostname"
 --
--- * @*4@ means @HostIPv4@
+-- * @*4@ means @HostIPv4@ - "any IPv4 or IPv6 hostname, IPv4 preferred"
 --
--- * @!4@ means @HostIPv4Only@
+-- * @!4@ means @HostIPv4Only@ - "any IPv4 hostname"
 --
--- * @*6@ means @HostIPv6@
+-- * @*6@ means @HostIPv6@@ - "any IPv4 or IPv6 hostname, IPv6 preferred"
 --
--- * @!6@ means @HostIPv6Only@
+-- * @!6@ means @HostIPv6Only@ - "any IPv6 hostname"
 --
--- Any other values is treated as a hostname. As an example, to bind to the
+-- Note that the permissive @*@ values allow binding to an IPv4 or an
+-- IPv6 hostname, which means you might be able to successfully bind
+-- to a port more times than you expect (eg once on the IPv4 localhost
+-- 127.0.0.1 and again on the IPv6 localhost 0:0:0:0:0:0:0:1).
+--
+-- Any other value is treated as a hostname. As an example, to bind to the
 -- IPv4 local host only, use \"127.0.0.1\".
 data HostPreference =
 HostAny
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.15.2/bench/count-chars.hs 
new/streaming-commons-0.1.15.4/bench/count-chars.hs
--- old/streaming-commons-0.1.15.2/bench/count-chars.hs 2016-03-03 
10:57:56.0 +0100
+++ new/streaming-commons-0.1.15.4/bench/count-chars.hs 2016-04-21 
19:21:39.0 +0200
@@ -5,7 +5,7 @@
 import qualified Data.ByteString as S
 import qualified Data.ByteString.Lazy as L
 import Data.ByteString.Lazy.Internal (ByteString (..))
-import Data.Text.StreamDecoding
+import Data.Streaming.Text
 
 calcLen :: (S.ByteString -> DecodeResult)
 -> L.ByteString
@@ -36,10 +36,10 @@
 
 main :: IO ()
 main = defaultMain $ map handleEncoding
-[ ("UTF-8", TLE.encodeUtf8, TLE.decodeUtf8, streamUtf8)
-, ("UTF-8 pure", TLE.encodeUtf8, TLE.decodeUtf8, streamUtf8Pure)
-, ("UTF-16LE", TLE.encodeUtf16LE, TLE.decodeUtf16LE, streamUtf16LE)
-, ("UTF-16BE", TLE.encodeUtf16BE, TLE.decodeUtf16BE, streamUtf16BE)
-, ("UTF-32LE", TLE.encodeUtf32LE, TLE.decodeUtf32LE, streamUtf32LE)
-, ("UTF-32BE", TLE.encodeUtf32BE, TLE.decodeUtf32BE, streamUtf32BE)
+[ ("UTF-8", TLE.encodeUtf8, TLE.decodeUtf8, decodeUtf8)
+, ("UTF-8 pure", TLE.encodeUtf8, 

commit ghc-streaming-commons for openSUSE:Factory

2016-03-16 Thread h_root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2016-03-16 10:33:42

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


Package is "ghc-streaming-commons"

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
2016-02-17 12:12:01.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new/ghc-streaming-commons.changes
 2016-03-16 10:33:44.0 +0100
@@ -1,0 +2,6 @@
+Tue Mar  8 09:13:01 UTC 2016 - mimi...@gmail.com
+
+- update to 0.1.15.1
+* Document child process behavior in waitForProcess
+
+---

Old:

  streaming-commons-0.1.15.1.tar.gz

New:

  streaming-commons-0.1.15.2.tar.gz



Other differences:
--
++ ghc-streaming-commons.spec ++
--- /var/tmp/diff_new_pack.LtvEsQ/_old  2016-03-16 10:33:45.0 +0100
+++ /var/tmp/diff_new_pack.LtvEsQ/_new  2016-03-16 10:33:45.0 +0100
@@ -21,7 +21,7 @@
 %bcond_with tests
 
 Name:   ghc-streaming-commons
-Version:0.1.15.1
+Version:0.1.15.2
 Release:0
 Summary:Common lower-level functions needed by various streaming data 
libraries
 License:MIT

++ streaming-commons-0.1.15.1.tar.gz -> streaming-commons-0.1.15.2.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.15.1/ChangeLog.md 
new/streaming-commons-0.1.15.2/ChangeLog.md
--- old/streaming-commons-0.1.15.1/ChangeLog.md 2016-02-08 19:05:13.0 
+0100
+++ new/streaming-commons-0.1.15.2/ChangeLog.md 2016-03-03 10:57:56.0 
+0100
@@ -1,3 +1,7 @@
+## 0.1.15.2
+
+* Document child process behavior in `waitForProcess`
+
 ## 0.1.15.1
 
 * Catch exceptions thrown by `waitForProcess`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.15.1/Data/Streaming/Process.hs 
new/streaming-commons-0.1.15.2/Data/Streaming/Process.hs
--- old/streaming-commons-0.1.15.1/Data/Streaming/Process.hs2016-02-08 
19:05:13.0 +0100
+++ new/streaming-commons-0.1.15.2/Data/Streaming/Process.hs2016-03-03 
10:57:56.0 +0100
@@ -202,6 +202,10 @@
 -- code. If the exit code is not a success, throw a
 -- 'ProcessExitedUnsuccessfully'.
 --
+-- NOTE: This function does not kill the child process in the event of an
+-- exception from the provided function. For that, please use
+-- @withCheckedProcessCleanup@ from the @conduit-extra@ package.
+--
 -- Since 0.1.7
 withCheckedProcess :: ( InputSource stdin
   , OutputSink stderr
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.15.1/streaming-commons.cabal 
new/streaming-commons-0.1.15.2/streaming-commons.cabal
--- old/streaming-commons-0.1.15.1/streaming-commons.cabal  2016-02-08 
19:05:13.0 +0100
+++ new/streaming-commons-0.1.15.2/streaming-commons.cabal  2016-03-03 
10:57:56.0 +0100
@@ -1,5 +1,5 @@
 name:streaming-commons
-version: 0.1.15.1
+version: 0.1.15.2
 synopsis:Common lower-level functions needed by various streaming 
data libraries
 description: Provides low-dependency functionality commonly needed by 
various streaming data libraries, such as conduit and pipes.
 homepage:https://github.com/fpco/streaming-commons




commit ghc-streaming-commons for openSUSE:Factory

2016-02-17 Thread h_root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2016-02-17 10:25:54

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


Package is "ghc-streaming-commons"

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
2015-12-01 09:19:36.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new/ghc-streaming-commons.changes
 2016-02-17 12:12:01.0 +0100
@@ -1,0 +2,6 @@
+Thu Feb 11 08:50:21 UTC 2016 - mimi...@gmail.com
+
+- update to 0.1.15.1
+* Catch exceptions thrown by waitForProcess
+
+---

Old:

  streaming-commons-0.1.15.tar.gz

New:

  streaming-commons-0.1.15.1.tar.gz



Other differences:
--
++ ghc-streaming-commons.spec ++
--- /var/tmp/diff_new_pack.b7NfAk/_old  2016-02-17 12:12:02.0 +0100
+++ /var/tmp/diff_new_pack.b7NfAk/_new  2016-02-17 12:12:02.0 +0100
@@ -21,7 +21,7 @@
 %bcond_with tests
 
 Name:   ghc-streaming-commons
-Version:0.1.15
+Version:0.1.15.1
 Release:0
 Summary:Common lower-level functions needed by various streaming data 
libraries
 License:MIT
@@ -35,6 +35,7 @@
 BuildRequires:  ghc-rpm-macros
 # Begin cabal-rpm deps:
 BuildRequires:  ghc-array-devel
+BuildRequires:  ghc-async-devel
 BuildRequires:  ghc-blaze-builder-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-directory-devel

++ streaming-commons-0.1.15.tar.gz -> streaming-commons-0.1.15.1.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.15/ChangeLog.md 
new/streaming-commons-0.1.15.1/ChangeLog.md
--- old/streaming-commons-0.1.15/ChangeLog.md   2015-11-24 11:28:14.0 
+0100
+++ new/streaming-commons-0.1.15.1/ChangeLog.md 2016-02-08 19:05:13.0 
+0100
@@ -1,3 +1,7 @@
+## 0.1.15.1
+
+* Catch exceptions thrown by `waitForProcess`
+
 ## 0.1.15
 
 * Use `NO_DELAY1 for TCP client connections 
[#27](https://github.com/fpco/streaming-commons/issues/27)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.15/Data/Streaming/Process.hs 
new/streaming-commons-0.1.15.1/Data/Streaming/Process.hs
--- old/streaming-commons-0.1.15/Data/Streaming/Process.hs  2015-11-24 
11:28:14.0 +0100
+++ new/streaming-commons-0.1.15.1/Data/Streaming/Process.hs2016-02-08 
19:05:13.0 +0100
@@ -31,11 +31,12 @@
 ) where
 
 import   Control.Applicative ((<$>), (<*>))
-import   Control.Concurrent  (forkIO)
+import   Control.Concurrent  (forkIOWithUnmask)
 import   Control.Concurrent.STM  (STM, TMVar, atomically,
   newEmptyTMVar, putTMVar,
   readTMVar)
-import   Control.Exception   (Exception, throwIO)
+import   Control.Exception   (Exception, throwIO, try, 
throw,
+  SomeException)
 import   Control.Monad.IO.Class  (MonadIO, liftIO)
 import   Data.Maybe  (fromMaybe)
 import   Data.Streaming.Process.Internal
@@ -157,7 +158,16 @@
 }
 
 ec <- atomically newEmptyTMVar
-_ <- forkIO $ waitForProcess ph >>= atomically . putTMVar ec
+-- Apparently waitForProcess can throw an exception itself when
+-- delegate_ctlc is True, so to avoid this TMVar from being left empty, we
+-- capture any exceptions and store them as an impure exception in the
+-- TMVar
+_ <- forkIOWithUnmask $ \_unmask -> try (waitForProcess ph)
+>>= atomically
+  . putTMVar ec
+  . either
+  (throw :: SomeException -> a)
+  id
 
 (,,,)
 <$> getStdin stdinH
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.15/streaming-commons.cabal 
new/streaming-commons-0.1.15.1/streaming-commons.cabal
--- old/streaming-commons-0.1.15/streaming-commons.cabal2015-11-24 
11:28:14.0 +0100
+++ new/streaming-commons-0.1.15.1/streaming-commons.cabal  2016-02-08 
19:05:13.0 +0100
@@ -1,5 +1,5 @@
 name:streaming-commons
-version: 0.1.15
+version: 0.1.15.1
 synopsis:Common lower-level functions needed by various streaming 
data libraries
 description: Provides low-dependency 

commit ghc-streaming-commons for openSUSE:Factory

2015-12-01 Thread h_root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2015-12-01 09:19:35

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


Package is "ghc-streaming-commons"

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
2015-10-06 13:27:31.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new/ghc-streaming-commons.changes
 2015-12-01 09:19:36.0 +0100
@@ -1,0 +2,6 @@
+Sun Nov 29 17:43:29 UTC 2015 - mimi...@gmail.com
+
+- update to 0.1.15
+* Use `NO_DELAY1 for TCP client connections
+
+---

Old:

  streaming-commons-0.1.14.2.tar.gz

New:

  streaming-commons-0.1.15.tar.gz



Other differences:
--
++ ghc-streaming-commons.spec ++
--- /var/tmp/diff_new_pack.D1M9fw/_old  2015-12-01 09:19:36.0 +0100
+++ /var/tmp/diff_new_pack.D1M9fw/_new  2015-12-01 09:19:36.0 +0100
@@ -21,7 +21,7 @@
 %bcond_with tests
 
 Name:   ghc-streaming-commons
-Version:0.1.14.2
+Version:0.1.15
 Release:0
 Summary:Common lower-level functions needed by various streaming data 
libraries
 License:MIT

++ streaming-commons-0.1.14.2.tar.gz -> streaming-commons-0.1.15.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.14.2/ChangeLog.md 
new/streaming-commons-0.1.15/ChangeLog.md
--- old/streaming-commons-0.1.14.2/ChangeLog.md 2015-09-27 06:37:17.0 
+0200
+++ new/streaming-commons-0.1.15/ChangeLog.md   2015-11-24 11:28:14.0 
+0100
@@ -1,3 +1,7 @@
+## 0.1.15
+
+* Use `NO_DELAY1 for TCP client connections 
[#27](https://github.com/fpco/streaming-commons/issues/27)
+
 ## 0.1.14.2
 
 * Fix bug in process exception display of args with spaces/quotes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.14.2/Data/Streaming/Network.hs 
new/streaming-commons-0.1.15/Data/Streaming/Network.hs
--- old/streaming-commons-0.1.14.2/Data/Streaming/Network.hs2015-09-27 
06:37:17.0 +0200
+++ new/streaming-commons-0.1.15/Data/Streaming/Network.hs  2015-11-24 
11:28:14.0 +0100
@@ -409,6 +409,7 @@
 getSocketFamilyTCP :: ByteString -> Int -> NS.Family -> IO (NS.Socket, 
NS.SockAddr)
 getSocketFamilyTCP host' port' addrFamily = do
 (sock, addr) <- getSocketFamilyGen NS.Stream (S8.unpack host') port' 
addrFamily
+NS.setSocketOption sock NS.NoDelay 1
 ee <- try' $ NS.connect sock (NS.addrAddress addr)
 case ee of
 Left e -> NS.sClose sock >> throwIO e
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.14.2/streaming-commons.cabal 
new/streaming-commons-0.1.15/streaming-commons.cabal
--- old/streaming-commons-0.1.14.2/streaming-commons.cabal  2015-09-27 
06:37:17.0 +0200
+++ new/streaming-commons-0.1.15/streaming-commons.cabal2015-11-24 
11:28:14.0 +0100
@@ -1,5 +1,5 @@
 name:streaming-commons
-version: 0.1.14.2
+version: 0.1.15
 synopsis:Common lower-level functions needed by various streaming 
data libraries
 description: Provides low-dependency functionality commonly needed by 
various streaming data libraries, such as conduit and pipes.
 homepage:https://github.com/fpco/streaming-commons




commit ghc-streaming-commons for openSUSE:Factory

2015-10-06 Thread h_root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2015-10-06 13:27:03

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


Package is "ghc-streaming-commons"

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
2015-09-17 09:19:37.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new/ghc-streaming-commons.changes
 2015-10-06 13:27:31.0 +0200
@@ -1,0 +2,12 @@
+Sun Oct  4 17:05:13 UTC 2015 - mimi...@gmail.com
+
+- update to 0.1.14.2
+* Fix bug in process exception display of args with spaces/quotes
+
+---
+Sun Sep 27 10:22:45 UTC 2015 - mimi...@gmail.com
+
+- update to 0.1.14.1
+* Exporting HasReadBufferSize; instance for ClientSettingsUnix
+
+---

Old:

  streaming-commons-0.1.13.tar.gz

New:

  streaming-commons-0.1.14.2.tar.gz



Other differences:
--
++ ghc-streaming-commons.spec ++
--- /var/tmp/diff_new_pack.CESpEe/_old  2015-10-06 13:27:32.0 +0200
+++ /var/tmp/diff_new_pack.CESpEe/_new  2015-10-06 13:27:32.0 +0200
@@ -21,7 +21,7 @@
 %bcond_with tests
 
 Name:   ghc-streaming-commons
-Version:0.1.13
+Version:0.1.14.2
 Release:0
 Summary:Common lower-level functions needed by various streaming data 
libraries
 License:MIT

++ streaming-commons-0.1.13.tar.gz -> streaming-commons-0.1.14.2.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.13/ChangeLog.md 
new/streaming-commons-0.1.14.2/ChangeLog.md
--- old/streaming-commons-0.1.13/ChangeLog.md   2015-09-10 17:21:38.0 
+0200
+++ new/streaming-commons-0.1.14.2/ChangeLog.md 2015-09-27 06:37:17.0 
+0200
@@ -1,3 +1,11 @@
+## 0.1.14.2
+
+* Fix bug in process exception display of args with spaces/quotes
+
+## 0.1.14
+
+* Exporting HasReadBufferSize; instance for ClientSettingsUnix 
[#24](https://github.com/fpco/streaming-commons/pull/24)
+
 ## 0.1.13
 
 * Make size of read buffer configurable, change default size to 32 kiB 
[#23](https://github.com/fpco/streaming-commons/pull/23)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.13/Data/Streaming/Network.hs 
new/streaming-commons-0.1.14.2/Data/Streaming/Network.hs
--- old/streaming-commons-0.1.13/Data/Streaming/Network.hs  2015-09-10 
17:21:38.0 +0200
+++ new/streaming-commons-0.1.14.2/Data/Streaming/Network.hs2015-09-27 
06:37:17.0 +0200
@@ -28,6 +28,7 @@
 , HasPort (..)
 , HasAfterBind (..)
 , HasReadWrite (..)
+, HasReadBufferSize (..)
 #if !WINDOWS
 , HasPath (..)
 #endif
@@ -535,20 +536,33 @@
 setAfterBind :: HasAfterBind a => (Socket -> IO ()) -> a -> a
 setAfterBind p = runIdentity . afterBindLens (const (Identity p))
 
+-- | Since 0.1.13
 class HasReadBufferSize a where
 readBufferSizeLens :: Functor f => (Int -> f Int) -> a -> f a
+-- | Since 0.1.13
 instance HasReadBufferSize ServerSettings where
 readBufferSizeLens f ss = fmap (\p -> ss { serverReadBufferSize = p }) (f 
(serverReadBufferSize ss))
+-- | Since 0.1.13
 instance HasReadBufferSize ClientSettings where
 readBufferSizeLens f cs = fmap (\p -> cs { clientReadBufferSize = p }) (f 
(clientReadBufferSize cs))
 #if !WINDOWS
+-- | Since 0.1.13
 instance HasReadBufferSize ServerSettingsUnix where
 readBufferSizeLens f ss = fmap (\p -> ss { serverReadBufferSizeUnix = p }) 
(f (serverReadBufferSizeUnix ss))
+-- | Since 0.1.14
+instance HasReadBufferSize ClientSettingsUnix where
+readBufferSizeLens f ss = fmap (\p -> ss { clientReadBufferSizeUnix = p }) 
(f (clientReadBufferSizeUnix ss))
 #endif
 
+-- | Get buffer size used when reading from socket.
+--
+-- Since 0.1.13
 getReadBufferSize :: HasReadBufferSize a => a -> Int
 getReadBufferSize = getConstant . readBufferSizeLens Constant
 
+-- | Set buffer size used when reading from socket.
+--
+-- Since 0.1.13
 setReadBufferSize :: HasReadBufferSize a => Int -> a -> a
 setReadBufferSize p = runIdentity . readBufferSizeLens (const (Identity p))
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.13/Data/Streaming/Process.hs 
new/streaming-commons-0.1.14.2/Data/Streaming/Process.hs
--- old/streaming-commons-0.1.13/Data/Streaming/Process.hs  2015-09-10 
17:21:38.0 +0200
+++ new/streaming-commons-0.1.14.2/Data/Streaming/Process.hs

commit ghc-streaming-commons for openSUSE:Factory

2015-09-17 Thread h_root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2015-09-17 09:19:36

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


Package is "ghc-streaming-commons"

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
2015-08-10 09:15:57.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new/ghc-streaming-commons.changes
 2015-09-17 09:19:37.0 +0200
@@ -1,0 +2,6 @@
+Sun Sep 13 13:00:44 UTC 2015 - mimi...@gmail.com
+
+- update to 0.1.13
+* Make size of read buffer configurable, change default size to 32 kiB
+
+---

Old:

  streaming-commons-0.1.12.1.tar.gz

New:

  streaming-commons-0.1.13.tar.gz



Other differences:
--
++ ghc-streaming-commons.spec ++
--- /var/tmp/diff_new_pack.RhmyZX/_old  2015-09-17 09:19:37.0 +0200
+++ /var/tmp/diff_new_pack.RhmyZX/_new  2015-09-17 09:19:37.0 +0200
@@ -21,7 +21,7 @@
 %bcond_with tests
 
 Name:   ghc-streaming-commons
-Version:0.1.12.1
+Version:0.1.13
 Release:0
 Summary:Common lower-level functions needed by various streaming data 
libraries
 License:MIT

++ streaming-commons-0.1.12.1.tar.gz -> streaming-commons-0.1.13.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.12.1/ChangeLog.md 
new/streaming-commons-0.1.13/ChangeLog.md
--- old/streaming-commons-0.1.12.1/ChangeLog.md 2015-05-15 06:29:28.0 
+0200
+++ new/streaming-commons-0.1.13/ChangeLog.md   2015-09-10 17:21:38.0 
+0200
@@ -1,3 +1,7 @@
+## 0.1.13
+
+* Make size of read buffer configurable, change default size to 32 kiB 
[#23](https://github.com/fpco/streaming-commons/pull/23)
+
 ## 0.1.12.1
 
 * Fix up `acceptSafe` as [mentioned by 
Kazu](https://github.com/yesodweb/wai/issues/361#issuecomment-102204803)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/streaming-commons-0.1.12.1/Data/Streaming/Network/Internal.hs 
new/streaming-commons-0.1.13/Data/Streaming/Network/Internal.hs
--- old/streaming-commons-0.1.12.1/Data/Streaming/Network/Internal.hs   
2015-05-15 06:29:28.0 +0200
+++ new/streaming-commons-0.1.13/Data/Streaming/Network/Internal.hs 
2015-09-10 17:21:38.0 +0200
@@ -24,6 +24,7 @@
 , serverSocket :: !(Maybe Socket) -- ^ listening socket
 , serverAfterBind :: !(Socket -> IO ())
 , serverNeedLocalAddr :: !Bool
+, serverReadBufferSize :: !Int
 }
 
 -- | Settings for a TCP client, specifying how to connect to the server.
@@ -31,6 +32,7 @@
 { clientPort :: !Int
 , clientHost :: !ByteString
 , clientAddrFamily :: !Family
+, clientReadBufferSize :: !Int
 }
 
 -- | Which host to bind.
@@ -71,11 +73,13 @@
 data ServerSettingsUnix = ServerSettingsUnix
 { serverPath :: !FilePath
 , serverAfterBindUnix :: !(Socket -> IO ())
+, serverReadBufferSizeUnix :: !Int
 }
 
 -- | Settings for a Unix domain sockets client.
 data ClientSettingsUnix = ClientSettingsUnix
 { clientPath :: !FilePath
+, clientReadBufferSizeUnix :: !Int
 }
 
 -- | The data passed to a Unix domain sockets @Application@.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.12.1/Data/Streaming/Network.hs 
new/streaming-commons-0.1.13/Data/Streaming/Network.hs
--- old/streaming-commons-0.1.12.1/Data/Streaming/Network.hs2015-05-15 
06:29:28.0 +0200
+++ new/streaming-commons-0.1.13/Data/Streaming/Network.hs  2015-09-10 
17:21:38.0 +0200
@@ -37,6 +37,7 @@
 , setAddrFamily
 , setAfterBind
 , setNeedLocalAddr
+, setReadBufferSize
 #if !WINDOWS
 , setPath
 #endif
@@ -46,6 +47,7 @@
 , getAddrFamily
 , getAfterBind
 , getNeedLocalAddr
+, getReadBufferSize
 #if !WINDOWS
 , getPath
 #endif
@@ -272,6 +274,9 @@
 bindRandomPortUDP :: HostPreference -> IO (Int, Socket)
 bindRandomPortUDP = bindRandomPortGen NS.Datagram
 
+defaultReadBufferSize :: Int
+defaultReadBufferSize = 32768
+
 #if !WINDOWS
 -- | Attempt to connect to the given Unix domain socket path.
 getSocketUnix :: FilePath -> IO Socket
@@ -313,6 +318,7 @@
 serverSettingsUnix path = ServerSettingsUnix
 { serverPath = path
 , serverAfterBindUnix = const $ return ()
+, serverReadBufferSizeUnix = defaultReadBufferSize
 }
 
 -- | Smart constructor.
@@ -321,6 +327,7 @@
 -> ClientSettingsUnix
 clientSettingsUnix path = ClientSettingsUnix
   

commit ghc-streaming-commons for openSUSE:Factory

2015-08-10 Thread h_root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2015-08-10 09:15:56

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


Package is ghc-streaming-commons

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-streaming-commons/ghc-streaming-commons.changes  
2015-05-27 12:46:23.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new/ghc-streaming-commons.changes
 2015-08-10 09:15:57.0 +0200
@@ -1,0 +2,6 @@
+Fri Aug  7 08:08:51 UTC 2015 - mimi...@gmail.com
+
+- update to 0.1.12.1
+* Fix up acceptSafe
+
+---

Old:

  streaming-commons-0.1.12.tar.gz

New:

  streaming-commons-0.1.12.1.tar.gz



Other differences:
--
++ ghc-streaming-commons.spec ++
--- /var/tmp/diff_new_pack.dbMQW7/_old  2015-08-10 09:15:58.0 +0200
+++ /var/tmp/diff_new_pack.dbMQW7/_new  2015-08-10 09:15:58.0 +0200
@@ -15,17 +15,18 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 %global pkg_name streaming-commons
 
 %bcond_with tests
 
-Name:   ghc-%{pkg_name}
-Version:0.1.12
+Name:   ghc-streaming-commons
+Version:0.1.12.1
 Release:0
 Summary:Common lower-level functions needed by various streaming data 
libraries
+License:MIT
 Group:  System/Libraries
 
-License:MIT
 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
@@ -74,37 +75,29 @@
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
-
 %build
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
-
 %check
 %if %{with tests}
 %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 README.md
 
-
 %changelog

++ streaming-commons-0.1.12.tar.gz - streaming-commons-0.1.12.1.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.12/ChangeLog.md 
new/streaming-commons-0.1.12.1/ChangeLog.md
--- old/streaming-commons-0.1.12/ChangeLog.md   2015-04-14 06:45:05.0 
+0200
+++ new/streaming-commons-0.1.12.1/ChangeLog.md 2015-05-15 06:29:28.0 
+0200
@@ -1,3 +1,7 @@
+## 0.1.12.1
+
+* Fix up `acceptSafe` as [mentioned by 
Kazu](https://github.com/yesodweb/wai/issues/361#issuecomment-102204803)
+
 ## 0.1.12
 
 * `appRawSocket`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.12/Data/Streaming/Network.hs 
new/streaming-commons-0.1.12.1/Data/Streaming/Network.hs
--- old/streaming-commons-0.1.12/Data/Streaming/Network.hs  2015-04-14 
06:45:05.0 +0200
+++ new/streaming-commons-0.1.12.1/Data/Streaming/Network.hs2015-05-15 
06:29:28.0 +0200
@@ -106,6 +106,7 @@
 import Data.Array.Unboxed ((!), UArray, listArray)
 import System.IO.Unsafe (unsafePerformIO)
 import System.Random (randomRIO)
+import System.IO.Error (isFullErrorType, ioeGetErrorType)
 #if WINDOWS
 import Control.Concurrent.MVar (putMVar, takeMVar, newEmptyMVar)
 #endif
@@ -447,9 +448,12 @@
 #endif
   where
 loop =
-NS.accept socket `E.catch` \(_ :: IOException) - do
-threadDelay 100
-loop
+NS.accept socket `E.catch` \e -
+if isFullErrorType (ioeGetErrorType e)
+then do
+threadDelay 100
+loop
+else E.throwIO e
 
 message :: ByteString - NS.SockAddr - Message
 message = Message
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/streaming-commons-0.1.12/streaming-commons.cabal 
new/streaming-commons-0.1.12.1/streaming-commons.cabal
--- old/streaming-commons-0.1.12/streaming-commons.cabal2015-04-14 
06:45:05.0 +0200
+++ new/streaming-commons-0.1.12.1/streaming-commons.cabal  2015-05-15 
06:29:28.0 +0200
@@ -1,5 +1,5 @@
 name:streaming-commons
-version: 0.1.12
+version: 0.1.12.1
 synopsis:Common lower-level functions needed by various streaming 
data libraries
 description: Provides low-dependency functionality commonly needed by 
various streaming data libraries, such as conduit and pipes.
 homepage:https://github.com/fpco/streaming-commons




commit ghc-streaming-commons for openSUSE:Factory

2015-05-27 Thread h_root
Hello community,

here is the log from the commit of package ghc-streaming-commons for 
openSUSE:Factory checked in at 2015-05-27 12:46:22

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


Package is ghc-streaming-commons

Changes:

New Changes file:

--- /dev/null   2015-05-15 19:41:08.266053825 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-streaming-commons.new/ghc-streaming-commons.changes
 2015-05-27 12:46:23.0 +0200
@@ -0,0 +1,5 @@
+---
+Wed Apr 22 07:34:22 UTC 2015 - mimi...@gmail.com
+
+- initial commit
+

New:

  ghc-streaming-commons.changes
  ghc-streaming-commons.spec
  streaming-commons-0.1.12.tar.gz



Other differences:
--
++ ghc-streaming-commons.spec ++
#
# spec file for package ghc-streaming-commons
#
# Copyright (c) 2015 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An Open Source License is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

%global pkg_name streaming-commons

%bcond_with tests

Name:   ghc-%{pkg_name}
Version:0.1.12
Release:0
Summary:Common lower-level functions needed by various streaming data 
libraries
Group:  System/Libraries

License:MIT
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-array-devel
BuildRequires:  ghc-blaze-builder-devel
BuildRequires:  ghc-bytestring-devel
BuildRequires:  ghc-directory-devel
BuildRequires:  ghc-network-devel
BuildRequires:  ghc-process-devel
BuildRequires:  ghc-random-devel
BuildRequires:  ghc-stm-devel
BuildRequires:  ghc-text-devel
BuildRequires:  ghc-transformers-devel
BuildRequires:  ghc-unix-devel
BuildRequires:  ghc-zlib-devel
%if %{with tests}
BuildRequires:  ghc-QuickCheck-devel
BuildRequires:  ghc-async-devel
BuildRequires:  ghc-deepseq-devel
BuildRequires:  ghc-hspec-devel
%endif
# End cabal-rpm deps

%description
Provides low-dependency functionality commonly needed by various streaming data
libraries, such as conduit and pipes.


%package devel
Summary:Haskell %{pkg_name} library development files
Group:  Development/Libraries/Other
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
%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 README.md


%changelog