commit ghc-clock for openSUSE:Factory

2020-08-28 Thread root
Hello community,

here is the log from the commit of package ghc-clock for openSUSE:Factory 
checked in at 2020-08-28 21:27:24

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


Package is "ghc-clock"

Fri Aug 28 21:27:24 2020 rev:13 rq:829214 version:0.8

Changes:

--- /work/SRC/openSUSE:Factory/ghc-clock/ghc-clock.changes  2020-06-19 
17:09:45.465471456 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-clock.new.3399/ghc-clock.changes
2020-08-28 21:27:25.97707 +0200
@@ -1,0 +2,5 @@
+Tue Aug 18 10:44:19 UTC 2020 - Peter Simons 
+
+- Replace %setup -q with the more modern %autosetup macro.
+
+---



Other differences:
--
++ ghc-clock.spec ++
--- /var/tmp/diff_new_pack.sasTp6/_old  2020-08-28 21:27:25.940497942 +0200
+++ /var/tmp/diff_new_pack.sasTp6/_new  2020-08-28 21:27:25.944497944 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-clock
 #
-# Copyright (c) 2019 SUSE LLC
+# 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
@@ -88,7 +88,7 @@
 This package provides the Haskell %{pkg_name} library development files.
 
 %prep
-%setup -q -n %{pkg_name}-%{version}
+%autosetup -n %{pkg_name}-%{version}
 
 %build
 %ghc_lib_build




commit ghc-clock for openSUSE:Factory

2020-06-19 Thread root
Hello community,

here is the log from the commit of package ghc-clock for openSUSE:Factory 
checked in at 2020-06-19 17:09:45

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


Package is "ghc-clock"

Fri Jun 19 17:09:45 2020 rev:12 rq:815054 version:0.8

Changes:

--- /work/SRC/openSUSE:Factory/ghc-clock/ghc-clock.changes  2019-12-27 
13:52:15.972611694 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-clock.new.3606/ghc-clock.changes
2020-06-19 17:09:45.465471456 +0200
@@ -1,0 +2,5 @@
+Tue Jun 16 11:13:53 UTC 2020 - Peter Simons 
+
+- Re-generate file with latest version of spec-cleaner.
+
+---



Other differences:
--
++ ghc-clock.spec ++
--- /var/tmp/diff_new_pack.IIs9uj/_old  2020-06-19 17:09:45.929472665 +0200
+++ /var/tmp/diff_new_pack.IIs9uj/_new  2020-06-19 17:09:45.933472675 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-clock
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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-clock for openSUSE:Factory

2019-12-27 Thread root
Hello community,

here is the log from the commit of package ghc-clock for openSUSE:Factory 
checked in at 2019-12-27 13:52:13

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


Package is "ghc-clock"

Fri Dec 27 13:52:13 2019 rev:11 rq:759359 version:0.8

Changes:

--- /work/SRC/openSUSE:Factory/ghc-clock/ghc-clock.changes  2019-05-09 
10:09:50.665102663 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-clock.new.6675/ghc-clock.changes
2019-12-27 13:52:15.972611694 +0100
@@ -1,0 +2,5 @@
+Fri Nov  8 16:13:24 UTC 2019 - Peter Simons 
+
+- Drop obsolete group attributes.
+
+---



Other differences:
--
++ ghc-clock.spec ++
--- /var/tmp/diff_new_pack.05RRwm/_old  2019-12-27 13:52:16.556612108 +0100
+++ /var/tmp/diff_new_pack.05RRwm/_new  2019-12-27 13:52:16.560612111 +0100
@@ -23,7 +23,6 @@
 Release:0
 Summary:High-resolution clock functions: monotonic, realtime, cputime
 License:BSD-3-Clause
-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
@@ -80,7 +79,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-clock for openSUSE:Factory

2019-05-09 Thread root
Hello community,

here is the log from the commit of package ghc-clock for openSUSE:Factory 
checked in at 2019-05-09 10:09:49

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


Package is "ghc-clock"

Thu May  9 10:09:49 2019 rev:10 rq:700196 version:0.8

Changes:

