anchor.diff:  <% end -%>
   
   %post
  -%if %{_with_systemd}
  +%if %{_systemd_el}
   %systemd_post <%= EZBake::Config[:project] %>.service
  -%else
  +%endif
  +%if %{_systemd_sles}
  +%service_add_post <%= EZBake::Config[:project] %>.service
  +%endif
  +%if %{_with_sysvinit}
   # If this is an install (as opposed to an upgrade)...
   if [ "$1" = "1" ]; then
     # Register the <%= EZBake::Config[:project] %> service
  
positive.code: %global puppet_libdir     %(/opt/puppet/bin/ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
  %global p_vendor          pe
  
  %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
  %global _with_systemd 1
  %else
  %global _with_systemd 0
  %endif
  
  %if 0%{?p_vendor:1}
  
negative.code: %endif
  
  %preun
  %if %{_systemd_el}
  %systemd_preun <%= EZBake::Config[:project] %>.service
  %endif
  %if %{_systemd_sles}
  %service_del_preun <%= EZBake::Config[:project] %>.service
  %endif
  %if %{_with_sysvinit}
  # If this is an uninstall (as opposed to an upgrade) then
  #  we want to shut down and disable the service.
  if [ "$1" = "0" ] ; then
  