anchor.diff:          AppProdDir <- ebt_config:app_outdir(production, Dir, Config),
           RPMBuildDir <- ebt_config:outdir(rpmbuild, Config),
           Template <- prepare_generic_spec(Dir, Config, Spec, Version),
  -        AppName <- ebt_config:appname_full(Dir),
  +        AppName <- ebt_config:appname_full(Dir, Config),
           SpecFile <- spec_file(Config, AppName),
           ebt_xl_file:write_file(SpecFile, iolist_to_binary([
               "#Spec generated by Erlang Build Tool\n\n",
  
positive.code: prepare_generic_spec(Dir, Config, Spec, Version) ->
      do([error_m ||
          SpecTemplate <- ebt_xl_escript:read_file("priv/rpmbuild/otpapp.spec"),
          AppName <- ebt_config:appname_full(Dir),
          Template <- return(ebt_xl_string:substitute(binary_to_list(SpecTemplate), [
              {'APPNAME', AppName},
              {'DESCRIPTION', ebt_xl_lists:kvfind(description, Spec, "")}
  
negative.code:         Spec <- ebt_config:find_value(Target, Config, spec),
          prepare_spec(Dir, Config, Spec),
          prepare_lib_spec(Dir, Config, Spec),
          AppName <- ebt_config:appname_full(Dir, Config),
          SpecFile <- spec_file(Config, AppName),
          rpmbuild(SpecFile)
      ]).
  