diff options
author | Alon Bar-Lev <alon.barlev@gmail.com> | 2017-02-19 14:03:20 -0500 |
---|---|---|
committer | Alon Bar-Lev <alon.barlev@gmail.com> | 2017-02-26 21:33:12 +0200 |
commit | f5999d10c3f77ff5ca1a96d0a2185387f80547e2 (patch) | |
tree | 5d6f5e634460410c77b136818d5fc4a76bb4fa5d /netdata.spec.in | |
parent | cacc1a70bcb6926a7b56f9f3a2e8948aea29e145 (diff) |
spec: use global instead of define
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Diffstat (limited to 'netdata.spec.in')
-rw-r--r-- | netdata.spec.in | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/netdata.spec.in b/netdata.spec.in index 62fef6d9cc..86d3db909c 100644 --- a/netdata.spec.in +++ b/netdata.spec.in @@ -1,20 +1,20 @@ -%define contentdir %{_datadir}/netdata +%global contentdir %{_datadir}/netdata %if 0%{?suse_version} -%define distro_post %service_add_post netdata.service -%define distro_preun %service_del_preun netdata.service -%define distro_postun %service_del_postun netdata.service -%define distro_buildrequires BuildRequires:\ systemd-rpm-macros +%global distro_post %service_add_post netdata.service +%global distro_preun %service_del_preun netdata.service +%global distro_postun %service_del_postun netdata.service +%global distro_buildrequires BuildRequires:\ systemd-rpm-macros %else -%define distro_post %systemd_post netdata.service -%define distro_preun %systemd_preun netdata.service -%define distro_postun %systemd_postun_with_restart netdata.service -%define distro_buildrequires %{nil} +%global distro_post %systemd_post netdata.service +%global distro_preun %systemd_preun netdata.service +%global distro_postun %systemd_postun_with_restart netdata.service +%global distro_buildrequires %{nil} %endif # This is temporary and should eventually be resolved. This bypasses # the default rhel __os_install_post which throws a python compile # error. -%define __os_install_post %{nil} +%global __os_install_post %{nil} # # Conditional build: |