summaryrefslogtreecommitdiffstats
path: root/netdata.spec.in
diff options
context:
space:
mode:
authorKonstantinos Natsakis <5933427+knatsakis@users.noreply.github.com>2019-09-24 12:54:04 +0300
committerChris Akritidis <43294513+cakrit@users.noreply.github.com>2019-09-24 11:54:04 +0200
commitd8fc63aa4a0b05567b0b3e504c48d6bd8c5c8870 (patch)
treebd0a6ae9f20e36cee0495af83d04887d209e53c9 /netdata.spec.in
parent2728be8b0614fd58d4b530a32fee164509e88fd8 (diff)
netdata.spec.in: Do not build CUPS plugin subpackage on CentOS 6 and CentOS 7 (#6926)
Diffstat (limited to 'netdata.spec.in')
-rw-r--r--netdata.spec.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/netdata.spec.in b/netdata.spec.in
index 5f25659ef7..29a8b83a3f 100644
--- a/netdata.spec.in
+++ b/netdata.spec.in
@@ -192,7 +192,9 @@ Requires: freeipmi
# end - freeipmi plugin dependencies
# CUPS plugin dependencies
+%if 0%{?centos_ver} != 6 && 0%{?centos_ver} != 7
BuildRequires: cups-devel
+%endif
# end - cups plugin dependencies
# Prometheus remote write dependencies
@@ -277,7 +279,9 @@ install -m 4750 -p perf.plugin "${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/plugins.
# ###########################################################
# Install cups.plugin
+%if 0%{?centos_ver} != 6 && 0%{?centos_ver} != 7
install -m 0750 -p cups.plugin "${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/plugins.d/cups.plugin"
+%endif
# ###########################################################
# Install slabinfo.plugin
@@ -493,6 +497,7 @@ rm -rf "${RPM_BUILD_ROOT}"
%attr(0770,netdata,netdata) %dir %{_localstatedir}/lib/%{name}/registry
# CUPS belongs to a different sub package
+%if 0%{?centos_ver} != 6 && 0%{?centos_ver} != 7
%exclude %{_libexecdir}/%{name}/plugins.d/cups.plugin
%package plugin-cups
@@ -507,8 +512,11 @@ Use this plugin to enable metrics collection from cupsd, the daemon running when
%files plugin-cups
%attr(0750,root,netdata) %{_libexecdir}/%{name}/plugins.d/cups.plugin
+%endif
%changelog
+* Mon Sep 23 2019 Konstantinos Natsakis <konstantinos.natsakis@gmail.com> 0.0.0-9
+- Do not build CUPS plugin subpackage on CentOS 6 and CentOS 7
* Tue Aug 20 2019 Pavlos Emm. Katsoulakis <paul@netdat.acloud> - 0.0.0-8
- Split CUPS functionality on separate package
* Fri Jun 28 2019 Pavlos Emm. Katsoulakis <paul@netdata.cloud> - 0.0.0-7