Bug 1719974 - generated .spec file is incomplete
Summary: generated .spec file is incomplete
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: cpanspec
Version: 30
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Petr Šabata
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-12 20:56 UTC by Patrick
Modified: 2019-06-17 06:05 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-06-17 06:05:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.