Bug 5573

Summary: rpmbuild -bE sometimes duplicates a head part of specfile
Product: Sisyphus Reporter: evseev <evseev>
Component: rpm-buildAssignee: placeholder <placeholder>
Status: CLOSED DUPLICATE QA Contact: qa-sisyphus
Severity: normal    
Priority: P2 CC: arseny, glebfm, imz, ldv, placeholder, vt
Version: unstable   
Hardware: all   
OS: Linux   

Description evseev 2004-11-28 05:01:22 MSK
This is a unique situation that's happen with only package, but under both ALM2.
2 and Sisyphus. When RpmBuild evaluates my specfile (rkhunter.spec), it displays 
heading block twice. This block contains ~11 lines. Remaining part of specfile 
is displayed normally. All other specfiles are processed normally.
Steps to Reproduce:
1. apt-get install wget rpm-build
2. wget http://ilya-evseev.narod.ru/posix/rkhunter/rkhunter.spec
3. rpmbuild -bE rkhunter.spec | egrep -i "^(Source|Patch).*:.*"

Actual Results:  
Source0:        http://downloads.rootkit.nl/rkhunter-1.1.8.tar.gz
Patch0:         os.dat.diff
Patch1:         development.diff
Source0:        http://downloads.rootkit.nl/rkhunter-1.1.8.tar.gz
Patch0:         os.dat.diff
Patch1:         development.diff

Expected Results:  
Source0:        http://downloads.rootkit.nl/rkhunter-1.1.8.tar.gz
Patch0:         os.dat.diff
Patch1:         development.diff
Comment 1 Dmitry V. Levin 2004-12-02 23:19:26 MSK
This happends due to BuildArch tag inserted after source/patch tags.

You should correct specfile according to alt packaging conventions,
including recommended tags order.
Comment 2 Dmitry V. Levin 2004-12-09 17:55:54 MSK
reopened to change resolved status
Comment 3 Dmitry V. Levin 2004-12-09 17:56:27 MSK

*** This bug has been marked as a duplicate of 5662 ***