Bug 663541 - dist related errors in specfile
Summary: dist related errors in specfile
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: nrpe
Version: el6
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Peter Lemenkov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-16 05:39 UTC by Sage Grigull
Modified: 2011-09-22 15:07 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-22 15:07:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sage Grigull 2010-12-16 05:39:34 UTC
Description of problem:
rebuilding for el5 fails

Version-Release number of selected component (if applicable):
2.12-16

How reproducible:
100%

Steps to Reproduce:
1. get srpm from epel6 sources
2. rpmbuild-md5 --rebuild for el5
3. mock and brew builds look for package tcp_wrappers-devel
  
Actual results:
DEBUG util.py:256:  0:openssl-devel-0.9.8e-12.el5_5.7.x86_64
DEBUG util.py:256:  No Package Found for tcp_wrappers-devel


Expected results:
should look for tcp_wrappers not tcp_wrappers-devel

Additional info:
%if 0%{?el4}%{?el5}
BuildRequires: tcp_wrappers
%else
BuildRequires: tcp_wrappers-devel
%endif

I think it should be
%if 0%{?.el4}%{?.el5}

though that didn't work for me ....

Comment 1 Peter Lemenkov 2011-09-22 15:07:26 UTC
No, you should manually enable the following macro ( %{el5} somewhere where it could be found by rpm-build.

Some package in the default EPEL buildroot provides such macro (among others):

http://koji.fedoraproject.org/koji/taskinfo?taskID=3370484


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