summaryrefslogtreecommitdiff
path: root/zabbix.spec
diff options
context:
space:
mode:
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