<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        text-align:justify;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:windowtext'>I guess that what I’m really asking is how do I get the rpm of Perl modules to provide a list of specific CPAN modules? I tried adding  the following line to the spec file without success.<o:p></o:p></span></p><p class=MsoNormal><span style='color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:windowtext'>    </span><span style='color:windowtext'>Provides: /opt/VBSPerl/bin/perl, perl(Asterisk::AMI), perl(Carp), perl(DBI), perl(FindBin), perl(lib), perl(strict)<o:p></o:p></span></p><p class=MsoNormal><span style='color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:windowtext'>Thanks;<o:p></o:p></span></p><p class=MsoNormal><span style='color:windowtext'>John V.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal align=left style='text-align:left'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Rpm-list [mailto:rpm-list-bounces@lists.rpm.org] <b>On Behalf Of </b>Stuart Gathman<br><b>Sent:</b> Monday, March 20, 2017 10:17 AM<br><b>To:</b> rpm-list@lists.rpm.org<br><b>Subject:</b> Re: How to define package 'provides'<o:p></o:p></span></p></div></div><p class=MsoNormal align=left style='text-align:left'><o:p> </o:p></p><div><p class=MsoNormal>On 03/20/2017 10:04 AM, Tech Support wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>All;<o:p></o:p></p><p class=MsoNormal>    What I’m trying to do is build two rpms. The first one is a local library of Perl modules, and the second one is a fax application that relies on the Perl modules. The problem that I am having is that I am getting an error when I try to install the second application rpm like so:<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>error: Failed dependencies:<o:p></o:p></p><p class=MsoNormal>        /opt/VBSPerl/bin/perl is needed by fax-2.3-82.x86_64<o:p></o:p></p><p class=MsoNormal>        perl(Asterisk::AMI) is needed by fax-2.3-82.x86_64  <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>The first rpm contains the path to the Perl interpreter and the Asterisk::AMI Perl module so that’s not the problem.  I can get around the error by using the –nodeps option when trying to install the module, but that really doesn’t solve the problem. To me, I see two solutions, the first one where I define the Perl module rpm as providing the dependencies, and the second one where the application rpm is built but doesn’t check for dependencies. To me, the first option is the better answer. I tried the first option in the Perl library spec file but, but that didn't fix it. <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Provides: /opt/VBSPerl/bin/perl, perl(Asterisk::AMI), perl(Carp), perl(DBI), perl(FindBin), perl(lib), perl(strict)<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>I also tried the following in the application spec file without success.<o:p></o:p></p><p class=MsoNormal>AutoReqProv: no<o:p></o:p></p><p class=MsoNormal>Autoreq: no<o:p></o:p></p><p class=MsoNormal>%define __find_requires %{nil}  <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>I’m really stumped here, and I know that the answer is probably going to be something obvious. If anyone has any insight at all, I would greatly appreciate it.<o:p></o:p></p></blockquote><p class=MsoNormal align=left style='margin-bottom:12.0pt;text-align:left'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>The first step is to see what your rpms are actually requiring and providing:<br><br>rpm -qp --provides fax-2.3-82.x86_64.rpm<br>rpm -qp --requires fax-2.3-82.x86_64.rpm<br><br>repeat for your perl module rpm.<o:p></o:p></span></p></div></body></html>