Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package ghc-hslua-module-system for
openSUSE:Factory checked in at 2023-04-04 21:20:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-hslua-module-system (Old)
and /work/SRC/openSUSE:Factory/.ghc-hslua-module-system.new.19717 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-hslua-module-system"
Tue Apr 4 21:20:33 2023 rev:10 rq:1075906 version:1.0.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/ghc-hslua-module-system/ghc-hslua-module-system.changes
2022-08-01 21:28:53.585397251 +0200
+++
/work/SRC/openSUSE:Factory/.ghc-hslua-module-system.new.19717/ghc-hslua-module-system.changes
2023-04-04 21:20:46.049314927 +0200
@@ -1,0 +2,14 @@
+Thu Mar 30 17:07:04 UTC 2023 - Peter Simons <[email protected]>
+
+- Updated spec file to conform with ghc-rpm-macros-2.5.2.
+
+-------------------------------------------------------------------
+Tue Feb 14 16:16:50 UTC 2023 - Peter Simons <[email protected]>
+
+- Update hslua-module-system to version 1.0.3.
+ Upstream has edited the change log file since the last release in
+ a non-trivial way, i.e. they did more than just add a new entry
+ at the top. You can review the file at:
+ http://hackage.haskell.org/package/hslua-module-system-1.0.3/src/CHANGELOG.md
+
+-------------------------------------------------------------------
Old:
----
hslua-module-system-1.0.2.tar.gz
New:
----
hslua-module-system-1.0.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-hslua-module-system.spec ++++++
--- /var/tmp/diff_new_pack.pJ39XK/_old 2023-04-04 21:20:46.553317781 +0200
+++ /var/tmp/diff_new_pack.pJ39XK/_new 2023-04-04 21:20:46.561317827 +0200
@@ -1,7 +1,7 @@
#
# spec file for package ghc-hslua-module-system
#
-# 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,28 +17,41 @@
%global pkg_name hslua-module-system
+%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
-Version: 1.0.2
+Version: 1.0.3
Release: 0
Summary: Lua module wrapper around Haskell's System module
License: MIT
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-exceptions-devel
+BuildRequires: ghc-exceptions-prof
BuildRequires: ghc-hslua-core-devel
+BuildRequires: ghc-hslua-core-prof
BuildRequires: ghc-hslua-marshalling-devel
+BuildRequires: ghc-hslua-marshalling-prof
BuildRequires: ghc-hslua-packaging-devel
+BuildRequires: ghc-hslua-packaging-prof
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-temporary-devel
+BuildRequires: ghc-temporary-prof
BuildRequires: ghc-text-devel
+BuildRequires: ghc-text-prof
ExcludeArch: %{ix86}
%if %{with tests}
BuildRequires: ghc-tasty-devel
BuildRequires: ghc-tasty-hunit-devel
+BuildRequires: ghc-tasty-hunit-prof
BuildRequires: ghc-tasty-lua-devel
+BuildRequires: ghc-tasty-lua-prof
+BuildRequires: ghc-tasty-prof
%endif
%description
@@ -59,6 +72,22 @@
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}
@@ -83,4 +112,9 @@
%files devel -f %{name}-devel.files
%doc CHANGELOG.md
+%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
++++++ hslua-module-system-1.0.2.tar.gz -> hslua-module-system-1.0.3.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hslua-module-system-1.0.2/CHANGELOG.md
new/hslua-module-system-1.0.3/CHANGELOG.md
--- old/hslua-module-system-1.0.2/CHANGELOG.md 2001-09-09 03:46:40.000000000
+0200
+++ new/hslua-module-system-1.0.3/CHANGELOG.md 2001-09-09 03:46:40.000000000
+0200
@@ -2,6 +2,13 @@
`hslua-module-system` uses [PVP Versioning][].
+## hslua-module-system-1.0.3
+
+Released 2023-02-14.
+
+- Added new function `cputime` and field `cputime_precision`,
+ e.g. for benchmarking.
+
## hslua-module-system-1.0.2
Released 2022-02-19.
@@ -10,7 +17,7 @@
## hslua-module-system-1.0.1
-Released 29-01-2022.
+Released 2022-01-29.
- Relaxed upper bound of hslua-core, hslua-marshalling, and
hslua-packaging, allowing their respective version 2.1.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hslua-module-system-1.0.2/hslua-module-system.cabal
new/hslua-module-system-1.0.3/hslua-module-system.cabal
--- old/hslua-module-system-1.0.2/hslua-module-system.cabal 2001-09-09
03:46:40.000000000 +0200
+++ new/hslua-module-system-1.0.3/hslua-module-system.cabal 2001-09-09
03:46:40.000000000 +0200
@@ -1,6 +1,6 @@
cabal-version: 2.2
name: hslua-module-system
-version: 1.0.2
+version: 1.0.3
synopsis: Lua module wrapper around Haskell's System module.
description: Provides access to system information and
@@ -19,14 +19,13 @@
category: Foreign
extra-source-files: CHANGELOG.md
, test/test-system.lua
-tested-with: GHC == 8.0.2
- , GHC == 8.2.2
- , GHC == 8.4.4
+tested-with: GHC == 8.4.4
, GHC == 8.6.5
, GHC == 8.8.3
, GHC == 8.10.7
- , GHC == 9.0.1
- , GHC == 9.2.1
+ , GHC == 9.0.2
+ , GHC == 9.2.5
+ , GHC == 9.4.4
source-repository head
type: git
@@ -36,7 +35,7 @@
common common-options
default-language: Haskell2010
build-depends: base >= 4.8 && < 5
- , hslua-core >= 2.1 && < 2.3
+ , hslua-core >= 2.1 && < 2.4
, hslua-packaging >= 2.1 && < 2.3
, text >= 1.2 && < 2.1
default-extensions: LambdaCase
@@ -72,5 +71,5 @@
build-depends: hslua-module-system
, tasty >= 0.11
, tasty-hunit >= 0.9
- , tasty-lua >= 1.0 && < 1.1
+ , tasty-lua >= 1.0 && < 1.2
, text
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hslua-module-system-1.0.2/src/HsLua/Module/System.hs
new/hslua-module-system-1.0.3/src/HsLua/Module/System.hs
--- old/hslua-module-system-1.0.2/src/HsLua/Module/System.hs 2001-09-09
03:46:40.000000000 +0200
+++ new/hslua-module-system-1.0.3/src/HsLua/Module/System.hs 2001-09-09
03:46:40.000000000 +0200
@@ -20,9 +20,10 @@
, os
-- ** Functions
+ , cputime
, env
- , getwd
, getenv
+ , getwd
, ls
, mkdir
, rmdir
@@ -47,6 +48,7 @@
import qualified Data.Text as T
import qualified HsLua.Core as Lua
+import qualified System.CPUTime as CPUTime
import qualified System.Directory as Directory
import qualified System.Environment as Env
import qualified System.Info as Info
@@ -60,10 +62,12 @@
[ arch
, compiler_name
, compiler_version
+ , cputime_precision
, os
]
, moduleFunctions =
- [ env
+ [ cputime
+ , env
, getenv
, getwd
, ls
@@ -117,6 +121,18 @@
versionBranch Info.compilerVersion
}
+-- | Field containing the smallest measurable difference in CPU time.
+cputime_precision :: Field e
+cputime_precision = Field
+ { fieldName = "cputime_precision"
+ , fieldDescription = T.unlines
+ [ "The smallest measurable difference in CPU time that the"
+ , "implementation can record, and is given as an integral number of"
+ , "picoseconds."
+ ]
+ , fieldPushValue = pushIntegral CPUTime.cpuTimePrecision
+ }
+
-- | Field containing the operating system on which the program is
-- running.
os :: Field e
@@ -131,6 +147,18 @@
-- Functions
--
+-- | Access the CPU time, e.g. for benchmarking.
+cputime :: LuaError e => DocumentedFunction e
+cputime = defun "cputime"
+ ### ioToLua CPUTime.getCPUTime
+ =#> functionResult pushIntegral "integer" "CPU time in picoseconds"
+ #? T.unlines
+ [ "Returns the number of picoseconds CPU time used by the current"
+ , "program. The precision of this result may vary in different"
+ , "versions and on different platforms. See also the field"
+ , "`cputime_precision`."
+ ]
+
-- | Retrieve the entire environment
env :: LuaError e => DocumentedFunction e
env = defun "env"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hslua-module-system-1.0.2/test/test-system.lua
new/hslua-module-system-1.0.3/test/test-system.lua
--- old/hslua-module-system-1.0.2/test/test-system.lua 2001-09-09
03:46:40.000000000 +0200
+++ new/hslua-module-system-1.0.3/test/test-system.lua 2001-09-09
03:46:40.000000000 +0200
@@ -43,11 +43,20 @@
test('compiler_version', function ()
assert.are_equal(type(system.compiler_version), 'table')
end),
+ test('cputime_precision', function ()
+ assert.are_equal(type(system.cputime_precision), 'number')
+ end),
test('os', function ()
assert.are_equal(type(system.os), 'string')
end),
},
+ group 'cputime' {
+ test('returns a number', function ()
+ assert.are_equal(type(system.cputime()), 'number')
+ end),
+ },
+
group 'environment' {
test('getenv returns same result as os.getenv', function ()
assert.are_equal(system.getenv 'PATH', os.getenv 'PATH')