Building RPM package memo


Contents


Setup personal environment for rpm

  1. Environment variable. I use Japanese environment, but sometimes this is harmful. Then, switch to C environment.
    • LANG=C
  2. Setup personal directory. You can work at root, but I prefer one user. I will work under the directory ${HOME}/data/project/rpm. Then, edit ~/.rpmmacros file like :
      # cat ~/.rpmmacros
      %_topdir ${HOME}/data/project/rpm
         
  3. Make several standard directories.
      # mkdir -p BUILD RPMS/i386 SOURCES SPECS SRPMS ROOT 
         

Write a spec file

  1. Prepare the spec file. SPECS/tmk-0.90_1.spec
  2. Memo
    • Software should already be installed. Otherwise, %file section complains ``there is no such file.''
  3. Run rpm to build rpm file. at SPEC dir, rpm -ba tmk-090.1_noarch.spec

Links


Copyright (C) 2004 YAMAUCHI Hitoshi
Most recent update : :