@cryptotaxi247 / netdata-1 / commits / d8fc63aa4

netdata.spec.in: Do not build CUPS plugin subpackage on CentOS 6 and CentOS 7 (#6926)

Konstantinos Natsakis committed Sep 24, 2019 at 12:54 UTC d8fc63aa4a0b05567b0b3e504c48d6bd8c5c8870
1 file changed +8
netdata.spec.in
+8
@@ -192,7 +192,9 @@ Requires: freeipmi
192 # end - freeipmi plugin dependencies
193
194 # CUPS plugin dependencies
195 +%if 0%{?centos_ver} != 6 && 0%{?centos_ver} != 7
196 BuildRequires: cups-devel
197 +%endif
198 # end - cups plugin dependencies
199
200 # Prometheus remote write dependencies
@@ -277,7 +279,9 @@ install -m 4750 -p perf.plugin "${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/plugins.
279
280 # ###########################################################
281 # Install cups.plugin
282 +%if 0%{?centos_ver} != 6 && 0%{?centos_ver} != 7
283 install -m 0750 -p cups.plugin "${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/plugins.d/cups.plugin"
284 +%endif
285
286 # ###########################################################
287 # Install slabinfo.plugin
@@ -493,6 +497,7 @@ rm -rf "${RPM_BUILD_ROOT}"
497 %attr(0770,netdata,netdata) %dir %{_localstatedir}/lib/%{name}/registry
498
499 # CUPS belongs to a different sub package
500 +%if 0%{?centos_ver} != 6 && 0%{?centos_ver} != 7
501 %exclude %{_libexecdir}/%{name}/plugins.d/cups.plugin
502
503 %package plugin-cups
@@ -507,8 +512,11 @@ Use this plugin to enable metrics collection from cupsd, the daemon running when
512
513 %files plugin-cups
514 %attr(0750,root,netdata) %{_libexecdir}/%{name}/plugins.d/cups.plugin
515 +%endif
516
517 %changelog
518 +* Mon Sep 23 2019 Konstantinos Natsakis <konstantinos.natsakis@gmail.com> 0.0.0-9
519 +- Do not build CUPS plugin subpackage on CentOS 6 and CentOS 7
520 * Tue Aug 20 2019 Pavlos Emm. Katsoulakis <paul@netdat.acloud> - 0.0.0-8
521 - Split CUPS functionality on separate package
522 * Fri Jun 28 2019 Pavlos Emm. Katsoulakis <paul@netdata.cloud> - 0.0.0-7