--- /work/SRC/openSUSE:Factory/ghc-clock/ghc-clock.changes  2018-10-25 
08:23:18.363885320 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-clock.new.5148/ghc-clock.changes
2019-05-09 10:09:50.665102663 +0200
@@ -1,0 +2,6 @@
+Wed May  1 02:03:10 UTC 2019 - psim...@suse.com
+
+- Update clock to version 0.8.
+  Upstream does not provide a change log file.
+
+---

Old:

  clock-0.7.2.tar.gz

New:

  clock-0.8.tar.gz



Other differences:
--
++ ghc-clock.spec ++
--- /var/tmp/diff_new_pack.dcN8ox/_old  2019-05-09 10:09:51.201104198 +0200
+++ /var/tmp/diff_new_pack.dcN8ox/_new  2019-05-09 10:09:51.205104209 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-clock
 #
-# 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 clock
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.7.2
+Version:0.8
 Release:0
 Summary:High-resolution clock functions: monotonic, realtime, cputime
 License:BSD-3-Clause
@@ -71,6 +71,8 @@
 Fixes for older Linux build failures introduced by new Linux-specific clocks by
 Mario Longobardi on 2016-04-18.
 
+Refreshment release in 2019-04 after numerous contributions.
+
 [Version Scheme] Major-'/R/'-ewrite . New-'/F/'-unctionality .
 '/I/'-mprovementAndBugFixes . '/P/'-ackagingOnly
 

++ clock-0.7.2.tar.gz -> clock-0.8.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/clock-0.7.2/System/Clock.hsc 
new/clock-0.8/System/Clock.hsc
--- old/clock-0.7.2/System/Clock.hsc2016-04-20 03:14:45.0 +0200
+++ new/clock-0.8/System/Clock.hsc  2019-04-26 15:37:49.0 +0200
@@ -41,7 +41,9 @@
 #  endif
 #endif
 
-#let alignment t = "%lu", (unsigned long)offsetof(struct {char x__; t (y__); 
}, y__)
+#if __GLASGOW_HASKELL__ < 800
+#  let alignment t = "%lu", (unsigned long)offsetof(struct {char x__; t (y__); 
}, y__)
+#endif
 
 -- | Clock types. A clock may be system-wide (that is, visible to all 
processes)
 --   or per-process (measuring time that is meaningful only within a process).
@@ -126,12 +128,12 @@
 foreign import ccall hs_clock_darwin_gettime :: #{type clock_id_t} -> Ptr 
TimeSpec -> IO ()
 foreign import ccall hs_clock_darwin_getres  :: #{type clock_id_t} -> Ptr 
TimeSpec -> IO ()
 #else
-foreign import ccall clock_gettime :: #{type clockid_t} -> Ptr TimeSpec -> IO 
()
-foreign import ccall clock_getres  :: #{type clockid_t} -> Ptr TimeSpec -> IO 
()
+foreign import ccall unsafe clock_gettime :: #{type clockid_t} -> Ptr TimeSpec 
-> IO ()
+foreign import ccall unsafe clock_getres  :: #{type clockid_t} -> Ptr TimeSpec 
-> IO ()
 #endif
 
-#if defined(_WIN32)
-#elif defined(__MACH__) && defined(__APPLE__)
+#if !defined(_WIN32)
+#if defined(__MACH__) && defined(__APPLE__)
 clockToConst :: Clock -> #{type clock_id_t}
 clockToConst Monotonic = #const SYSTEM_CLOCK
 clockToConst  Realtime = #const CALENDAR_CLOCK
@@ -143,23 +145,20 @@
 clockToConst  Realtime = #const CLOCK_REALTIME
 clockToConst ProcessCPUTime = #const CLOCK_PROCESS_CPUTIME_ID
 clockToConst  ThreadCPUTime = #const CLOCK_THREAD_CPUTIME_ID
+#endif
 
 #if defined (CLOCK_MONOTONIC_RAW)
 clockToConstMonotonicRaw = #const CLOCK_MONOTONIC_RAW
 #endif
-
 #if defined (CLOCK_BOOTTIME)
 clockToConstBoottime = #const CLOCK_BOOTTIME
 #endif
-
 #if defined (CLOCK_MONOTONIC_COARSE)
 clockToConst MonotonicCoarse = #const CLOCK_MONOTONIC_COARSE
 #endif
-
 #if defined (CLOCK_REALTIME_COARSE)
 clockToConst  RealtimeCoarse = #const CLOCK_REALTIME_COARSE
 #endif
-
 #endif
 
 allocaAndPeek :: Storable a => (Ptr a -> IO ()) -> IO a
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/clock-0.7.2/bench/benchmarks.hs 
new/clock-0.8/bench/benchmarks.hs
--- old/clock-0.7.2/bench/benchmarks.hs 1970-01-01 01:00:00.0 +0100
+++ new/clock-0.8/bench/benchmarks.hs   2019-04-26 15:37:49.0 +0200
@@ -0,0 +1,26 @@
+{-# language CPP #-}
+module Main (main) where
+
+import Criterion.Main
+import System.Clock
+
+#if MIN_VERSION_base(4,11,0)
+import GHC.Clock
+#endif
+
+main :: IO ()
+main 

commit ghc-clock for openSUSE:Factory

2018-10-25 Thread root
Hello community,

here is the log from the commit of package ghc-clock for openSUSE:Factory 
checked in at 2018-10-25 08:23:14

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


Package is "ghc-clock"

Thu Oct 25 08:23:14 2018 rev:9 rq:643365 version:0.7.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-clock/ghc-clock.changes  2018-07-24 
17:15:55.346801294 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-clock.new/ghc-clock.changes 2018-10-25 
08:23:18.363885320 +0200
@@ -1,0 +2,5 @@
+Sat Oct 20 11:31:17 UTC 2018 - Peter Simons 
+
+- Use https URL to refer to bugs.opensuse.org.
+
+---



Other differences:
--
++ ghc-clock.spec ++
--- /var/tmp/diff_new_pack.TpSv9C/_old  2018-10-25 08:23:19.439884833 +0200
+++ /var/tmp/diff_new_pack.TpSv9C/_new  2018-10-25 08:23:19.443884831 +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-clock for openSUSE:Factory

2018-07-24 Thread root
Hello community,

here is the log from the commit of package ghc-clock for openSUSE:Factory 
checked in at 2018-07-24 17:15:52

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


Package is "ghc-clock"

Tue Jul 24 17:15:52 2018 rev:8 rq:623740 version:0.7.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-clock/ghc-clock.changes  2018-05-30 
12:25:05.186757756 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-clock.new/ghc-clock.changes 2018-07-24 
17:15:55.346801294 +0200
@@ -1,0 +2,6 @@
+Wed Jul 18 14:26:18 UTC 2018 - psim...@suse.com
+
+- Cosmetic: replace tabs with blanks, strip trailing white space,
+  and update copyright headers with spec-cleaner.
+
+---
@@ -42 +47,0 @@
-



Other differences:
--
++ ghc-clock.spec ++
--- /var/tmp/diff_new_pack.PL9jnW/_old  2018-07-24 17:15:56.054802210 +0200
+++ /var/tmp/diff_new_pack.PL9jnW/_new  2018-07-24 17:15:56.058802215 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-clock
 #
-# 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




commit ghc-clock for openSUSE:Factory

2018-05-30 Thread root
Hello community,

here is the log from the commit of package ghc-clock for openSUSE:Factory 
checked in at 2018-05-30 12:17:51

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


Package is "ghc-clock"

Wed May 30 12:17:51 2018 rev:7 rq:609770 version:0.7.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-clock/ghc-clock.changes  2017-09-15 
21:27:07.394100164 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-clock.new/ghc-clock.changes 2018-05-30 
12:25:05.186757756 +0200
@@ -1,0 +2,5 @@
+Wed May 16 13:06:53 UTC 2018 - psim...@suse.com
+
+- Prefer the new %license attribute over %doc.
+
+---



Other differences:
--
++ ghc-clock.spec ++
--- /var/tmp/diff_new_pack.IdKCu7/_old  2018-05-30 12:25:06.534713982 +0200
+++ /var/tmp/diff_new_pack.IdKCu7/_new  2018-05-30 12:25:06.538713853 +0200
@@ -106,7 +106,7 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%doc LICENSE
+%license LICENSE
 
 %files devel -f %{name}-devel.files
 




commit ghc-clock for openSUSE:Factory

2017-09-15 Thread root
Hello community,

here is the log from the commit of package ghc-clock for openSUSE:Factory 
checked in at 2017-09-15 21:27:05

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


Package is "ghc-clock"

Fri Sep 15 21:27:05 2017 rev:6 rq:524294 version:0.7.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-clock/ghc-clock.changes  2016-07-21 
08:03:28.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-clock.new/ghc-clock.changes 2017-09-15 
21:27:07.394100164 +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-clock.spec ++
--- /var/tmp/diff_new_pack.RvR7IT/_old  2017-09-15 21:27:08.090002083 +0200
+++ /var/tmp/diff_new_pack.RvR7IT/_new  2017-09-15 21:27:08.094001520 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-clock
 #
-# 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
@@ -23,18 +23,15 @@
 Release:0
 Summary:High-resolution clock functions: monotonic, realtime, cputime
 License:BSD-3-Clause
-Group:  System/Libraries
-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-rpm-macros
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-# Begin cabal-rpm deps:
 %if %{with tests}
 BuildRequires:  ghc-tasty-devel
 BuildRequires:  ghc-tasty-quickcheck-devel
 %endif
-# End cabal-rpm deps
 
 %description
 A package for convenient access to high-resolution clock and timer functions of
@@ -81,7 +78,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}
@@ -93,20 +90,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
@@ -115,10 +106,8 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%defattr(-,root,root,-)
 %doc LICENSE
 
 %files devel -f %{name}-devel.files
