Why is topdir set to its default value when rpmbuild called from tcl?

There’s two ways to change the default rpmbuild topdir:

  1. Per-User: By configuring the RPM topdir in $HOME/.rpmmacros

    %_topdir    %{getenv:HOME}/rpmbuild
    
  2. Per-Project: By configuring the RPM topdir in the Makefile or on the command line

    rpmbuild --define '_topdir build' -ba package.spec
    

Note: in both cases, you will need to make sure your topdir directory has the appropriate directories (BUILD, SRPM, RPM, SPECS and SOURCES)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)