Bug 2260 - rpmlint warns about missing %clean section in specs file
Summary: rpmlint warns about missing %clean section in specs file
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Michael Scherer
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-24 17:17 CEST by Remco Rijnders
Modified: 2011-11-01 01:09 CET (History)
2 users (show)

See Also:
Source RPM: rpmlint-1.2-1.mga1
CVE:
Status comment:


Attachments

Description Remco Rijnders 2011-07-24 17:17:02 CEST
Description of problem: Running rpmlint on a package without a %clean section results in warnings:

[remmy@cauldron python-html2text]$ rpmlint SPECS/python-html2text.spec
SPECS/python-html2text.spec: W: no-cleaning-of-buildroot %clean

SPECS/python-html2text.spec: W: no-%clean-section



It is my understanding that a %clean section is no longer required in a .spec file and thus would not expect to get this warning.
Remco Rijnders 2011-07-24 17:17:48 CEST

Assignee: bugsquad => misc

Samuel Verschelde 2011-07-24 17:20:18 CEST

CC: (none) => stormi

Comment 1 Michael Scherer 2011-07-25 19:41:32 CEST
I will push something for no-%clean-section .

However, just to be sure, the no-cleaning-of-buildroot is not optional, no ?

CC: (none) => dmorganec

Comment 2 D Morgan 2011-07-25 20:17:48 CEST
i need to check with Panu but iirc this is replaced by a default %clean section ( with a rm -fr %buildroot )  since rpm 4.8.x ( i am sure this is replaced but what i don't remember is the first rpm version that bring it.
Comment 3 Manuel Hiebel 2011-11-01 00:36:15 CET
What is the status of this bug ?
Comment 4 Michael Scherer 2011-11-01 01:09:54 CET
It is fixed.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


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