BuildRequires: python-devel >= 2
BuildRequires: rpmbuild(macros) >= 1.626
BuildRequires: swig-python
-Requires(post): /sbin/ldconfig
Requires(post,preun): /sbin/chkconfig
Requires(postun): /usr/sbin/groupdel
Requires(pre): /usr/bin/getgid
%groupadd -g 261 -r -f cgred
%post
-/sbin/ldconfig
/sbin/chkconfig --add cgred
/sbin/chkconfig --add cgconfig
if [ ! -f /var/lock/subsys/cgconfig ]; then
%systemd_preun cgred.service
%postun
-/sbin/ldconfig
if [ "$1" = "0" ]; then
%groupremove cgred
fi