rpm展开macro

关于在rpm中使用macro的记录。使用docker进行测试:

$ docker run -it centos:7 sh
$ yum install wget rpmdevtools

$ wget http://pkgs.devel.redhat.com/cgit/rpms/curl/plain/curl.spec?h=jb-cs-httpd24-37-rhel-7
$ mv curl.spec\?h\=jb-cs-httpd24-37-rhel-7 curl.spec

rhel6下没有rpmspec,用这个命令:

$ rpm --eval '%{_prefix}'
/usr
$ rpm --eval '%global _configure configure'

$ yum install yum-utils

RHEL7当中的rpm新特性:

关于rpm的macro:

My Github Page: https://github.com/liweinan

Powered by Jekyll and Theme by solid

If you have any question want to ask or find bugs regarding with my blog posts, please report it here:
https://github.com/liweinan/liweinan.github.io/issues