diff --git a/SPECS/subscription-manager.spec b/SPECS/subscription-manager.spec index 7ef54e1..e04eca9 100644 --- a/SPECS/subscription-manager.spec +++ b/SPECS/subscription-manager.spec @@ -5,7 +5,7 @@ %global has_ostree %use_systemd %global use_old_firstboot (0%{?rhel} && 0%{?rhel} <= 6) %global rhsm_plugins_dir /usr/share/rhsm-plugins - +%global if_centos (0%{?centos_ver} && 0%{?centos_ver} >= 7) %global _hardened_build 1 @@ -104,6 +104,7 @@ the remote in the currently deployed .origin file. %{_datadir}/rhsm/subscription_manager/plugin/ostree/*.py* %endif +%if 0%{!?centos_ver} %package -n subscription-manager-plugin-container Summary: A plugin for handling container content. Group: System Environment/Base @@ -121,7 +122,8 @@ from the server. Populates /etc/docker/certs.d appropriately. %attr(755,root,root) %dir %{_sysconfdir}/docker/certs.d/cdn.redhat.com %attr(644,root,root) %{_sysconfdir}/rhsm/ca/redhat-entitlement-authority.pem %attr(644,root,root) %{_sysconfdir}/docker/certs.d/cdn.redhat.com/redhat-entitlement-authority.crt - +%endif +% %package -n subscription-manager-gui Summary: A GUI interface to manage Red Hat product subscriptions Group: System Environment/Base