commit ghc-prometheus-client for openSUSE:Factory

2017-09-15 Thread root
Hello community,

here is the log from the commit of package ghc-prometheus-client for 
openSUSE:Factory checked in at 2017-09-15 22:06:56

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


Package is "ghc-prometheus-client"

Fri Sep 15 22:06:56 2017 rev:4 rq:525227 version:0.2.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-prometheus-client/ghc-prometheus-client.changes  
2017-08-31 20:57:59.454540149 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-prometheus-client.new/ghc-prometheus-client.changes
 2017-09-15 22:06:56.745413410 +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-prometheus-client.spec ++
--- /var/tmp/diff_new_pack.EjNtGa/_old  2017-09-15 22:06:57.321332266 +0200
+++ /var/tmp/diff_new_pack.EjNtGa/_new  2017-09-15 22:06:57.321332266 +0200
@@ -23,8 +23,8 @@
 Release:0
 Summary:Haskell client library for http://prometheus.io
 License:Apache-2.0
-Group:  Development/Languages/Other
-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-atomic-primops-devel
@@ -36,7 +36,6 @@
 BuildRequires:  ghc-stm-devel
 BuildRequires:  ghc-transformers-devel
 BuildRequires:  ghc-utf8-string-devel
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
 BuildRequires:  ghc-doctest-devel
@@ -49,7 +48,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}
@@ -78,10 +77,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-prometheus-client for openSUSE:Factory

2017-08-31 Thread root
Hello community,

here is the log from the commit of package ghc-prometheus-client for 
openSUSE:Factory checked in at 2017-08-31 20:57:58

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


Package is "ghc-prometheus-client"

Thu Aug 31 20:57:58 2017 rev:3 rq:513455 version:0.2.0

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-prometheus-client/ghc-prometheus-client.changes  
2017-06-04 01:55:06.444223618 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-prometheus-client.new/ghc-prometheus-client.changes
 2017-08-31 20:57:59.454540149 +0200
@@ -1,0 +2,5 @@
+Thu Jul 27 14:06:35 UTC 2017 - psim...@suse.com
+
+- Update to version 0.2.0.
+
+---

Old:

  prometheus-client-0.1.1.tar.gz

New:

  prometheus-client-0.2.0.tar.gz



Other differences:
--
++ ghc-prometheus-client.spec ++
--- /var/tmp/diff_new_pack.2NBGvc/_old  2017-08-31 20:58:00.366412027 +0200
+++ /var/tmp/diff_new_pack.2NBGvc/_new  2017-08-31 20:58:00.378410342 +0200
@@ -19,7 +19,7 @@
 %global pkg_name prometheus-client
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.1.1
+Version:0.2.0
 Release:0
 Summary:Haskell client library for http://prometheus.io
 License:Apache-2.0
@@ -29,11 +29,11 @@
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-atomic-primops-devel
 BuildRequires:  ghc-bytestring-devel
+BuildRequires:  ghc-clock-devel
 BuildRequires:  ghc-containers-devel
 BuildRequires:  ghc-mtl-devel
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-stm-devel
-BuildRequires:  ghc-time-devel
 BuildRequires:  ghc-transformers-devel
 BuildRequires:  ghc-utf8-string-devel
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ prometheus-client-0.1.1.tar.gz -> prometheus-client-0.2.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/prometheus-client-0.1.1/prometheus-client.cabal 
new/prometheus-client-0.2.0/prometheus-client.cabal
--- old/prometheus-client-0.1.1/prometheus-client.cabal 2017-04-30 
23:30:12.0 +0200
+++ new/prometheus-client-0.2.0/prometheus-client.cabal 2017-07-03 
00:06:02.0 +0200
@@ -1,5 +1,5 @@
 name:prometheus-client
-version: 0.1.1
+version: 0.2.0
 synopsis:Haskell client library for http://prometheus.io.
 description: Haskell client library for http://prometheus.io.
 homepage:https://github.com/fimad/prometheus-haskell
@@ -28,6 +28,8 @@
 , Prometheus.Metric
 , Prometheus.Metric.Counter
 , Prometheus.Metric.Gauge
+, Prometheus.Metric.Histogram
+, Prometheus.Metric.Observer
 , Prometheus.Metric.Summary
 , Prometheus.Metric.Vector
 , Prometheus.MonadMonitor
@@ -36,11 +38,11 @@
   atomic-primops >=0.4
 , base   >=4.7 && <5
 , bytestring >=0.9
