One thing I've noticed that would help is if the individual CPAN modules that are included as sub-packages in the perl.spec each had a Provides: line like this:
Provides: %{?scl_prefix}perl(Compress::Raw::Bzip2) = %{version}
I don't know why 'cpanspec' doesn't add this line normally. It seems valuable.
On 07/03/2012 11:23 PM, Doran Barton wrote:
One thing I've noticed that would help is if the individual CPAN modules that are included as sub-packages in the perl.spec each had a Provides: line like this:
Provides: %{?scl_prefix}perl(Compress::Raw::Bzip2) = %{version}
I don't know why 'cpanspec' doesn't add this line normally. It seems valuable.
It's provided automagically by rpm. I had a problem with Compress::Raw::Bzip2, so I've added it manually.
Marcela
On Wednesday, July 04, 2012 02:40:16 PM Marcela Mašláňová wrote:
On 07/03/2012 11:23 PM, Doran Barton wrote:
One thing I've noticed that would help is if the individual CPAN modules that are included as sub-packages in the perl.spec each had a Provides: line like this:
Provides: %{?scl_prefix}perl(Compress::Raw::Bzip2) =
%{version}
I don't know why 'cpanspec' doesn't add this line normally. It seems valuable.
It's provided automagically by rpm. I had a problem with Compress::Raw::Bzip2, so I've added it manually.
I've had problems building other CPAN modules as RPMs because, for example, it didn't appear that Test::Builder::Tester was installed or had a required version number (it is provided as part of the Test-Simple package). Once I added this line to the perl.spec file...
Provides: %{?scl_prefix}perl(Test::Builder::Tester) = 1.22-%{release}
...rebuilt the package, and reinstalled the Test-Simple package, I could build the CPAN module RPM.
I'm confused!
RPM *should* be able to figure out what Perl modules are provided by a package automatically. The standard perl-Test-Simple package that I have installed on my Fedora 17 system shows the following when I query with --provides:
perl(Test::Builder) = 0.98 perl(Test::Builder::Module) = 0.98 perl(Test::Builder::Tester) = 1.22 perl(Test::Builder::Tester::Color) = 1.22 perl(Test::Builder::Tester::Tie) perl(Test::More) = 0.98 perl(Test::Simple) = 0.98 perl-Test-Simple = 0:0.98-212.fc17
When I query the perl-Test-Simple package I built for the perl514 scl:
$ rpm -qp ~/rpm/RPMS/noarch/perl514-perl-Test-Simple-0.98-2.el6.noarch.rpm -- provides perl514-perl-Test-Simple = 0:0.98-2.el6
It doesn't show any of the CPAN modules included at all. What are we missing that does the introspection and auto-sets the Provides tags?
softwarecollections@lists.fedorahosted.org