Bug 188470

Summary: spec file does not full support PFLOGSUMM=0
Product: [Fedora] Fedora Reporter: Peter Bieringer <pb>
Component: postfixAssignee: Thomas Woerner <twoerner>
Status: CLOSED RAWHIDE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-04-12 10:16:46 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 Peter Bieringer 2006-04-10 13:28:12 UTC
Description of problem:
If PFLOGSUMM=0, SRPMS can't be created

Version-Release number of selected component (if applicable):
postfix-2.2.8-1.2.src.rpm


How reproducible:
Always

Steps to Reproduce:
1. rpm -ihv postfix-2.2.8-1.2.src.rpm
2. change spec file
-%define PFLOGSUMM 1
+%define PFLOGSUMM 0
3. rpm -bs postfix.spec
  
Actual results:
$ rpmbuild -bs postfix.spec
error: Bad file: /mnt/rpmbuild/SOURCES/pflogsumm-%{pflogsumm_ver}.tar.gz: No
such file or directory

Expected results:
No such message

Fix:
@@ -62,8 +73,10 @@

 # Sources 50-99 are upstream [patch] contributions

+%if %{PFLOGSUMM}
 # Postfix Log Entry Summarizer: http://jimsun.linxnet.com/postfix_contrib.html
 Source53: http://jimsun.linxnet.com/downloads/pflogsumm-%{pflogsumm_ver}.tar.gz
+%endif

 # Sources >= 100 are config files

Comment 1 Thomas Woerner 2006-04-12 10:16:46 UTC
Fixed in rawhide in package 2.2.10-1 or newer.