开发者

How to write .spec file to check JRE version in Fedora 10

开发者 https://www.devze.com 2022-12-12 10:30 出处:网络
I am using fedora 10 linux.I have created an RPM for my software it works fine. But I want the follwing feature

I am using fedora 10 linux. I have created an RPM for my software it works fine. But I want the follwing feature "If I开发者_StackOverflow社区 install RPM it will check whether JRE 1.5 or greater is availble in that system if available then install the RPM otherwise I want to show the URL to download the JRE.

Is there anything that I have to write in my .spec file

How can I achieve this type of functionality.

Thanks Sunil Kumar Sahoo


I insert the following line to check for jre 1.5 or greater in your spec file Requires:jre >= 1.5

0

精彩评论

暂无评论...
验证码 换一张
取 消