LoginSignup
4

More than 5 years have passed since last update.

RPM の build環境を構築する

Last updated at Posted at 2015-10-11

手順

rpmdevtools が無い場合は予めインストールをする

CentOS 5系 の場合

command
$ sudo yum install rpmdevtools --enablerepo=epel

CentOS 6系 の場合

command
$ sudo yum install rpmdevtools

環境整備

command
$ rpmdev-setuptree

結果

command
$ tree ~/
output
.
`-- rpmbuild
    |-- BUILD
    |-- RPMS
    |-- SOURCES
    |-- SPECS
    `-- SRPMS
command
$ cat ~/.rpmmacros
output
%_topdir      %(echo $HOME)/rpmbuild
%_smp_mflags  -j3
%__arch_install_post   /usr/lib/rpm/check-rpaths   /usr/lib/rpm/check-buildroot

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4