Bug 1719974

Summary: generated .spec file is incomplete
Product: [Fedora] Fedora Reporter: Patrick <pdupre>
Component: cpanspecAssignee: Petr Šabata <psabata>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 30CC: ktdreyer, perl-devel, psabata, steve, strobert
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-17 06:05:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Patrick 2019-06-12 20:56:38 UTC
Description of problem:


Version-Release number of selected component (if applicable): 1.78-33


How reproducible:
Every time

Steps to Reproduce:
1. cpanspec Tk-JBrowseEntry-5.22.tar.gz
2.
3.

Actual results:
In the .spec file generated
Provides:       perl(Tk::JBrowseEntry)  %{version}-%{release}
%{_bindir}/JBrowseTest.pl

are missing

Tk-JBrowseEntry-5.22.tar.gz is available on the cpan website

Expected results:


Additional info:

Comment 1 Petr Šabata 2019-06-17 06:05:49 UTC
Provides are generated by RPM macros post-build, we typically don't list them in the SPEC files explicitly unless the macros can't find them (or some other technical reasons).

Also, as far as I know, cpanspec doesn't add executables to your %files as many Perl distributions include various benchmarks and test scripts that are not actual candidates for that.  If you want to install some of those, it is up to you.  We could probably do some guesswork based on Makefiles and Build scripts but I wouldn't consider the current state of things a bug.

Note cpanspec's output is a good starting point but it still needs some extra work before you can comfortably push it to Fedora.