Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-unix-time for openSUSE:Factory checked in at 2023-04-04 21:24:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-unix-time (Old) and /work/SRC/openSUSE:Factory/.ghc-unix-time.new.19717 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-unix-time" Tue Apr 4 21:24:20 2023 rev:19 rq:1076101 version:0.4.9 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-unix-time/ghc-unix-time.changes 2022-10-13 15:43:45.914927678 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-unix-time.new.19717/ghc-unix-time.changes 2023-04-04 21:24:36.810621659 +0200 @@ -1,0 +2,11 @@ +Thu Mar 30 17:08:49 UTC 2023 - Peter Simons <[email protected]> + +- Updated spec file to conform with ghc-rpm-macros-2.5.2. + +------------------------------------------------------------------- +Wed Mar 15 01:34:46 UTC 2023 - Peter Simons <[email protected]> + +- Update unix-time to version 0.4.9. + Upstream does not provide a change log file. + +------------------------------------------------------------------- Old: ---- unix-time-0.4.8.tar.gz New: ---- unix-time-0.4.9.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-unix-time.spec ++++++ --- /var/tmp/diff_new_pack.VJ3U4D/_old 2023-04-04 21:24:37.742626936 +0200 +++ /var/tmp/diff_new_pack.VJ3U4D/_new 2023-04-04 21:24:37.782627162 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-unix-time # -# Copyright (c) 2022 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,25 +17,35 @@ %global pkg_name unix-time +%global pkgver %{pkg_name}-%{version} %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.4.8 +Version: 0.4.9 Release: 0 Summary: Unix time parser/formatter and utilities 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-binary-devel +BuildRequires: ghc-binary-prof BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-bytestring-prof BuildRequires: ghc-old-time-devel +BuildRequires: ghc-old-time-prof BuildRequires: ghc-rpm-macros ExcludeArch: %{ix86} %if %{with tests} BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-QuickCheck-prof BuildRequires: ghc-hspec-devel +BuildRequires: ghc-hspec-prof BuildRequires: ghc-old-locale-devel +BuildRequires: ghc-old-locale-prof BuildRequires: ghc-time-devel +BuildRequires: ghc-time-prof %endif %description @@ -51,6 +61,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} @@ -74,4 +100,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 ++++++ unix-time-0.4.8.tar.gz -> unix-time-0.4.9.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/unix-time-0.4.8/Data/UnixTime/Conv.hs new/unix-time-0.4.9/Data/UnixTime/Conv.hs --- old/unix-time-0.4.8/Data/UnixTime/Conv.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/unix-time-0.4.9/Data/UnixTime/Conv.hs 2001-09-09 03:46:40.000000000 +0200 @@ -1,4 +1,5 @@ -{-# LANGUAGE OverloadedStrings, ForeignFunctionInterface #-} +{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE OverloadedStrings #-} module Data.UnixTime.Conv ( formatUnixTime, formatUnixTimeGMT @@ -9,7 +10,7 @@ ) where import Control.Applicative -import Data.ByteString +import Data.ByteString.Char8 import Data.ByteString.Unsafe import Data.UnixTime.Types import Foreign.C.String @@ -21,6 +22,7 @@ -- $setup -- >>> import Data.Function (on) +-- >>> :set -XOverloadedStrings foreign import ccall unsafe "c_parse_unix_time" c_parse_unix_time :: CString -> CString -> IO CTime diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/unix-time-0.4.8/Data/UnixTime/Diff.hs new/unix-time-0.4.9/Data/UnixTime/Diff.hs --- old/unix-time-0.4.8/Data/UnixTime/Diff.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/unix-time-0.4.9/Data/UnixTime/Diff.hs 2001-09-09 03:46:40.000000000 +0200 @@ -11,6 +11,9 @@ import Data.Int import Foreign.C.Types +-- $setup +-- >>> :set -XOverloadedStrings + ---------------------------------------------------------------- calc :: CTime -> Int32 -> UnixDiffTime @@ -63,7 +66,7 @@ -- | Adding difference to 'UnixTime'. -- --- >>> UnixTime 100 2000 `addUnixDiffTime` microSecondsToUnixDiffTime (-1003000) +-- >>> UnixTime 100 2000 `addUnixDiffTime` microSecondsToUnixDiffTime ((-1003000) :: Int) -- UnixTime {utSeconds = 98, utMicroSeconds = 999000} addUnixDiffTime :: UnixTime -> UnixDiffTime -> UnixTime @@ -71,7 +74,7 @@ -- | Creating difference from seconds. -- --- >>> secondsToUnixDiffTime 100 +-- >>> secondsToUnixDiffTime (100 :: Int) -- UnixDiffTime {udtSeconds = 100, udtMicroSeconds = 0} secondsToUnixDiffTime :: (Integral a) => a -> UnixDiffTime @@ -80,10 +83,10 @@ -- | Creating difference from micro seconds. -- --- >>> microSecondsToUnixDiffTime 12345678 +-- >>> microSecondsToUnixDiffTime (12345678 :: Int) -- UnixDiffTime {udtSeconds = 12, udtMicroSeconds = 345678} -- --- >>> microSecondsToUnixDiffTime (-12345678) +-- >>> microSecondsToUnixDiffTime ((-12345678) :: Int) -- UnixDiffTime {udtSeconds = -12, udtMicroSeconds = -345678} microSecondsToUnixDiffTime :: (Integral a) => a -> UnixDiffTime diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/unix-time-0.4.8/test/doctests.hs new/unix-time-0.4.9/test/doctests.hs --- old/unix-time-0.4.8/test/doctests.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/unix-time-0.4.9/test/doctests.hs 1970-01-01 01:00:00.000000000 +0100 @@ -1,12 +0,0 @@ -module Main where - -import Build_doctests (flags, pkgs, module_sources) -import Data.Foldable (traverse_) -import Test.DocTest (doctest) - -main :: IO () -main = do - traverse_ putStrLn args - doctest args - where - args = ["-XOverloadedStrings"] ++ flags ++ pkgs ++ module_sources diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/unix-time-0.4.8/unix-time.cabal new/unix-time-0.4.9/unix-time.cabal --- old/unix-time-0.4.8/unix-time.cabal 2001-09-09 03:46:40.000000000 +0200 +++ new/unix-time-0.4.9/unix-time.cabal 2001-09-09 03:46:40.000000000 +0200 @@ -1,74 +1,76 @@ -Name: unix-time -Version: 0.4.8 -Author: Kazu Yamamoto <[email protected]> -Maintainer: Kazu Yamamoto <[email protected]> -License: BSD3 -License-File: LICENSE -Synopsis: Unix time parser/formatter and utilities -Description: Fast parser\/formatter\/utilities for Unix time -Category: Data -Cabal-Version: 1.18 -Build-Type: Configure -Extra-Source-Files: cbits/config.h.in - cbits/conv.c - cbits/strftime.c - cbits/strptime.c - cbits/win_patch.c - cbits/win_patch.h - configure - configure.ac -Extra-Tmp-Files: config.log config.status autom4te.cache cbits/config.h - -Library - Default-Language: Haskell2010 - GHC-Options: -Wall - if impl(ghc >= 7.8) - CC-Options: -fPIC - Exposed-Modules: Data.UnixTime - Other-Modules: Data.UnixTime.Conv - Data.UnixTime.Diff - Data.UnixTime.Types - Data.UnixTime.Sys - Build-Depends: base >= 4 && < 5 - , bytestring - , old-time - , binary - Build-Tools: hsc2hs - C-Sources: cbits/conv.c - if os(windows) - C-Sources: cbits/strftime.c - , cbits/strptime.c - , cbits/win_patch.c - include-dirs: cbits - -Test-Suite doctests - Buildable: False - Type: exitcode-stdio-1.0 - Default-Language: Haskell2010 - HS-Source-Dirs: test - Ghc-Options: -threaded -Wall - Main-Is: doctests.hs - Build-Depends: base - , doctest >= 0.9.3 - , unix-time - -Test-Suite spec - Type: exitcode-stdio-1.0 - Default-Language: Haskell2010 - Hs-Source-Dirs: test - Ghc-Options: -Wall - Main-Is: Spec.hs - Other-Modules: UnixTimeSpec - Build-Tools: hspec-discover >= 2.6 - Build-Depends: base - , bytestring - , old-locale - , old-time - , QuickCheck - , time - , unix-time - , hspec >= 2.6 - -Source-Repository head - Type: git - Location: https://github.com/kazu-yamamoto/unix-time +cabal-version: 1.18 +name: unix-time +version: 0.4.9 +license: BSD3 +license-file: LICENSE +maintainer: Kazu Yamamoto <[email protected]> +author: Kazu Yamamoto <[email protected]> +synopsis: Unix time parser/formatter and utilities +description: Fast parser\/formatter\/utilities for Unix time +category: Data +build-type: Configure +extra-source-files: + cbits/config.h.in + cbits/conv.c + cbits/strftime.c + cbits/strptime.c + cbits/win_patch.c + cbits/win_patch.h + configure + configure.ac + +extra-tmp-files: + config.log + config.status + autom4te.cache + cbits/config.h + +source-repository head + type: git + location: https://github.com/kazu-yamamoto/unix-time + +library + exposed-modules: Data.UnixTime + build-tools: hsc2hs >=0 + c-sources: cbits/conv.c + other-modules: + Data.UnixTime.Conv + Data.UnixTime.Diff + Data.UnixTime.Types + Data.UnixTime.Sys + + default-language: Haskell2010 + include-dirs: cbits + ghc-options: -Wall + build-depends: + base >=4 && <5, + bytestring, + old-time, + binary + + if impl(ghc >=7.8) + cc-options: -fPIC + + if os(windows) + c-sources: + cbits/strftime.c + cbits/strptime.c + cbits/win_patch.c + +test-suite spec + type: exitcode-stdio-1.0 + main-is: Spec.hs + build-tools: hspec-discover >=2.6 + hs-source-dirs: test + other-modules: UnixTimeSpec + default-language: Haskell2010 + ghc-options: -Wall + build-depends: + base, + bytestring, + old-locale, + old-time, + QuickCheck, + time, + unix-time, + hspec >=2.6