-%defattr(-,root,root,-)
 
 %changelog




commit ghc-clock for openSUSE:Factory

2016-07-21 Thread h_root
Hello community,

here is the log from the commit of package ghc-clock for openSUSE:Factory 
checked in at 2016-07-21 08:03:25

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


Package is "ghc-clock"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-clock/ghc-clock.changes  2016-05-31 
12:24:15.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-clock.new/ghc-clock.changes 2016-07-21 
08:03:28.0 +0200
@@ -1,0 +2,5 @@
+Sun Jul 10 17:01:52 UTC 2016 - psim...@suse.com
+
+- Update to version 0.7.2 revision 0 with cabal2obs.
+
+---



Other differences:
--
++ ghc-clock.spec ++
--- /var/tmp/diff_new_pack.uF2WZH/_old  2016-07-21 08:03:29.0 +0200
+++ /var/tmp/diff_new_pack.uF2WZH/_new  2016-07-21 08:03:29.0 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package ghc
+# spec file for package ghc-clock
 #
-# 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,46 +17,97 @@
 
 
 %global pkg_name clock
-
-Name:   ghc-clock
+%bcond_with tests
+Name:   ghc-%{pkg_name}
 Version:0.7.2
 Release:0
 Summary:High-resolution clock functions: monotonic, realtime, cputime
 License:BSD-3-Clause
 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
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+# Begin cabal-rpm deps:
+%if %{with tests}
+BuildRequires:  ghc-tasty-devel
+BuildRequires:  ghc-tasty-quickcheck-devel
+%endif
+# End cabal-rpm deps
 
 %description
 A package for convenient access to high-resolution clock and timer functions of
 different operating systems via a unified API.
 
+POSIX code and surface API was developed by Cetin Sert in 2009.
+
+Windows code was contributed by Eugene Kirpichov in 2010.
+
+FreeBSD code was contributed by Finn Espen Gundersen on 2013-10-14.
+
+OS X code was contributed by Gerolf Seitz on 2013-10-15.
+
+Derived 'Generic', 'Typeable' and other instances for 'Clock' and 'TimeSpec'
+was contributed by Mathieu Boespflug on 2014-09-17.
+
+Corrected dependency listing for 'GHC < 7.6' was contributed by Brian McKenna
+on 2014-09-30.
+
+Windows code corrected by Dimitri Sabadie on 2015-02-09.
+
+Added 'timeSpecAsNanoSecs' as observed widely-used by Chris Done on 2015-01-06,
+exported correctly on 2015-04-20.
+
+Imported Control.Applicative operators correctly for Haskell Platform on
+Windows on 2015-04-21.
+
+Unit tests and instance fixes by Christian Burger on 2015-06-25.
+
+Removal of fromInteger : Integer -> TimeSpec by Cetin Sert on 2015-12-15.
+
+New Linux-specific Clocks: MonotonicRaw, Boottime, MonotonicCoarse,
+RealtimeCoarse by Cetin Sert on 2015-12-15.
+
+Reintroduction fromInteger : Integer -> TimeSpec by Cetin Sert on 2016-04-05.
+
+Fixes for older Linux build failures introduced by new Linux-specific clocks by
+Mario Longobardi on 2016-04-18.
+
+[Version Scheme] Major-'/R/'-ewrite . New-'/F/'-unctionality .
+'/I/'-mprovementAndBugFixes . '/P/'-ackagingOnly
+
+* 'PackagingOnly' changes are made for quality assurance reasons.
+
 %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
