summaryrefslogtreecommitdiff
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
commit59161b73cc2eeadbc53b5d2802041944e2feb713 (patch)
tree22ea48f3f848e4262930daa3b197bc22536f1ee0
parent409397af95caea6e9a4ef4c575126d338e09a45d (diff)
automatic import of zabbix
-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