Name: security-manager
Summary: Security manager and utilities
-Version: 0.2.0
+Version: 1.0.0
Release: 1
Group: Security/Service
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1: security-manager.manifest
Source3: libsecurity-manager-client.manifest
+Requires: security-manager-policy
Requires(post): smack
BuildRequires: cmake
BuildRequires: zip
%description -n libsecurity-manager-client-devel
Development files needed for using the security manager client
-%package -n security-manager-policy
+%package policy
Summary: Security manager policy
-Group: Security/Development
-Requires: security-manager = %{version}-%{release}
-Requires: cyad
+Group: Security/Access Control
+Requires(post): security-manager = %{version}-%{release}
+Requires(post): cyad
-%description -n security-manager-policy
+%description policy
Set of security rules that constitute security policy in the system
%prep
mkdir -p %{buildroot}%{_datadir}/license
cp LICENSE %{buildroot}%{_datadir}/license/%{name}
cp LICENSE %{buildroot}%{_datadir}/license/libsecurity-manager-client
-mkdir -p %{buildroot}/%{TZ_SYS_SMACK}
-cp app-rules-template.smack %{buildroot}/%{TZ_SYS_SMACK}
%make_install
-mkdir -p %{buildroot}/%{_unitdir}/multi-user.target.wants
mkdir -p %{buildroot}/%{_unitdir}/sockets.target.wants
-ln -s ../security-manager.service %{buildroot}/%{_unitdir}/multi-user.target.wants/security-manager.service
ln -s ../security-manager.socket %{buildroot}/%{_unitdir}/sockets.target.wants/security-manager.socket
%clean
%attr(755,root,root) %{_sysconfdir}/gumd/userdel.d/50_security-manager-remove.pre
%{_libdir}/libsecurity-manager-commons.so.*
-%attr(-,root,root) %{_unitdir}/multi-user.target.wants/security-manager.service
-%attr(-,root,root) %{_unitdir}/security-manager.service
-%attr(-,root,root) %{_unitdir}/security-manager.target
-%attr(-,root,root) %{_unitdir}/sockets.target.wants/security-manager.socket
-%attr(-,root,root) %{_unitdir}/security-manager.socket
-%attr(-,root,root) %{TZ_SYS_SMACK}/app-rules-template.smack
+%attr(-,root,root) %{_unitdir}/security-manager.*
+%attr(-,root,root) %{_unitdir}/sockets.target.wants/security-manager.*
%config(noreplace) %attr(0600,root,root) %{TZ_SYS_DB}/.security-manager.db
%config(noreplace) %attr(0600,root,root) %{TZ_SYS_DB}/.security-manager.db-journal
%{_datadir}/license/%{name}