+, clock
 , containers
 , mtl>=2
 , stm>=2.3
 , transformers
-, time
 , utf8-string
   ghc-options: -Wall
 
@@ -66,11 +68,11 @@
 , base   >=4.7 && <5
 , bytestring
 , containers
+, clock
 , hspec
 , mtl
 , random-shuffle
 , stm
-, time
 , transformers
 , utf8-string
   ghc-options: -Wall
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/prometheus-client-0.1.1/src/Prometheus/Metric/Counter.hs 
new/prometheus-client-0.2.0/src/Prometheus/Metric/Counter.hs
--- old/prometheus-client-0.1.1/src/Prometheus/Metric/Counter.hs
2017-04-30 00:58:18.0 +0200
+++ new/prometheus-client-0.2.0/src/Prometheus/Metric/Counter.hs
2017-07-02 23:55:13.0 +0200
@@ -10,10 +10,10 @@
 
 import Prometheus.Info
 import Prometheus.Metric
+import Prometheus.Metric.Observer (timeAction)
 import Prometheus.MonadMonitor
 
 import Control.Monad (unless)
-import Data.Time.Clock (diffUTCTime, getCurrentTime)
 import qualified Data.Atomics as Atomics
 import qualified Data.ByteString.UTF8 as BS
 import qualified Data.IORef as IORef
@@ -60,10 +60,8 @@
 -- | Add the duration of an IO action (in seconds) to a counter.
 addDurationToCounter :: IO a -> Metric Counter -> IO a
 addDurationToCounter io metric = do
-start  <- getCurrentTime
-result <- io
-end<- getCurrentTime
-addCounter (fromRational $ toRational $ end `diffUTCTime` start) metric
+(result, duration) <- timeAction io
+_ <- addCounter duration metric
 return result
 
 -- | Retrieves the current value of a counter metric.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 

commit ghc-prometheus-client for openSUSE:Factory

2017-06-03 Thread root
Hello community,

here is the log from the commit of package ghc-prometheus-client for 
openSUSE:Factory checked in at 2017-06-04 01:55:02

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


Package is "ghc-prometheus-client"

Sun Jun  4 01:55:02 2017 rev:2 rq:494182 version:0.1.1

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-prometheus-client/ghc-prometheus-client.changes  
2017-03-09 01:56:48.595203490 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-prometheus-client.new/ghc-prometheus-client.changes
 2017-06-04 01:55:06.444223618 +0200
@@ -1,0 +2,5 @@
+Wed May  3 08:24:08 UTC 2017 - psim...@suse.com
+
+- Update to version 0.1.1 with cabal2obs.
+
+---

Old:

  prometheus-client-0.1.0.1.tar.gz

New:

  prometheus-client-0.1.1.tar.gz



Other differences:
--
++ ghc-prometheus-client.spec ++
--- /var/tmp/diff_new_pack.9Kb7SD/_old  2017-06-04 01:55:07.780034895 +0200
+++ /var/tmp/diff_new_pack.9Kb7SD/_new  2017-06-04 01:55:07.780034895 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-prometheus-client
 #
-# 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,7 +19,7 @@
 %global pkg_name prometheus-client
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.1.0.1
+Version:0.1.1
 Release:0
 Summary:Haskell client library for http://prometheus.io
 License:Apache-2.0

++ prometheus-client-0.1.0.1.tar.gz -> prometheus-client-0.1.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/prometheus-client-0.1.0.1/prometheus-client.cabal 
new/prometheus-client-0.1.1/prometheus-client.cabal
--- old/prometheus-client-0.1.0.1/prometheus-client.cabal   2015-06-28 
21:07:24.0 +0200
+++ new/prometheus-client-0.1.1/prometheus-client.cabal 2017-04-30 
23:30:12.0 +0200
@@ -1,5 +1,5 @@
 name:prometheus-client
-version: 0.1.0.1
+version: 0.1.1
 synopsis:Haskell client library for http://prometheus.io.
 description: Haskell client library for http://prometheus.io.
 homepage:https://github.com/fimad/prometheus-haskell
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/prometheus-client-0.1.0.1/src/Prometheus/Export/Text.hs 
new/prometheus-client-0.1.1/src/Prometheus/Export/Text.hs
--- old/prometheus-client-0.1.0.1/src/Prometheus/Export/Text.hs 2015-06-28 
21:07:24.0 +0200
+++ new/prometheus-client-0.1.1/src/Prometheus/Export/Text.hs   2017-04-30 
00:58:18.0 +0200
@@ -28,7 +28,7 @@
 -- >>> exportMetricsAsText >>= Data.ByteString.putStr
 -- # HELP my_counter Example counter
 -- # TYPE my_counter counter
