Hello community,

here is the log from the commit of package 
golang-github-prometheus-node_exporter for openSUSE:Factory checked in at 
2019-02-01 11:46:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/golang-github-prometheus-node_exporter 
(Old)
 and      
/work/SRC/openSUSE:Factory/.golang-github-prometheus-node_exporter.new.28833 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "golang-github-prometheus-node_exporter"

Fri Feb  1 11:46:40 2019 rev:2 rq:670151 version:0.17.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/golang-github-prometheus-node_exporter/golang-github-prometheus-node_exporter.changes
    2018-03-13 10:23:30.530909073 +0100
+++ 
/work/SRC/openSUSE:Factory/.golang-github-prometheus-node_exporter.new.28833/golang-github-prometheus-node_exporter.changes
 2019-02-01 11:46:40.768476442 +0100
@@ -1,0 +2,20 @@
+Tue Dec 11 17:07:54 UTC 2018 - Jan Fajerski <jan.fajer...@suse.com>
+
+- Update to 0.17.0
+  + includes breaking changes
+  + supvervisord collector reports start_time_seconds rather than uptime
+  + The wifi collector is disabled by default due to suspected caching issues 
and goroutine leaks
+  See https://github.com/prometheus/node_exporter/releases/tag/v0.17.0
+  for full changelog
+
+-------------------------------------------------------------------
+Thu Nov 29 12:49:34 UTC 2018 - Jan Fajerski <jan.fajer...@suse.com>
+
+- Update to 0.16.0
+  + includes breaking changes
+  + several metrics renamed
+  + split out cpu guest metrics
+  See https://github.com/prometheus/node_exporter/releases/tag/v0.16.0
+  for full changelog
+
+-------------------------------------------------------------------

Old:
----
  _service
  node_exporter-0.15.2.tar.xz

New:
----
  README
  node_exporter-v0.17.0.tar.xz
  update-tarball.sh

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

Other differences:
------------------
++++++ golang-github-prometheus-node_exporter.spec ++++++
--- /var/tmp/diff_new_pack.HrLmk7/_old  2019-02-01 11:46:41.252475945 +0100
+++ /var/tmp/diff_new_pack.HrLmk7/_new  2019-02-01 11:46:41.256475940 +0100
@@ -1,6 +1,7 @@
 #
 # spec file for package golang-github-prometheus-node_exporter
 #
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2017 Silvio Moioli <m...@suse.com>
 #
 # All modifications and additions to the file contributed by third parties
@@ -12,21 +13,25 @@
 # 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/
 #
 
+
 %{go_nostrip}
 
 Name:           golang-github-prometheus-node_exporter
-Version:        0.15.2
+Version:        0.17.0
 Release:        0
-License:        Apache-2.0
 Summary:        Prometheus exporter for machine metrics
-Url:            https://prometheus.io/
+License:        Apache-2.0
 Group:          System/Management
-Source:         node_exporter-%{version}.tar.xz
+Url:            https://prometheus.io/
+Source:         node_exporter-v%{version}.tar.xz
 Source1:        prometheus-node_exporter.service
+Source2:        README
+Source3:        update-tarball.sh
 BuildRequires:  fdupes
+BuildRequires:  go1.11
 BuildRequires:  golang-packaging
 BuildRequires:  xz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -40,12 +45,12 @@
 Prometheus exporter for hardware and OS metrics exposed by *NIX kernels, 
written in Go with pluggable metric collectors.
 
 %prep
-%setup -q -n node_exporter-%{version}
+%setup -q -n node_exporter
 
 %build
 make collector/fixtures/sys/.unpacked  # unpacks text fixtures required by 
gotest
 %goprep github.com/prometheus/node_exporter
-%gobuild
+%gobuild -mod=vendor ""
 
 %install
 %goinstall
@@ -57,7 +62,7 @@
 %fdupes %{buildroot}
 
 %check
-%gotest github.com/prometheus/node_exporter...
+%gotest github.com/prometheus/node_exporter -mod=vendor
 
 %pre
 %service_add_pre prometheus-node_exporter.service
@@ -75,7 +80,8 @@
 
 %files -f file.lst
 %defattr(-,root,root,-)
-%doc README.md LICENSE
+%doc README.md
+%license LICENSE
 %{_bindir}/node_exporter
 %{_unitdir}/prometheus-node_exporter.service
 %{_sbindir}/rcprometheus-node_exporter

++++++ README ++++++
To update the package:

- run update-tarball.sh to create a new tarball
- update the changes file
- osc commit

The update-tarball.sh script requires a go installation, the go dependency tool
dep and git to run.
++++++ update-tarball.sh ++++++
#!/bin/bash

set -x

if ! command -V go;
then
    echo "ERROR: could not find go binary"
    exit 1
fi

if ! command -V git;
then
    echo "ERROR: could not find git binary"
    exit 1
fi

WORK_DIR=$(mktemp -d -t)
function clean_up {
    echo "cleaning up..."
    rm -rf $WORK_DIR
}

trap clean_up EXIT SIGINT SIGTERM

PKG_DIR=$(pwd)
REPO_NAME="node_exporter"
REPO="https://github.com/prometheus/$REPO_NAME";
REV="v0.17.0"


cd $WORK_DIR
git clone "$REPO"
cd "$REPO_NAME"
git checkout $REV
VERSION="$(git describe)"
echo "Getting dependencies...might take a while"
go mod vendor
cd $PKG_DIR
tar -C "$WORK_DIR/$REPO_NAME/.." -cJf node_exporter-$VERSION.tar.xz \
    $REPO_NAME/node_exporter.go $REPO_NAME/go.mod $REPO_NAME/go.sum \
    $REPO_NAME/collector $REPO_NAME/vendor $REPO_NAME/Makefile \
    $REPO_NAME/Makefile.common $REPO_NAME/LICENSE $REPO_NAME/README.md \
    $REPO_NAME/ttar
# sed -i "s/^Version:.*/Version:       $VERSION/" 
golang-github-prometheus-node_exporter.spec

Reply via email to