anchor.diff:  BuildRequires: sles-release
   Requires:      aaa_base
   Requires:      pwdutils
  +Requires:      logrotate
  +BuildRequires: java-devel
  +Requires:      java
   %else
   BuildRequires: /usr/sbin/useradd
   Requires:      chkconfig
  -%endif
   BuildRequires: %{open_jdk}
   Requires:      %{open_jdk}
  +%endif
   
   %description
   Puppet Centralized Storage.
   
   %package terminus
   Summary: Puppet terminus files to connect to PuppetDB
  +%if 0%{?suse_version}
  +Group: System/Libraries
  +%else
   Group: Development/Libraries
  +%endif
   <% if @pe -%>
   Requires: pe-puppet >= 2.7.12
   <% else -%>
  
positive.code: export NO_BRP_CHECK_BYTECODE_VERSION=true
  %endif
  
  rm -rf $RPM_BUILD_ROOT
  mkdir -p $RPM_BUILD_ROOT/%{_initddir}
  
  <% if @pe -%>
  PATH=/opt/puppet/bin:$PATH rake install PARAMS_FILE= DESTDIR=$RPM_BUILD_ROOT PE_BUILD=true
  
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 -%>
  