anchor.diff:  %defattr(-, root, root)
   %doc *.md
   %doc documentation
  +%if 0%{?suse_version}
  +%dir %{_sysconfdir}/%{realname}
  +%dir %{_sysconfdir}/%{realname}/conf.d
  +%endif
   %config(noreplace)%{_sysconfdir}/%{realname}/conf.d/config.ini
   %config(noreplace)%{_sysconfdir}/%{realname}/log4j.properties
   %config(noreplace)%{_sysconfdir}/%{realname}/conf.d/database.ini
  
positive.code: BuildRoot:     %{_tmppath}/%{realname}-%{version}-%{release}-root-%(%{__id_u} -n)
  
  Summary:       Puppet Centralized Storage Daemon
  License:       ASL 2.0
  <% if @pe -%>
  URL:           http://puppetlabs.com/puppet/puppet-enterprise
  Source0:       %{name}-%{realversion}.tar.gz
  
negative.code: %if 0%{?fedora} >= 17
  %global puppet_libdir     %(ruby -rrbconfig -e "puts Config::CONFIG['vendorlibdir']")
  %else
  %if 0%{?suse_version}
  %global puppet_libdir     %(ruby -rrbconfig -e "puts RbConfig::CONFIG['sitelibdir']")
  %else
  %global puppet_libdir     %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
  %endif
  %endif
  <% end -%>
  
  # These macros are not always defined on much older rpm-based systems
  %global  _sharedstatedir /var/lib
  %global  _realsysconfdir /etc
  %if 0%{?suse_version}
  %global  _initdir    %{_realsysconfdir}/init.d
  %else
  %global  _initddir   %{_realsysconfdir}/rc.d/init.d
  %endif
  %global _rundir /var/run
  
  <% if @pe -%>
  