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:
parent
2cf3d5fe22
commit
d302335b61
6
Makefile
6
Makefile
@ -21,6 +21,8 @@ tar:
|
|||||||
tar -xf ../$$tar && \
|
tar -xf ../$$tar && \
|
||||||
cd $$basename && \
|
cd $$basename && \
|
||||||
sed -i 's/base\///' public/sass/base/_fonts.scss && \
|
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 && \
|
yarn install --pure-lockfile && \
|
||||||
grunt release && \
|
grunt release && \
|
||||||
cp -pr tmp/public . && \
|
cp -pr tmp/public . && \
|
||||||
@ -28,6 +30,10 @@ tar:
|
|||||||
cd .. && \
|
cd .. && \
|
||||||
echo "Updating $$basename/tools $$basename/public in tarball..." && \
|
echo "Updating $$basename/tools $$basename/public in tarball..." && \
|
||||||
tar -rf ../$$tar $$basename/tools $$basename/public && \
|
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 .. && \
|
cd .. && \
|
||||||
xz $$tar && \
|
xz $$tar && \
|
||||||
rm -rf $$tmpdir
|
rm -rf $$tmpdir
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:594263234768e37ca713ada0b56ddbc0a458b55fe0c71068aad54e0827082df3
|
oid sha256:94f4f5c33b2847a2edd805fe377a09d5f253572654ac04e1c5c69a181682429a
|
||||||
size 14187276
|
size 14166220
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 28 17:30:05 UTC 2019 - jcavalheiro@suse.com
|
Tue May 28 17:30:05 UTC 2019 - jcavalheiro@suse.com
|
||||||
|
|
||||||
|
- Remove phantomjs dependency
|
||||||
|
* Modified: Makefile
|
||||||
|
|
||||||
- Update to version 6.2.1
|
- Update to version 6.2.1
|
||||||
* Bug Fixes
|
* Bug Fixes
|
||||||
+ Auth Proxy: Resolve database is locked errors.
|
+ Auth Proxy: Resolve database is locked errors.
|
||||||
|
12
grafana.spec
12
grafana.spec
@ -38,13 +38,9 @@ Source1: %{name}-rpmlintrc
|
|||||||
Source2: README
|
Source2: README
|
||||||
# Makefile to automate build process
|
# Makefile to automate build process
|
||||||
Source3: Makefile
|
Source3: Makefile
|
||||||
Requires: phantomjs
|
|
||||||
# Needed as a BuildRequires too, so setting up a symlink will work
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: go >= 1.11
|
BuildRequires: go >= 1.11
|
||||||
BuildRequires: golang-packaging
|
BuildRequires: golang-packaging
|
||||||
BuildRequires: libgcc_s1
|
|
||||||
BuildRequires: phantomjs
|
|
||||||
BuildRequires: shadow
|
BuildRequires: shadow
|
||||||
Requires(post): %insserv_prereq
|
Requires(post): %insserv_prereq
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@ -101,14 +97,6 @@ install -Dm644 {conf/provisioning/datasources/,%{buildroot}%{_datadir}/%{name}/c
|
|||||||
cp -pr public %{buildroot}%{_datadir}/%{name}/
|
cp -pr public %{buildroot}%{_datadir}/%{name}/
|
||||||
install -d -m755 %{buildroot}%{_datadir}/%{name}/vendor
|
install -d -m755 %{buildroot}%{_datadir}/%{name}/vendor
|
||||||
install -d -m755 %{buildroot}%{_datadir}/%{name}/tools
|
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
|
# 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
|
# all the plugins (something in the plugin scanner can't cope with files
|
||||||
|
Loading…
Reference in New Issue
Block a user