Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1873237

Summary: rpmdev-newspec create empty file
Product: [Fedora] Fedora Reporter: Martin <namar66>
Component: rpmdevtoolsAssignee: Neal Gompa <ngompa13>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: bugs.michael, carl, decathorpe, dennis, kevin, mhroncok, ngompa13, redhat-bugzilla, torsava, twoerner
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: rpmdevtools-9.2-1.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-06 00:16:33 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:
Attachments:
Description Flags
workaround none

Description Martin 2020-08-27 17:00:27 UTC
Description of problem:
Creating news spec always end with empty file


[martin@localhost SPECS]$ LANG=C rpmdev-newspec somepackage
sed: -e expression #1, char 309: unknown command: `f'
somepackage.spec created; type minimal, rpm version >= 4.16.


Version-Release number of selected component (if applicable):
rpmdevtools-9.1-1.fc33.noarch

How reproducible:
always

Steps to Reproduce:
1.rpmdev-newspec somepackage
2.open somepackage.spec
3.file is empty

Actual results:
file is empty

Expected results:
creating base rpm spec section in spec file

Additional info:

Comment 1 Miro HronĨok 2020-09-02 18:18:33 UTC
Yes, this is kinda bad:

$ rpmdev-newspec -t python
sed: -e expression #1, char 285: unknown command: `f'
newpackage.spec created; type python, rpm version >= 4.16.

$ wc -l newpackage.spec 
0 newpackage.spec

Comment 2 Martin 2020-09-12 08:30:10 UTC
Created attachment 1714634 [details]
workaround

line 296 - 300 are bogus

Comment 3 Fedora Update System 2020-10-05 22:50:20 UTC
FEDORA-2020-518278a39e has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-518278a39e

Comment 4 Fedora Update System 2020-10-06 00:16:33 UTC
FEDORA-2020-518278a39e has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.