use RPMVAR_DEFAULTDOCDIR

CVS patchset: 1144
CVS date: 1996/10/31 21:08:05
This commit is contained in:
ewt 1996-10-31 21:08:05 +00:00
parent 17b351fe0d
commit b8a8ae8796
2 changed files with 3 additions and 2 deletions

View File

@ -68,7 +68,7 @@ struct Script *openScript(Spec spec, int builddir, char *name)
fprintf(script->file, "RPM_SOURCE_DIR=\"%s\"\n", getVar(RPMVAR_SOURCEDIR));
fprintf(script->file, "RPM_BUILD_DIR=\"%s\"\n", getVar(RPMVAR_BUILDDIR));
fprintf(script->file, "RPM_DOC_DIR=\"/usr/doc\"\n");
fprintf(script->file, "RPM_DOC_DIR=\"%s\"\n", getVar(RPMVAR_DEFAULTDOCDIR));
fprintf(script->file, "RPM_OPT_FLAGS=\"%s\"\n", getVar(RPMVAR_OPTFLAGS));
fprintf(script->file, "RPM_ARCH=\"%s\"\n", getArchName());
fprintf(script->file, "RPM_OS=\"%s\"\n", getOsName());

View File

@ -176,7 +176,8 @@ int process_filelist(Header header, struct PackageRec *pr,
"Can't mix special %%doc with other forms: %s", fp);
return(RPMERR_BADSPEC);
}
sprintf(buf, "/usr/doc/%s-%s-%s", name, version, release);
sprintf(buf, "%s/%s-%s-%s", getVar(RPMVAR_DEFAULTDOCDIR),
name, version, release);
filename = buf;
passed_special_doc = 1;
}