%define COMPONENT security
%define RPM_NAME caas-%{COMPONENT}
%define RPM_MAJOR_VERSION 1.0.0
-%define RPM_MINOR_VERSION 1
-%define RBAC_MANIFEST_DIR /var/lib/caas/rbac_manifests/
+%define RPM_MINOR_VERSION 8
Name: %{RPM_NAME}
Version: %{RPM_MAJOR_VERSION}
Release: %{RPM_MINOR_VERSION}%{?dist}
Summary: Containers as a Service security related playbooks + manifests
License: %{_platform_license}
-BuildArch: x86_64
+BuildArch: %{_arch}
Vendor: %{_platform_vendor}
Source0: %{name}-%{version}.tar.gz
%build
%install
-mkdir -p %{buildroot}/%{RBAC_MANIFEST_DIR}/
-rsync -av rbac_manifests/* %{buildroot}/%{RBAC_MANIFEST_DIR}/
+mkdir -p %{buildroot}/%{_caas_rbac_manifests_path}/
+rsync -av rbac_manifests/* %{buildroot}/%{_caas_rbac_manifests_path}/
mkdir -p %{buildroot}/%{_playbooks_path}/
rsync -av ansible/playbooks/* %{buildroot}/%{_playbooks_path}/
rsync -av ansible/roles/* %{buildroot}/%{_roles_path}/
%files
-%{RBAC_MANIFEST_DIR}/*
+%{_caas_rbac_manifests_path}/*
%{_playbooks_path}/*
%{_roles_path}/*