[FZH] 询问一下rpm宏的问题
Easior Lars
easior.lars at yahoo.com
Sun Mar 17 01:22:00 UTC 2013
On Mar 16, 2013, at 11:41 PM, Caius Chance <me at kaio.net> wrote:
> http://fedoraproject.org/wiki/Packaging:RPMMacros
似乎与我的问题差得比较远!
> Sent from my mobile device.
> On 16 Mar 2013 18:51, "Easior Lars" <easior.lars at yahoo.com> wrote:
>
>>
>> On Mar 16, 2013, at 3:47 PM, 杜宏羽 <dongfengweixiao at gmail.com> wrote:
>>
>>> 可以明确的告知的是,lib,bin,share ,fonts 宏都是有的。但是具体的还真的是忘记了。
>>
>> 可实际上,
>>
>> %bin sth
>>
>> 是不能工作的。不知确切的宏是什么?
>> 如果真的没有,只能用几行bash代替了。
>>
>>> 在 2013-3-16 下午3:45,"Easior Lars" <easior.lars at yahoo.com>写道:
>>>
>>>> 各位好!
>>>>
>>>> 问几个简单的问题:
>>>>
>>>> 1、rpmmacros中有如下定义
>>>>
>>>> %nil %{!?nil}
>>>>
>>>> 请问到底怎么展开的?
>>>>
>>>>
>>>>
>> 2、%prep、%doc之类的宏的定义在哪里?我找了系统里的/usr/lib/rpm/macros以及/usr/lib/rpm/redhat/macros均没有发现它们的定义?
>>>>
>>>> 3、我想做下面这件事
>>>>
>>>> mkdir -p %{buildroot}/usr/bin
>>>> cp sth %{buildroot}/usr/bin/sth
>>>>
>>>> 有没有类似%doc的宏,比如说
>>>>
>>>> %bin sth
>>>>
>>>> 就可以完成?
>>>>
>>>> Cheers,
>>>>
>>>> Easior Lars
>>>>
>>>> easior.lars at yahoo.com
>>>> www.shlug.org
>>>>
>>>> --
>>>> Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
>>>>
>>> --
>>> Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
>>
>> Cheers,
>>
>> Easior Lars
>>
>> easior.lars at yahoo.com
>> www.shlug.org
>>
>> --
>> Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
>>
> --
> Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
Cheers,
Easior Lars
easior.lars at yahoo.com
www.shlug.org
More information about the Chinese
mailing list