anchor.diff:  %config(noreplace)%{_sysconfdir}/%{realname}/log4j.properties
   %config(noreplace)%{_realsysconfdir}/sysconfig/%{name}
   %config(noreplace)%{_realsysconfdir}/logrotate.d/%{name}
  -%{_datadir}/%{realname}/%{realname}.jar
  -%dir %{_datadir}/%{realname}/db
  -%{_datadir}/%{realname}/config
  -%{_datadir}/%{realname}/log
  +%{_datadir}/%{realname}
   %{_initddir}/%{name}
   <% unless @pe -%>
   %{_sharedstatedir}/%{realname}
   <% end -%>
   %{_datadir}/%{realname}/state
  -%ghost %{_localstatedir}/log/%{name}
  +%dir %{_localstatedir}/log/%{name}
  +%ghost %{_localstatedir}/log/%{name}/%{name}.log
  +%ghost %{_rundir}/%{name}
   
   
   %files terminus
  
positive.code: # Remove PuppetDB user
  getent group %{name} > /dev/null || groupdel -r %{name}
  getent passwd %{name} > /dev/null || userdel -r %{name}
  
  
  %files
  
negative.code: <% end -%>
  
  mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/log/%{name}
  mkdir -p $RPM_BUILD_ROOT/%{_rundir}/%{name}
  touch  $RPM_BUILD_ROOT/%{_localstatedir}/log/%{name}/%{name}.log
  
  
  %clean
  rm -rf $RPM_BUILD_ROOT
  
  %pre
  # Add PuppetDB user
  