anchor.diff:  %if %{_with_sysvinit}
   # Remove the rundir if this is an uninstall (as opposed to an upgrade)...
   if [ "$1" = "0" ]; then
  -    rm -rf %{_rundir}/%{name} || :
  +    rm -rf %{_app_rundir} || :
   fi
   
   # Only restart it if it is running
  
positive.code: 
  rm -rf $RPM_BUILD_ROOT
  
  env EZ_VERBOSE=1 DESTDIR=%{buildroot} prefix=%{_prefix} confdir=%{_sysconfdir} bindir=%{_bindir} rundir=%{_rundir}/<%= EZBake::Config[:project] %> localstatedir=%{_localstatedir} bash install.sh install_redhat
  %if %{_with_systemd}
  env EZ_VERBOSE=1 DESTDIR=%{buildroot} prefix=%{_prefix} confdir=%{_sysconfdir} bindir=%{_bindir} rundir=%{_rundir}/<%= EZBake::Config[:project] %> defaultsdir=%{_real_sysconfdir}/sysconfig unitdir=%{_unitdir} bash install.sh systemd_redhat
  %else
  %if %{_old_el}
  env EZ_VERBOSE=1 DESTDIR=%{buildroot} prefix=%{_prefix} confdir=%{_sysconfdir} bindir=%{_bindir} rundir=%{_rundir}/<%= EZBake::Config[:project] %> defaultsdir=%{_real_sysconfdir}/sysconfig initdir=%{_initrddir} bash install.sh sysv_init_redhat
  %elseif %{_old_sles}
  env EZ_VERBOSE=1 DESTDIR=%{buildroot} prefix=%{_prefix} confdir=%{_sysconfdir} bindir=%{_bindir} rundir=%{_rundir}/<%= EZBake::Config[:project] %> defaultsdir=%{_real_sysconfdir}/sysconfig initdir=%{_initrddir} bash install.sh sysv_init_suse
  %endif
  %endif
  
  %if 0%{?fedora} >= 16 || 0%{?rhel} >= 7 || 0%{?sles_version} >= 12
  env EZ_VERBOSE=1 DESTDIR=%{buildroot} confdir=%{_real_sysconfdir} bash install.sh logrotate
  %else
  env EZ_VERBOSE=1 DESTDIR=%{buildroot} confdir=%{_real_sysconfdir} bash install.sh logrotate_legacy
  %endif
  
  <% unless EZBake::Config[:terminus_info].empty? -%>
  
negative.code: %global realversion <%= @version %>
  %global rpmversion <%= @rpmversion %>
  
  # Application bin dir.
  %global _app_bindir /opt/puppetlabs/server/apps/<%= EZBake::Config[:real_name] %>/bin
  # Bin dir where convenience symlinks go.
  %global _sym_bindir /opt/puppetlabs/server/bin
  # Bin dir the end user adds to their PATH
  %global _ux_bindir /opt/puppetlabs/bin
  # Log directory
  %global _app_logdir /var/log/puppetlabs/<%= EZBake::Config[:real_name] %>
  # Run directory, PID files go here
  %global _app_rundir /var/run/puppetlabs/<%= EZBake::Config[:real_name] %>
  
  # Puppet Installation Layout
  # https://github.com/puppetlabs/puppet-specifications/blob/af82509/file_paths.md
  %global _app_prefix /opt/puppetlabs/server/apps/<%= EZBake::Config[:real_name] %>
  %global _app_data /opt/puppetlabs/server/data/<%= EZBake::Config[:real_name] %>
  
  %global rubylibdir        %(/opt/puppetlabs/puppet/bin/ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
  
  %global _with_systemd  0
  %global _with_sysvinit 0
  