--- my_counter 1
+-- my_counter 1.0
 exportMetricsAsText :: IO BS.ByteString
 exportMetricsAsText = do
 samples <- collectMetrics
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/prometheus-client-0.1.0.1/src/Prometheus/Metric/Counter.hs 
new/prometheus-client-0.1.1/src/Prometheus/Metric/Counter.hs
--- old/prometheus-client-0.1.0.1/src/Prometheus/Metric/Counter.hs  
2015-06-28 21:07:24.0 +0200
+++ new/prometheus-client-0.1.1/src/Prometheus/Metric/Counter.hs
2017-04-30 00:58:18.0 +0200
@@ -2,6 +2,9 @@
 Counter
 ,   counter
 ,   incCounter
+,   addCounter
+,   unsafeAddCounter
+,   addDurationToCounter
 ,   getCounter
 ) where
 
@@ -9,32 +12,66 @@
 import Prometheus.Metric
 import Prometheus.MonadMonitor
 
-import qualified Data.Atomics.Counter as Atomics
+import Control.Monad (unless)
+import Data.Time.Clock (diffUTCTime, getCurrentTime)
+import qualified Data.Atomics as Atomics
 import qualified Data.ByteString.UTF8 as BS
+import qualified Data.IORef as IORef
 
 
-newtype Counter = MkCounter Atomics.AtomicCounter
+newtype Counter = MkCounter (IORef.IORef Double)
 
 -- | Creates a new counter metric with a given name and help string.
 counter :: Info -> IO (Metric Counter)
 counter info = do
-atomicCounter <- Atomics.newCounter 0
+ioref <- IORef.newIORef 0
 return Metric {
-handle = MkCounter atomicCounter
-,   collect = collectCounter info atomicCounter
+handle = MkCounter ioref
+,   collect = collectCounter info ioref
 }
 
+withCounter :: MonadMonitor m
+  => Metric Counter
+  -> (Double -> Double)
+ 

commit ghc-prometheus-client for openSUSE:Factory

2017-03-08 Thread root
Hello community,

here is the log from the commit of package ghc-prometheus-client for 
openSUSE:Factory checked in at 2017-03-09 01:56:48

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


Package is "ghc-prometheus-client"

Thu Mar  9 01:56:48 2017 rev:1 rq:423201 version:0.1.0.1

Changes:

New Changes file:

--- /dev/null   2017-03-01 00:40:19.279048016 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-prometheus-client.new/ghc-prometheus-client.changes
 2017-03-09 01:56:48.595203490 +0100
@@ -0,0 +1,5 @@
+---
+Sun Jul 10 17:31:31 UTC 2016 - psim...@suse.com
+
+- Update to version 0.1.0.1 revision 0 with cabal2obs.
+

New:

  ghc-prometheus-client.changes
  ghc-prometheus-client.spec
  prometheus-client-0.1.0.1.tar.gz



Other differences:
--
++ ghc-prometheus-client.spec ++
#
# spec file for package ghc-prometheus-client
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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/
#


%global pkg_name prometheus-client
%bcond_with tests
Name:   ghc-%{pkg_name}
Version:0.1.0.1
Release:0
Summary:Haskell client library for http://prometheus.io
License:Apache-2.0
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
BuildRequires:  ghc-atomic-primops-devel
BuildRequires:  ghc-bytestring-devel
BuildRequires:  ghc-containers-devel
BuildRequires:  ghc-mtl-devel
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-stm-devel
BuildRequires:  ghc-time-devel
BuildRequires:  ghc-transformers-devel
BuildRequires:  ghc-utf8-string-devel
BuildRoot:  %{_tmppath}/%{name}-%{version}-build
%if %{with tests}
BuildRequires:  ghc-QuickCheck-devel
BuildRequires:  ghc-doctest-devel
BuildRequires:  ghc-hspec-devel
BuildRequires:  ghc-random-shuffle-devel
%endif

%description
Haskell client library for http://prometheus.io.

%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}

%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
%cabal_test

%post devel
%ghc_pkg_recache

%postun devel
%ghc_pkg_recache

%files -f %{name}.files
%defattr(-,root,root,-)
%doc LICENSE

%files devel -f %{name}-devel.files
%defattr(-,root,root,-)

%changelog