Hello community,
here is the log from the commit of package ghc-download for openSUSE:Factory checked in at 2017-04-11 09:37:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-download (Old)
and /work/SRC/openSUSE:Factory/.ghc-download.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-download"
Tue Apr 11 09:37:35 2017 rev:2 rq:483921 version:0.3.2.5
Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-download/ghc-download.changes 2017-03-24 01:54:45.652447666 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-download.new/ghc-download.changes 2017-04-11 09:37:35.881201756 +0200
@@ -1,0 +2,5 @@
+Sun Nov 6 21:25:54 UTC 2016 - psimons@suse.com
+
+- Update to version 0.3.2.5 with cabal2obs.
+
+-------------------------------------------------------------------
Old:
----
download-0.3.2.4.tar.gz
New:
----
download-0.3.2.5.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-download.spec ++++++
--- /var/tmp/diff_new_pack.NMCd2S/_old 2017-04-11 09:37:36.369132830 +0200
+++ /var/tmp/diff_new_pack.NMCd2S/_new 2017-04-11 09:37:36.373132265 +0200
@@ -1,7 +1,7 @@
#
# spec file for package ghc-download
#
-# 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 download
%bcond_with tests
Name: ghc-%{pkg_name}
-Version: 0.3.2.4
+Version: 0.3.2.5
Release: 0
Summary: High-level file download based on URLs
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-feed-devel
BuildRequires: ghc-rpm-macros
@@ -37,7 +36,6 @@
%if %{with tests}
BuildRequires: ghc-hspec-devel
%endif
-# End cabal-rpm deps
%description
High-level file download based on URLs.
@@ -56,20 +54,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
++++++ download-0.3.2.4.tar.gz -> download-0.3.2.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/download-0.3.2.4/ChangeLog.md new/download-0.3.2.5/ChangeLog.md
--- old/download-0.3.2.4/ChangeLog.md 2016-03-10 08:11:11.000000000 +0100
+++ new/download-0.3.2.5/ChangeLog.md 2016-10-31 10:37:30.000000000 +0100
@@ -1,3 +1,9 @@
+## 0.3.2.5
+
+* OSX Support added. Thanks to Brian Crowder.
+* Package backported to old versions of ghc. Thanks to @thielema.
+* Add Travis support for GHC 8
+
## 0.3.2.4
* Fix C code warnings
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/download-0.3.2.4/Network/Download.hsc new/download-0.3.2.5/Network/Download.hsc
--- old/download-0.3.2.4/Network/Download.hsc 2016-03-10 08:11:11.000000000 +0100
+++ new/download-0.3.2.5/Network/Download.hsc 2016-10-29 19:23:36.000000000 +0200
@@ -36,7 +36,9 @@
) where
-import Foreign
+import Foreign.Ptr
+import Foreign.ForeignPtr
+import Foreign.Marshal.Alloc
import Foreign.C.Types
import Foreign.C.String
@@ -45,6 +47,7 @@
import qualified Data.ByteString.Internal as S
import qualified Data.ByteString.Char8 as Char8
+import Data.Word (Word8)
-- Parsers
import qualified Text.HTML.TagSoup as TagSoup
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/download-0.3.2.4/Spec.hs new/download-0.3.2.5/Spec.hs
--- old/download-0.3.2.4/Spec.hs 2016-03-10 08:11:11.000000000 +0100
+++ new/download-0.3.2.5/Spec.hs 2016-10-29 19:23:36.000000000 +0200
@@ -1,6 +1,9 @@
import Test.Hspec
import Network.Download
-import Data.Either (isRight)
+
+-- available in base starting with base-4.6
+isRight :: Either a b -> Bool
+isRight = either (const False) (const True)
main :: IO ()
main = hspec $ do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/download-0.3.2.4/cbits/ftp.c new/download-0.3.2.5/cbits/ftp.c
--- old/download-0.3.2.4/cbits/ftp.c 2016-03-10 08:11:11.000000000 +0100
+++ new/download-0.3.2.5/cbits/ftp.c 2016-10-29 20:34:18.000000000 +0200
@@ -63,7 +63,9 @@
#include