spec: use global instead of define
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Alon Bar-Lev committed
Feb 19, 2017 at 14:03 UTC
f5999d10c3f77ff5ca1a96d0a2185387f80547e2
1 file changed
+10
-10
netdata.spec.in
+10
-10
@@ -1,20 +1,20 @@
1
-%define contentdir %{_datadir}/netdata
1
+%global contentdir %{_datadir}/netdata
2
%if 0%{?suse_version}
3
-%define distro_post %service_add_post netdata.service
4
-%define distro_preun %service_del_preun netdata.service
5
-%define distro_postun %service_del_postun netdata.service
6
-%define distro_buildrequires BuildRequires:\ systemd-rpm-macros
3
+%global distro_post %service_add_post netdata.service
4
+%global distro_preun %service_del_preun netdata.service
5
+%global distro_postun %service_del_postun netdata.service
6
+%global distro_buildrequires BuildRequires:\ systemd-rpm-macros
7
%else
8
-%define distro_post %systemd_post netdata.service
9
-%define distro_preun %systemd_preun netdata.service
10
-%define distro_postun %systemd_postun_with_restart netdata.service
11
-%define distro_buildrequires %{nil}
8
+%global distro_post %systemd_post netdata.service
9
+%global distro_preun %systemd_preun netdata.service
10
+%global distro_postun %systemd_postun_with_restart netdata.service
11
+%global distro_buildrequires %{nil}
12
%endif
13
14
# This is temporary and should eventually be resolved. This bypasses
15
# the default rhel __os_install_post which throws a python compile
16
# error.
17
-%define __os_install_post %{nil}
17
+%global __os_install_post %{nil}
18
19
#
20
# Conditional build: