Bug 2279060

Summary: script-without-shebang on bundled-licenses.txt
Product: [Fedora] Fedora Reporter: wojnilowicz <lukasz.wojnilowicz>
Component: rpmlintAssignee: Tom "spot" Callaway <spotrh>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: admiller, extras-qa, jkadlcik, j, leamas.alec, michel, ngompa13, pingou, spotrh, twoerner
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-06 15:09:00 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:
Bug Depends On:    
Bug Blocks: 2279057    
Attachments:
Description Flags
rpmlint output none

Description wojnilowicz 2024-05-04 13:42:16 UTC
Created attachment 2031242 [details]
rpmlint output

Rpmlint treats bundled-licenses.txt as a script.

Reproducible: Always

Steps to Reproduce:
1. download https://github.com/ActivityWatch/aw-webui/archive/7de395b4b5d9097c2ee6fd2afcc9876bc969df66/aw-webui-7de395b.tar.gz

2. nodejs-packaging-bundler aw-webui 7de395b aw-webui-7de395b.tar.gz

3. include the ~/rpmbuild/SOURCES/aw-webui-7de395b-bundled-licenses.txt in nodejs-aw-webui.spec file as seen at https://download.copr.fedorainfracloud.org/results/wojnilowicz/activitywatch/fedora-39-x86_64/07406605-nodejs-aw-webui/nodejs-aw-webui.spec

Actual Results:
nodejs-aw-webui.noarch: E: script-without-shebang /usr/share/licenses/nodejs-aw-webui/aw-webui-7de395b-bundled-licenses.txt

Expected Results:  
no nodejs-aw-webui.noarch: E: script-without-shebang /usr/share/licenses/nodejs-aw-webui/aw-webui-7de395b-bundled-licenses.txt

Additional info:
I did as described at
https://docs.fedoraproject.org/en-US/packaging-guidelines/Node.js/#_bundling_script
and bundled the license file as described at
https://docs.fedoraproject.org/en-US/packaging-guidelines/Node.js/#_bundled_licenses

Comment 1 wojnilowicz 2024-05-06 15:09:00 UTC
Probably due to an executable bit on aw-webui-7de395b-bundled-licenses.txt