[PLUG] rpm source package building

Larry Brigman larry.brigman at gmail.com
Wed Dec 17 07:20:17 UTC 2008


On Tue, Dec 16, 2008 at 8:47 PM, Steve Beattie <steve at nxnw.org> wrote:
> On Tue, Dec 16, 2008 at 08:04:25PM -0800, Larry Brigman wrote:
>> On Tue, Dec 16, 2008 at 7:54 PM, Dan Young <danielmyoung at gmail.com> wrote:
>> > On Tue, Dec 16, 2008 at 7:42 PM, Larry Brigman <larry.brigman at gmail.com> wrote:
>> >> Is there a method to construct the source rpm without it requiring all
>> >> of the Buildrequires packages being
>> >> installed on the system that is building the source package?
>> >
>> > "rpmbuild -bs foo.spec" doesn't need the BuildRequires to be installed
>> > in my experience.
>>
>> In my example case curl-7.19.2 on CentOS5.2/RHEL5.2/OL5.2:
>> [lbrigman at myhost SPECS]$ rpmbuild -bs curl.spec
>> error: Failed build dependencies:
>>         openssl-devel is needed by curl-7.19.2-1.x86_64
>>         libidn-devel is needed by curl-7.19.2-1.x86_64
>
> 'rpmbuild -bs --nodeps curl.spec' should do the trick for you.
>

yep, that did the trick.  Isn't in the man page or in maxrpm book but
is in the help usage of the program.

Thanks.



More information about the PLUG mailing list