summaryrefslogtreecommitdiff
path: root/zabbix.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-07-17 16:20:15 +0000
committerCoprDistGit <infra@openeuler.org>2024-07-17 16:20:15 +0000
commit16e5b7d3a70b0522da2c0bc2f916fe9cacbad85d (patch)
tree22ea48f3f848e4262930daa3b197bc22536f1ee0 /zabbix.spec
parenta66e31d498870399887ec774879a79491c096ccb (diff)
automatic import of zabbix
Diffstat (limited to 'zabbix.spec')
-rw-r--r--zabbix.spec3
1 files changed, 2 insertions, 1 deletions
diff --git a/zabbix.spec b/zabbix.spec
index 2513156..7ecd920 100644
--- a/zabbix.spec
+++ b/zabbix.spec
@@ -55,6 +55,7 @@ BuildRequires: gcc
BuildRequires: systemd
BuildRequires: google-noto-sans-cjk-sc-fonts
+BuildRequires: fonts-srpm-macros
Requires: logrotate
Provides: bundled(md5-deutsch)
@@ -393,7 +394,7 @@ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{srcname}/web
touch $RPM_BUILD_ROOT%{_sysconfdir}/%{srcname}/web/zabbix.conf.php
# Replace bundled font
-[ -d %{_datadir}/fonts/google-noto-cjk ] &&
+[ -d %{_fontbasedir}/google-noto-cjk ] &&
ln -sf ../../../fonts/google-noto-cjk/NotoSansCJKsc-Regular.otf $RPM_BUILD_ROOT%{_datadir}/%{srcname}/assets/fonts/DejaVuSans.ttf
# Replace JS libraries