How to define package 'provides'

Tim Mooney Tim.Mooney at ndsu.edu
Wed Mar 22 16:42:12 UTC 2017


In regard to: Re: How to define package 'provides', Orion Poplawski said...:

>> %description
>> This is a Perl 5.18.4 distribution with additional CPAN packages installed.
>> The
>> package installs in /opt/VBSPerl with the perl binary located at
>> /opt/VBSPerl/bin/perl.
>> Vendor: VoIP Business Solutions, LLC. <support at voipbusiness.us>
>>
>> Provides: /opt/VBSPerl/bin/perl, perl(Asterisk::AMI), perl(Carp), perl(DBI),
>> perl(FindBin), perl(lib), perl(strict)
>>
>> # Disable the stripping of binary files.
>> %global __os_install_post %{nil}
>>
>> # Do not build the debuginfo package.
>> %define debug_package %{nil}
>
> These are in the wrong place and are all part of %description (see rpm -qip
> VBSPerl-1.0-15.x86_64.rpm).  Put them above %description.

Orion's right.  I asked to see the top part of your spec because I
suspected this might be the issue.  :-)

Just move the Provides and the defines up above %description.

Tim
-- 
Tim Mooney                                             Tim.Mooney at ndsu.edu
Enterprise Computing & Infrastructure                  701-231-1076 (Voice)
Room 242-J6, Quentin Burdick Building                  701-231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164


More information about the Rpm-list mailing list