+%endif
+
+
 %post devel
 %ghc_pkg_recache
 




commit ghc-clock for openSUSE:Factory

2016-05-31 Thread h_root
Hello community,

here is the log from the commit of package ghc-clock for openSUSE:Factory 
checked in at 2016-05-31 12:24:10

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


Package is "ghc-clock"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-clock/ghc-clock.changes  2016-01-08 
15:23:10.0 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-clock.new/ghc-clock.changes 2016-05-31 
12:24:15.0 +0200
@@ -2 +2 @@
-Mon Dec 21 09:09:09 UTC 2015 - mimi...@gmail.com
+Fri Apr 29 08:57:13 UTC 2016 - mimi...@gmail.com
@@ -4,6 +4 @@
-- update to 0.6.0.1 
-

-Thu Dec 17 10:36:50 UTC 2015 - mimi...@gmail.com
-
-- update to 0.5.2 
+- update to 0.7.2

Old:

  clock-0.6.0.1.tar.gz

New:

  clock-0.7.2.tar.gz



Other differences:
--
++ ghc-clock.spec ++
--- /var/tmp/diff_new_pack.xzRuqk/_old  2016-05-31 12:24:16.0 +0200
+++ /var/tmp/diff_new_pack.xzRuqk/_new  2016-05-31 12:24:16.0 +0200
@@ -19,7 +19,7 @@
 %global pkg_name clock
 
 Name:   ghc-clock
-Version:0.6.0.1
+Version:0.7.2
 Release:0
 Summary:High-resolution clock functions: monotonic, realtime, cputime
 License:BSD-3-Clause

++ clock-0.6.0.1.tar.gz -> clock-0.7.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/clock-0.6.0.1/System/Clock.hsc 
new/clock-0.7.2/System/Clock.hsc
--- old/clock-0.6.0.1/System/Clock.hsc  2015-12-15 12:42:48.0 +0100
+++ new/clock-0.7.2/System/Clock.hsc2016-04-20 03:14:45.0 +0200
@@ -13,6 +13,8 @@
   , TimeSpec(..)
   , getTime
   , getRes
+  , fromNanoSecs
+  , toNanoSecs
   , diffTimeSpec
   , timeSpecAsNanoSecs
   ) where
@@ -61,29 +63,30 @@
   = Monotonic
 
 -- | The identifier of the system-wide clock measuring real time. For this
