LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 802|回复: 1

求解RPM SPEC的一些参数 关键词%{?dist:

[复制链接]
发表于 2006-3-25 03:49:45 | 显示全部楼层 |阅读模式
例子链接
http://dries.ulyssis.org/apt/pac ... klvemkdvd-spec.html
http://dries.ulyssis.org/apt/packages/klvemkdvd/klvemkdvd-spec.html


  1. # ExcludeDist: el3 fc1

  2. %{?dist: %{expand: %%define %dist 1}}

  3. %{?fc1:%define _without_xorg 1}
  4. %{?el3:%define _without_xorg 1}
  5. %{?rh9:%define _without_xorg 1}
复制代码


最近搜索网上的SPEC文件,看到RH的RPM SPEC基本都是在头部定义类似的选项,但是我在turbolinux上试了试还是搞不懂到底是什么意思,也根本无法借助定义项进行可选择性打包
不知道dist和fc1 el3之类的到底是什么关系,难道这些参数是在RH rpm macros宏设置里的,并不适合非RH的RPM系统。还是需要在使用rpm -ba *.spec过程中加些参数才能调用设定项,请教大虾了,谢谢

关于这些参数的解释链接
http://www.redhat.com/archives/r ... ruary/msg00000.html
http://www.redhat.com/archives/rpm-list/2006-February/msg00000.html
 楼主| 发表于 2006-3-25 05:02:53 | 显示全部楼层
可惜是fedora的标准
http://fedoraproject.org/wiki/DistTag

要是有简单的修改能让别的系统实现的话也不错,至少可以简化RPM SPEC的描述。非常有用的标签
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表