diff --git a/_service b/_service
index a6db7f5..72b3b22 100644
--- a/_service
+++ b/_service
@@ -3,8 +3,8 @@
https://github.com/grafana/grafana
git
.git
- 5.0.0
- v5.0.0
+ 5.1.3
+ v5.1.3
enable
diff --git a/_servicedata b/_servicedata
index d05551f..281f775 100644
--- a/_servicedata
+++ b/_servicedata
@@ -1,4 +1,4 @@
https://github.com/grafana/grafana
- af6e28366bf3413ee3af56c540513dd70f467c41
\ No newline at end of file
+ ab0dc3f086d000d0eabade60080d939b6234b223
\ No newline at end of file
diff --git a/grafana-5.0.0.tar.xz b/grafana-5.0.0.tar.xz
deleted file mode 100644
index 17049f7..0000000
--- a/grafana-5.0.0.tar.xz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:5647b158b4961fba4f70c945c74610a4baf25eca607aa892a22d3582d83cfed1
-size 30139268
diff --git a/grafana-5.1.3.tar.xz b/grafana-5.1.3.tar.xz
new file mode 100644
index 0000000..bb99bba
--- /dev/null
+++ b/grafana-5.1.3.tar.xz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d2f6b983c888b99127055eba599683b55dc0e1cb768a04a2a11b76ca11a7e5ef
+size 30437932
diff --git a/grafana.changes b/grafana.changes
index 206c016..1dd8132 100644
--- a/grafana.changes
+++ b/grafana.changes
@@ -1,3 +1,24 @@
+-------------------------------------------------------------------
+Sat Jun 16 16:04:55 UTC 2018 - opensuse-packaging@opensuse.org
+
+- Update to version 5.1.3:
+ * Heatmap support for Prometheus
+ * Align Zero-Line for Right and Left Y-axes
+ * allow setting the database
+ * MSSQL Data Source
+ * support multiple histogram series
+ * support cloudwatch high resolution query
+ * Added radiation units
+ * Modify Grafana Pagerduty notifier to use Pagerduty API V2
+ * prometheus editor: variable autocomplete support
+ * Use net.SplitHostPort to support IPv6
+ * See /usr/share/doc/packages/grafana/CHANGELOG.md for more details
+
+-------------------------------------------------------------------
+Sat Jun 16 16:01:25 UTC 2018 - mc@suse.com
+
+- remove unknown build flag -s
+
-------------------------------------------------------------------
Sat May 5 09:47:06 UTC 2018 - dmueller@suse.com
diff --git a/grafana.spec b/grafana.spec
index f758e7e..4241e95 100644
--- a/grafana.spec
+++ b/grafana.spec
@@ -26,7 +26,7 @@
%endif
Name: grafana
-Version: 5.0.0
+Version: 5.1.3
Release: 0
Summary: Dashboards and editors for Graphite, InfluxDB, OpenTSDB
License: Apache-2.0
@@ -68,7 +68,7 @@ dashboards and data with teams.
# (The %%gobuild macro can't take quoted strings; they get split up when
# expanded to $extra_flags in process_build() in /usr/lib/rpm/golang.sh.)
export IMPORTPATH="github.com/grafana/grafana"
-export BUILDFLAGS="-s -v -p 4 -x -buildmode=pie"
+export BUILDFLAGS="-v -p 4 -x -buildmode=pie"
export GOPATH=%{_builddir}/go:%{_builddir}/contrib
export GOBIN=%{_builddir}/go/bin
go install $BUILDFLAGS -ldflags '-X main.version=%{version}' $IMPORTPATH/pkg/cmd/...
@@ -104,7 +104,7 @@ install -d -m755 %{buildroot}%{_datadir}/%{name}/tools
# will not work for other architectures, so instead we remove the phantomjs
# binary and install a symlink to the systemwide /usr/bin/phantomjs.
cp -pr tools/phantomjs %{buildroot}%{_datadir}/%{name}/tools/
-rm %{buildroot}%{_datadir}/%{name}/tools/phantomjs/phantomjs
+rm -f %{buildroot}%{_datadir}/%{name}/tools/phantomjs/phantomjs
ln -s %{_bindir}/phantomjs %{buildroot}%{_datadir}/%{name}/tools/phantomjs/phantomjs
# Do *not* use %%fudpes -s -- this will result in grafana failing to load