Accepting request 706491 from home:jcavalheiro:monitoring

- Remove phantomjs dependency

OBS-URL: https://build.opensuse.org/request/show/706491
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/grafana?expand=0&rev=15
This commit is contained in:
Jan Fajerski 2019-05-30 14:48:25 +00:00 committed by Git OBS Bridge
parent 2cf3d5fe22
commit d302335b61
4 changed files with 11 additions and 14 deletions

View File

@ -21,6 +21,8 @@ tar:
tar -xf ../$$tar && \
cd $$basename && \
sed -i 's/base\///' public/sass/base/_fonts.scss && \
# patch frontend html template to remove phantomjs dependant link \
sed -i 's/<a.*<i class=".*fa-camera">.*<\/a>//g' public/app/features/dashboard/components/ShareModal/template.html && \
yarn install --pure-lockfile && \
grunt release && \
cp -pr tmp/public . && \
@ -28,6 +30,10 @@ tar:
cd .. && \
echo "Updating $$basename/tools $$basename/public in tarball..." && \
tar -rf ../$$tar $$basename/tools $$basename/public && \
# remove phantomjs binary \
tar -f ../$$tar --delete $$basename/tools/phantomjs/phantomjs && \
# remove go.mod and go.sum as we build exclusively using vendor deps \
tar -f ../$$tar --delete $$basename/go.mod $$basename/go.sum && \
cd .. && \
xz $$tar && \
rm -rf $$tmpdir

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:594263234768e37ca713ada0b56ddbc0a458b55fe0c71068aad54e0827082df3
size 14187276
oid sha256:94f4f5c33b2847a2edd805fe377a09d5f253572654ac04e1c5c69a181682429a
size 14166220

View File

@ -1,6 +1,9 @@
-------------------------------------------------------------------
Tue May 28 17:30:05 UTC 2019 - jcavalheiro@suse.com
- Remove phantomjs dependency
* Modified: Makefile
- Update to version 6.2.1
* Bug Fixes
+ Auth Proxy: Resolve database is locked errors.

View File

@ -38,13 +38,9 @@ Source1: %{name}-rpmlintrc
Source2: README
# Makefile to automate build process
Source3: Makefile
Requires: phantomjs
# Needed as a BuildRequires too, so setting up a symlink will work
BuildRequires: fdupes
BuildRequires: go >= 1.11
BuildRequires: golang-packaging
BuildRequires: libgcc_s1
BuildRequires: phantomjs
BuildRequires: shadow
Requires(post): %insserv_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -101,14 +97,6 @@ install -Dm644 {conf/provisioning/datasources/,%{buildroot}%{_datadir}/%{name}/c
cp -pr public %{buildroot}%{_datadir}/%{name}/
install -d -m755 %{buildroot}%{_datadir}/%{name}/vendor
install -d -m755 %{buildroot}%{_datadir}/%{name}/tools
# phantomjs is used for rendering PNG images of graphs. The frontend asset
# build process downloadsa prebuilt x86_64 binary, which ends up in
# vendor/phantomjs/phantomjs. This is ugly but works for x86_64. It naturally
# 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 -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
# all the plugins (something in the plugin scanner can't cope with files