Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPM_BUILD_ROOT path not correct when use rpmbuild -bb #686

Closed
shijinkui opened this issue Nov 4, 2015 · 0 comments
Closed

RPM_BUILD_ROOT path not correct when use rpmbuild -bb #686

shijinkui opened this issue Nov 4, 2015 · 0 comments

Comments

@shijinkui
Copy link

current build rpm use: rpmbuild -bb in RpmHelper, there no need to write RPM_BUILD_ROOT as source build path, should be unpackaged path, or as a user defined source path if use "rpmbuild -bs"

private[this] def installSection(root: File): String = {
    val sb = new StringBuilder
    sb append "\n"
    sb append "%install\n"
    sb append "if [ -e \"$RPM_BUILD_ROOT\" ]; "
    sb append "then\n"
    sb append "  mv \""
    sb append root.getAbsolutePath
    sb append "\"/* \"$RPM_BUILD_ROOT\"\n"
    sb append "else\n"
    sb append "  mv \""
    sb append root.getAbsolutePath
    sb append "\" \"$RPM_BUILD_ROOT\"\n"
    sb append "fi\n"
    sb.toString
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant