Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-easy-file for openSUSE:Factory 
checked in at 2023-04-04 21:19:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-easy-file (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-easy-file.new.19717 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-easy-file"

Tue Apr  4 21:19:50 2023 rev:11 rq:1075861 version:0.2.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-easy-file/ghc-easy-file.changes      
2020-12-22 11:38:51.433463859 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-easy-file.new.19717/ghc-easy-file.changes   
2023-04-04 21:19:58.261018491 +0200
@@ -1,0 +2,11 @@
+Thu Mar 30 17:06:40 UTC 2023 - Peter Simons <[email protected]>
+
+- Updated spec file to conform with ghc-rpm-macros-2.5.2.
+
+-------------------------------------------------------------------
+Tue Mar 14 01:24:06 UTC 2023 - Peter Simons <[email protected]>
+
+- Update easy-file to version 0.2.3.
+  Upstream does not provide a change log file.
+
+-------------------------------------------------------------------

Old:
----
  easy-file-0.2.2.tar.gz

New:
----
  easy-file-0.2.3.tar.gz

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

Other differences:
------------------
++++++ ghc-easy-file.spec ++++++
--- /var/tmp/diff_new_pack.rc4fF6/_old  2023-04-04 21:19:59.701027673 +0200
+++ /var/tmp/diff_new_pack.rc4fF6/_new  2023-04-04 21:19:59.745027954 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-easy-file
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,20 +17,34 @@
 
 
 %global pkg_name easy-file
+%global pkgver %{pkg_name}-%{version}
+%bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.2.2
+Version:        0.2.3
 Release:        0
 Summary:        Cross-platform File handling
 License:        BSD-3-Clause
 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-base-devel
+BuildRequires:  ghc-base-prof
 BuildRequires:  ghc-directory-devel
+BuildRequires:  ghc-directory-prof
 BuildRequires:  ghc-filepath-devel
+BuildRequires:  ghc-filepath-prof
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-time-devel
+BuildRequires:  ghc-time-prof
 BuildRequires:  ghc-unix-devel
+BuildRequires:  ghc-unix-prof
 ExcludeArch:    %{ix86}
+%if %{with tests}
+BuildRequires:  ghc-tasty-devel
+BuildRequires:  ghc-tasty-hunit-devel
+BuildRequires:  ghc-tasty-hunit-prof
+BuildRequires:  ghc-tasty-prof
+%endif
 
 %description
 Cross-platform File handling for Unix/Mac/Windows.
@@ -45,6 +59,22 @@
 %description devel
 This package provides the Haskell %{pkg_name} library development files.
 
+%package -n ghc-%{pkg_name}-doc
+Summary:        Haskell %{pkg_name} library documentation
+Requires:       ghc-filesystem
+BuildArch:      noarch
+
+%description -n ghc-%{pkg_name}-doc
+This package provides the Haskell %{pkg_name} library documentation.
+
+%package -n ghc-%{pkg_name}-prof
+Summary:        Haskell %{pkg_name} profiling library
+Requires:       ghc-%{pkg_name}-devel = %{version}-%{release}
+Supplements:    (ghc-%{pkg_name}-devel and ghc-prof)
+
+%description -n ghc-%{pkg_name}-prof
+This package provides the Haskell %{pkg_name} profiling library.
+
 %prep
 %autosetup -n %{pkg_name}-%{version}
 
@@ -54,6 +84,9 @@
 %install
 %ghc_lib_install
 
+%check
+%cabal_test
+
 %post devel
 %ghc_pkg_recache
 
@@ -65,4 +98,9 @@
 
 %files devel -f %{name}-devel.files
 
+%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
+%license LICENSE
+
+%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
+
 %changelog

++++++ easy-file-0.2.2.tar.gz -> easy-file-0.2.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/easy-file-0.2.2/System/EasyFile/Directory.hs 
new/easy-file-0.2.3/System/EasyFile/Directory.hs
--- old/easy-file-0.2.2/System/EasyFile/Directory.hs    2018-05-15 
02:39:36.000000000 +0200
+++ new/easy-file-0.2.3/System/EasyFile/Directory.hs    2001-09-09 
03:46:40.000000000 +0200
@@ -34,8 +34,10 @@
   , copyPermissions
   )
 
+#if !MIN_VERSION_base(4,8,0)
 import Control.Applicative
-import qualified Control.Exception as E 
+#endif
+import qualified Control.Exception as E
 import System.Environment
 
 ----------------------------------------------------------------
@@ -97,7 +99,7 @@
 -}
 
 getHomeDirectory2 :: IO (Maybe FilePath)
