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: export NO_BRP_CHECK_BYTECODE_VERSION=true
  %endif
  
  %if 0%{?suse_version}
  mkdir -p %{buildroot}/%{_initddir}
  %else
  rm -rf $RPM_BUILD_ROOT
  mkdir -p $RPM_BUILD_ROOT/%{_initddir}
  %endif
  
  <% if @pe -%>
  PATH=/opt/puppet/bin:$PATH rake install PARAMS_FILE= DESTDIR=$RPM_BUILD_ROOT PE_BUILD=true
  