<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[linuxの飘扬]]></title> 
<link>https://www.linuxfly.org/index.php</link> 
<description><![CDATA[Power by www.linuxfly.org]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[linuxの飘扬]]></copyright>
<item>
<link>https://www.linuxfly.org/post/137/</link>
<title><![CDATA[[原]关于rpm打包中的条件判断]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[RPM]]></category>
<pubDate>Thu, 28 Jun 2007 07:19:25 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/137/</guid> 
<description>
<![CDATA[ 
	 &nbsp; &nbsp;前面的<a href="http://www.linuxfly.org/post/130.htm" target="_blank">[原]自己制作rpm软件包（1）</a>和<a href="http://www.linuxfly.org/post/131.htm" target="_blank">[原]自己制作rpm软件包（2）</a>，两篇文章比较详细的介绍了rpmbuild命令的使用，以及.spec文件的编写。而<a href="http://www.linuxfly.org/post/132.htm" target="_blank">[原]关于rpm打包的一个补充</a>也描述了，针对特定的平台如何加入变量、修改标准宏，然后再进行编译的情况。<br/> &nbsp; &nbsp;而实际上，通常我们都希望一个套件只针对一个.spec文件，这可以很方便的管理。所以，我们可以在.spec中加入条件判断语句，以便根据不同的条件，执行相对应的编译和打包动作。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/rpm/" rel="tag">rpm</a> , <a href="https://www.linuxfly.org/tags/build/" rel="tag">build</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/137/#blogcomment368</link>
<title><![CDATA[[评论] [原]关于rpm打包中的条件判断]]></title> 
<author>linuxing &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Sat, 11 Aug 2007 11:28:27 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/137/#blogcomment368</guid> 
<description>
<![CDATA[ 
	修改原来的错误：<br/># rpmbuild -bb chkrootkit.spec -D asianux2=1<br/>应该写为：<br/># rpmbuild -bb chkrootkit.spec -D &#039;asianux2 1&#039;<br/>及后的命令也有类似的错误，已修正。
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/137/#blogcomment400</link>
<title><![CDATA[[评论] [原]关于rpm打包中的条件判断]]></title> 
<author>狗狗 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 19 Nov 2007 08:37:08 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/137/#blogcomment400</guid> 
<description>
<![CDATA[ 
	关于 ％if的用法 &nbsp;我想判断一下内核版本号是否2.6.18 应该如何写判断条件
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/137/#blogcomment447</link>
<title><![CDATA[[评论] [原]关于rpm打包中的条件判断]]></title> 
<author>sophie &lt;wanglu1212@yahoo.com.cn&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 25 Feb 2008 06:47:33 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/137/#blogcomment447</guid> 
<description>
<![CDATA[ 
	你好，请教在%triggerin脚本中定义一个变量aa，通过与用户交互，得到aa对应的值。在%postun中，我想使用这个变量aa，可是echo $aa，发现为空值。请问想使用aa，该如何解决？在spec中，所有变量不能跨脚本使用吗？thx
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post/137/#blogcomment6294</link>
<title><![CDATA[[评论] [原]关于rpm打包中的条件判断]]></title> 
<author>狼吻 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 25 Mar 2015 09:17:03 +0000</pubDate> 
<guid>https://www.linuxfly.org/post/137/#blogcomment6294</guid> 
<description>
<![CDATA[ 
	你好 能加个好友吗 我的QQ是86141828 我想将一段驱动代码制作成rpm包遇到问题了，想请教！
]]>
</description>
</item>
</channel>
</rss>