-getHomeDirectory2 = (Just . fixPath <$> getEnv "HOME") `E.catch` 
+getHomeDirectory2 = (Just . fixPath <$> getEnv "HOME") `E.catch`
                     \(_ :: E.IOException) -> return Nothing
 
 {- | Returns the pathname of a directory in which application-specific
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/easy-file-0.2.2/System/EasyFile/Missing.hs 
new/easy-file-0.2.3/System/EasyFile/Missing.hs
--- old/easy-file-0.2.2/System/EasyFile/Missing.hs      2018-05-15 
02:39:36.000000000 +0200
+++ new/easy-file-0.2.3/System/EasyFile/Missing.hs      2001-09-09 
03:46:40.000000000 +0200
@@ -4,7 +4,9 @@
 
 ----------------------------------------------------------------
 
+#if !MIN_VERSION_base(4,8,0)
 import Control.Applicative
+#endif
 import Data.Time
 import Data.Time.Clock.POSIX
 import Data.Word (Word64)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/easy-file-0.2.2/easy-file.cabal 
new/easy-file-0.2.3/easy-file.cabal
--- old/easy-file-0.2.2/easy-file.cabal 2018-05-15 02:39:36.000000000 +0200
+++ new/easy-file-0.2.3/easy-file.cabal 2001-09-09 03:46:40.000000000 +0200
@@ -1,5 +1,6 @@
+Cabal-Version:          >= 1.10
 Name:                   easy-file
-Version:                0.2.2
+Version:                0.2.3
 Author:                 Kazu Yamamoto <[email protected]>
 Maintainer:             Kazu Yamamoto <[email protected]>
 License:                BSD3
@@ -8,21 +9,58 @@
 Description:            Cross-platform File handling for Unix\/Mac\/Windows
 Homepage:               http://github.com/kazu-yamamoto/easy-file
 Category:               System
-Cabal-Version:          >= 1.6
 Build-Type:             Simple
 
+Tested-With:
+  GHC == 9.6.0
+  GHC == 9.4.4
+  GHC == 9.2.7
+  GHC == 9.0.2
+  GHC == 8.10.7
+  GHC == 8.8.4
+  GHC == 8.6.5
+  GHC == 8.4.4
+  GHC == 8.2.2
+  GHC == 8.0.2
+  GHC == 7.10.3
+  GHC == 7.8.4
+  GHC == 7.6.3
+  GHC == 7.4.2
+  GHC == 7.0.4
+
 Library
-  GHC-Options:          -Wall
   Exposed-Modules:      System.EasyFile
   Other-Modules:        System.EasyFile.FilePath
                         System.EasyFile.Directory
                         System.EasyFile.Missing
-  Build-Depends:        base >= 4 && < 5
+  Build-Depends:
+      base >= 4 && < 5
+    , directory
+    , filepath
+    , time
+
   if os(windows)
-    Build-Depends:      Win32, time, directory, filepath
+    Build-Depends:      Win32
   else
-    Build-Depends:      unix, time, directory, filepath
+    Build-Depends:      unix
+
+  Default-Language:     Haskell2010
+  GHC-Options:          -Wall
+  if impl(ghc >= 8)
+    GHC-Options:        -Wcompat
+
+
+Test-Suite test
+  Type:                 exitcode-stdio-1.0
+  Hs-Source-Dirs:       test
+  Main-Is:              Test.hs
+  Build-Depends:
+      base
+    , easy-file
+    , tasty
+    , tasty-hunit
+  Default-Language:     Haskell2010
 
 Source-Repository head
   Type:                 git
-  Location:             git://github.com/kazu-yamamoto/easy-file.git
+  Location:             https://github.com/kazu-yamamoto/easy-file.git
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/easy-file-0.2.2/test/Test.hs 
new/easy-file-0.2.3/test/Test.hs
--- old/easy-file-0.2.2/test/Test.hs    1970-01-01 01:00:00.000000000 +0100
+++ new/easy-file-0.2.3/test/Test.hs    2001-09-09 03:46:40.000000000 +0200
@@ -0,0 +1,31 @@
+{-# LANGUAGE CPP #-}
+
+module Main where
+
+import System.EasyFile
+import Test.Tasty
+import Test.Tasty.HUnit
+
+main :: IO ()
+main = defaultMain $
+  testCase "easy-file tests" $ do
+
+    assertEqual "Test that '/' is path separator"
+        ("foo" </> "bar")
+        "foo/bar"
+
+    isRelative "foo" @?= True
+
+    isRelative "/foo" @?= isWindows
+
+    isRelative "c:foo" @?= True
+
+    isRelative "c:/foo" @?= not isWindows
+
+isWindows :: Bool
+isWindows =
+#if defined(mingw32_HOST_OS) || defined(__MINGW32__)
+    True
+#else
+    False
+#endif

Reply via email to