Bug 503065

Summary: RFE: test case not yielding a Summary: entry; R2spec should carp when Summary is nil
Product: [Fedora] Fedora Reporter: R P Herrold <herrold>
Component: R2specAssignee: Pierre-YvesChibon <pingou>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: pingou
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://cran.r-project.org/web/packages/graph/index.html
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-03 12:22:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description R P Herrold 2009-05-28 16:31:58 UTC
I found an interesting corner case tarball in CRAN  and note it here as a test case:

http://cran.r-project.org/src/contrib/graph_1.22.2.tar.gz

Description of problem:

This case seems not to yield a 'Summary:' field with the current logic

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

current
How reproducible:

R2spec default packaging:

$ R2spec --cran -u http://cran.r-project.org/src/contrib/graph_1.22.2.tar.gz

Steps to Reproduce:

as above
  
Actual results:

[herrold@centos-5 R2spec]$ rpmbuild -ba  R-graph.spec
error: line 6: Empty tag: Summary:
[herrold@centos-5 R2spec]$ 

Expected results:

R2spec might emit a warning, when Summart is nil

Additional info:

Just an observation, and nothing earth shattering

Comment 1 Pierre-YvesChibon 2009-06-03 12:22:22 UTC
It now prints a summary in the output:

************************************************** 
** Generate the spec file
 /!\ Summary empty /!\ 
* Spec generated: 
  /home/pingou/Scripts/R2spec/master/devel/r2spec/R-graph.spec
* Done
**************************************************

It also puts the following line in the spec:

Name:             R-%{packname}
Version:          1.22.2
Release:          1%{?dist}
Summary:          <      summary should be not be longer than this       >