---   clock, the value returned by getTime represents the amount of time (in
+--   clock, the value returned by 'getTime' represents the amount of time 
(in
 --   seconds and nanoseconds) since the Epoch.
   | Realtime
 
 -- | The identifier of the CPU-time clock associated with the calling
---   process. For this clock, the value returned by getTime represents the
+--   process. For this clock, the value returned by 'getTime' represents 
the
 --   amount of execution time of the current process.
   | ProcessCPUTime
 
 -- | The identifier of the CPU-time clock associated with the calling OS
---   thread. For this clock, the value returned by getTime represents the
+--   thread. For this clock, the value returned by 'getTime' represents the
 --   amount of execution time of the current OS thread.
   | ThreadCPUTime
 
-#if defined (linux_HOST_OS)
-
+#if defined (CLOCK_MONOTONIC_RAW)
 -- | (since Linux 2.6.28; Linux-specific)
 --   Similar to CLOCK_MONOTONIC, but provides access to a
 --   raw hardware-based time that is not subject to NTP
 --   adjustments or the incremental adjustments performed by
 --   adjtime(3).
   | MonotonicRaw
+#endif
 
+#if defined (CLOCK_BOOTTIME)
 -- | (since Linux 2.6.39; Linux-specific)
 --   Identical to CLOCK_MONOTONIC, except it also includes
 --   any time that the system is suspended.  This allows
@@ -92,17 +95,20 @@
 --   CLOCK_REALTIME, which may have discontinuities if the
 --   time is changed using settimeofday(2).
   | Boottime
+#endif
 
+#if defined (CLOCK_MONOTONIC_COARSE)
 -- | (since Linux 2.6.32; Linux-specific)
 --   A faster but less precise version of CLOCK_MONOTONIC.
 --   Use when you need very fast, but not fine-grained timestamps.
   | MonotonicCoarse
+#endif
 
+#if defined (CLOCK_REALTIME_COARSE)
 -- | (since Linux 2.6.32; Linux-specific)
 --   A faster but less precise version of CLOCK_REALTIME.
 --   Use when you need very fast, but not fine-grained timestamps.
   | RealtimeCoarse
-
 #endif
 
   deriving (Eq, Enum, Generic, Read, Show, Typeable)
@@ -137,12 +143,23 @@
 clockToConst  Realtime = #const CLOCK_REALTIME
 clockToConst ProcessCPUTime = #const CLOCK_PROCESS_CPUTIME_ID
 clockToConst  ThreadCPUTime = #const CLOCK_THREAD_CPUTIME_ID
-#if defined (linux_HOST_OS)
+
+#if defined (CLOCK_MONOTONIC_RAW)
 clockToConstMonotonicRaw = #const CLOCK_MONOTONIC_RAW
+#endif
+
+#if defined (CLOCK_BOOTTIME)
 clockToConstBoottime = #const CLOCK_BOOTTIME
+#endif
+
+#if defined (CLOCK_MONOTONIC_COARSE)
 clockToConst MonotonicCoarse = #const CLOCK_MONOTONIC_COARSE
+#endif
+
+#if defined (CLOCK_REALTIME_COARSE)
 clockToConst  RealtimeCoarse = #const CLOCK_REALTIME_COARSE
 #endif
+
 #endif
 
 allocaAndPeek :: 

commit ghc-clock for openSUSE:Factory

2016-01-08 Thread h_root
Hello community,

here is the log from the commit of package ghc-clock for openSUSE:Factory 
checked in at 2016-01-08 15:23:08

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


Package is "ghc-clock"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-clock/ghc-clock.changes  2015-08-23 
17:38:47.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-clock.new/ghc-clock.changes 2016-01-08 
15:23:10.0 +0100
@@ -1,0 +2,10 @@
+Mon Dec 21 09:09:09 UTC 2015 - mimi...@gmail.com
+
+- update to 0.6.0.1 
+
+---
+Thu Dec 17 10:36:50 UTC 2015 - mimi...@gmail.com
+
+- update to 0.5.2 
+
+---

Old:

  clock-0.5.1.tar.gz

New:

  clock-0.6.0.1.tar.gz



Other differences:
--
++ ghc-clock.spec ++
--- /var/tmp/diff_new_pack.F87mha/_old  2016-01-08 15:23:10.0 +0100
+++ /var/tmp/diff_new_pack.F87mha/_new  2016-01-08 15:23:10.0 +0100
@@ -19,7 +19,7 @@
 %global pkg_name clock
 
 Name:   ghc-clock
-Version:0.5.1
+Version:0.6.0.1
 Release:0
 Summary:High-resolution clock functions: monotonic, realtime, cputime
 License:BSD-3-Clause

++ clock-0.5.1.tar.gz -> clock-0.6.0.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/clock-0.5.1/System/Clock.hsc 
new/clock-0.6.0.1/System/Clock.hsc
--- old/clock-0.5.1/System/Clock.hsc2015-06-28 01:57:26.0 +0200
+++ new/clock-0.6.0.1/System/Clock.hsc  2015-12-15 12:42:48.0 +0100
@@ -43,8 +43,10 @@
 
 -- | Clock types. A clock may be system-wide (that is, visible to all 
processes)
 --   or per-process (measuring time that is meaningful only within a process).
---   All implementations shall support CLOCK_REALTIME.
+--   All implementations shall support CLOCK_REALTIME. (The only suspend-aware
+--   monotonic is CLOCK_BOOTTIME on Linux.)
 data Clock
+
 -- | The identifier for the system-wide monotonic clock, which is defined 
as
 --   a clock measuring real time, whose value cannot be set via
 --   @clock_settime@ and which cannot have negative clock jumps. The 
maximum
@@ -57,18 +59,52 @@
 --   thus there is no need to set it. Furthermore, realtime applications 
can
 --   rely on the fact that the value of this clock is never set.
   = Monotonic
+
 -- | The identifier of the system-wide clock measuring real time. For this
 --   clock, the value returned by getTime represents the amount of time (in
 --   seconds and nanoseconds) since the Epoch.
   | Realtime
+
 -- | The identifier of the CPU-time clock associated with the calling
 --   process. For this clock, the value returned by getTime represents the
 --   amount of execution time of the current process.
   | ProcessCPUTime
-  -- | The identifier of the CPU-time clock associated with the calling OS
-  --   thread. For this clock, the value returned by getTime represents the
-  --   amount of execution time of the current OS thread.
+
+-- | The identifier of the CPU-time clock associated with the calling OS
+--   thread. For this clock, the value returned by getTime represents the
+--   amount of execution time of the current OS thread.
   | ThreadCPUTime
+
+#if defined (linux_HOST_OS)
+
+-- | (since Linux 2.6.28; Linux-specific)
+--   Similar to CLOCK_MONOTONIC, but provides access to a
+--   raw hardware-based time that is not subject to NTP
+--   adjustments or the incremental adjustments performed by
+--   adjtime(3).
+  | MonotonicRaw
+
+-- | (since Linux 2.6.39; Linux-specific)
+--   Identical to CLOCK_MONOTONIC, except it also includes
+--   any time that the system is suspended.  This allows
+--   applications to get a suspend-aware monotonic clock
+--   without having to deal with the complications of
+--   CLOCK_REALTIME, which may have discontinuities if the
+--   time is changed using settimeofday(2).
+  | Boottime
+
+-- | (since Linux 2.6.32; Linux-specific)
+--   A faster but less precise version of CLOCK_MONOTONIC.
+--   Use when you need very fast, but not fine-grained timestamps.
+  | MonotonicCoarse
+
+-- | (since Linux 2.6.32; Linux-specific)
+--   A faster but less precise version of CLOCK_REALTIME.
+--   Use when you need very fast, but not fine-grained timestamps.
+  | RealtimeCoarse
+
+#endif
+
   deriving (Eq, Enum, Generic, Read, Show, Typeable)
 
 #if defined(_WIN32)
@@ -92,15 +128,21 @@
 #elif defined(__MACH__) && defined(__APPLE__)
 clockToConst :: Clock -> #{type clock_id_t}
 clockToConst Monotonic = 

commit ghc-clock for openSUSE:Factory

2015-08-23 Thread h_root
Hello community,

here is the log from the commit of package ghc-clock for openSUSE:Factory 
checked in at 2015-08-23 15:43:04

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


Package is ghc-clock

Changes:

--- /work/SRC/openSUSE:Factory/ghc-clock/ghc-clock.changes  2015-05-21 
08:35:36.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-clock.new/ghc-clock.changes 2015-08-23 
17:38:47.0 +0200
@@ -1,0 +2,5 @@
+Thu Aug  6 19:54:15 UTC 2015 - mimi...@gmail.com
+
+- update to 0.5.1 
+
+---

Old:

  clock-0.4.6.0.tar.gz

New:

  clock-0.5.1.tar.gz



Other differences:
--
++ ghc-clock.spec ++
--- /var/tmp/diff_new_pack.gMpv0r/_old  2015-08-23 17:38:48.0 +0200
+++ /var/tmp/diff_new_pack.gMpv0r/_new  2015-08-23 17:38:48.0 +0200
@@ -18,8 +18,8 @@
 
 %global pkg_name clock
 
-Name:   ghc-%{pkg_name}
-Version:0.4.6.0
+Name:   ghc-clock
+Version:0.5.1
 Release:0
 Summary:High-resolution clock functions: monotonic, realtime, cputime
 License:BSD-3-Clause

++ clock-0.4.6.0.tar.gz - clock-0.5.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/clock-0.4.6.0/System/Clock.hsc 
new/clock-0.5.1/System/Clock.hsc
--- old/clock-0.4.6.0/System/Clock.hsc  2015-05-08 15:39:59.0 +0200
+++ new/clock-0.5.1/System/Clock.hsc2015-06-28 01:57:26.0 +0200
@@ -4,6 +4,9 @@
 --   
http://www.opengroup.org/onlinepubs/9699919799/functions/clock_getres.html#
 
 {-# OPTIONS_GHC -fno-warn-type-defaults #-}
+-- To allow importing Data.Int and Data.Word indiscriminately on all platforms,
+-- since we can't systematically predict what typedef's expand to.
+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
 
 module System.Clock
   ( Clock(..)
@@ -16,6 +19,7 @@
 
 import Control.Applicative (($), (*))
 import Data.Int
+import Data.Word
 import Data.Typeable (Typeable)
 import Foreign.Ptr
 import Foreign.Storable
@@ -24,7 +28,7 @@
 
 #if defined(_WIN32)
 #  include hs_clock_win32.c
-#elif defined(__MACH__)
+#elif defined(__MACH__)  defined(__APPLE__)
 #  include hs_clock_darwin.c
 #else
 #  include time.h
@@ -76,7 +80,7 @@
 foreign import ccall hs_clock_win32_getres_realtime :: Ptr TimeSpec - IO ()
 foreign import ccall hs_clock_win32_getres_processtime :: Ptr TimeSpec - IO ()
 foreign import ccall hs_clock_win32_getres_threadtime :: Ptr TimeSpec - IO ()
-#elif defined(__MACH__)
+#elif defined(__MACH__)  defined(__APPLE__)
 foreign import ccall hs_clock_darwin_gettime :: #{type clock_id_t} - Ptr 
TimeSpec - IO ()
 foreign import ccall hs_clock_darwin_getres  :: #{type clock_id_t} - Ptr 
TimeSpec - IO ()
 #else
@@ -85,7 +89,7 @@
 #endif
 
 #if defined(_WIN32)
-#elif defined(__MACH__)
+#elif defined(__MACH__)  defined(__APPLE__)
 clockToConst :: Clock - #{type clock_id_t}
 clockToConst Monotonic = #const SYSTEM_CLOCK
 clockToConst Realtime = #const CALENDAR_CLOCK
@@ -116,7 +120,7 @@
 getTime Realtime = allocaAndPeek hs_clock_win32_gettime_realtime
 getTime ProcessCPUTime = allocaAndPeek hs_clock_win32_gettime_processtime
 getTime ThreadCPUTime = allocaAndPeek hs_clock_win32_gettime_threadtime
-#elif defined(__MACH__)
+#elif defined(__MACH__)  defined(__APPLE__)
 getTime clk = allocaAndPeek $ hs_clock_darwin_gettime $ clockToConst clk
 #else
 getTime clk = allocaAndPeek $ clock_gettime $ clockToConst clk
@@ -127,7 +131,7 @@
 getRes Realtime = allocaAndPeek hs_clock_win32_getres_realtime
 getRes ProcessCPUTime = allocaAndPeek hs_clock_win32_getres_processtime
 getRes ThreadCPUTime = allocaAndPeek hs_clock_win32_getres_threadtime
-#elif defined(__MACH__)
+#elif defined(__MACH__)  defined(__APPLE__)
 getRes clk = allocaAndPeek $ hs_clock_darwin_getres $ clockToConst clk
 #else
 getRes clk = allocaAndPeek $ clock_getres $ clockToConst clk
@@ -137,7 +141,7 @@
 data TimeSpec = TimeSpec
   { sec  :: {-# UNPACK #-} !Int64 -- ^ seconds
   , nsec :: {-# UNPACK #-} !Int64 -- ^ nanoseconds
-  } deriving (Eq, Generic, Read, Show, Typeable)
+  } deriving (Generic, Read, Show, Typeable)
 
 #if defined(_WIN32)
 instance Storable TimeSpec where
@@ -166,31 +170,53 @@
 #endif
 
 normalize :: TimeSpec - TimeSpec
-normalize (TimeSpec xs xn) =
+normalize (TimeSpec xs xn)
+  | xn  0 || xn = 10^9 =
 let (q, r) = xn `divMod` (10^9)
 in TimeSpec (xs + q) r
+  | otherwise= TimeSpec xs xn
 
 instance Num TimeSpec where
   (TimeSpec xs xn) + (TimeSpec ys yn) =
   normalize $ TimeSpec (xs + ys) (xn + yn)
   (TimeSpec xs xn) - (TimeSpec ys yn) =
   normalize $ TimeSpec (xs - ys) (xn - yn)
-  (TimeSpec xs xn) *