]> arthur.barton.de Git - netdata.git/commitdiff
spec: use global instead of define
authorAlon Bar-Lev <alon.barlev@gmail.com>
Sun, 19 Feb 2017 19:03:20 +0000 (14:03 -0500)
committerAlon Bar-Lev <alon.barlev@gmail.com>
Sun, 26 Feb 2017 19:33:12 +0000 (21:33 +0200)
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
netdata.spec.in

index 62fef6d9cc0bfa0f729a9a496af2e66292088053..86d3db909c0b1ab9b3525b0ddc83516270aedb25 100644 (file)
@@ -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: