On Tue, Feb 1, 2011 at 3:23 PM, Gerd v. Egidy <span dir="ltr">&lt;<a href="mailto:lists@egidy.de">lists@egidy.de</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi,<br>
<br>
I&#39;ve submitted my first Fedora package for review and sponsoring recently:<br>
<br>
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=673175" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=673175</a><br>
<br>
I want to submit it for Fedora and EPEL 5. The differences between the two are<br>
minimal, there are just some programs missing in EPEL which need to be<br>
commented out in the default config.<br>
<br></blockquote><div><br></div><div>This page </div><div><a href="http://fedoraproject.org/wiki/DistTag">http://fedoraproject.org/wiki/DistTag</a></div><div>and the buildsys macros RPM on EPEL5 should help you.</div><div>

<a href="http://buildsys.fedoraproject.org/buildgroups/rhel5/x86_64/">http://buildsys.fedoraproject.org/buildgroups/rhel5/x86_64/</a></div><div><br></div><div>yes is perfectly possible to have one .spec file for all at the start though</div>

<div>they may diverge due to difference update policies in particular.</div><div>Steve.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


What is the best way to handle this? Can I keep one spec for both and use<br>
conditionals to always build the right way?<br>
<br>
I&#39;ve seen code like &quot;%if 0%{?rhel}&quot; somewhere on the net, but that didn&#39;t work<br>
for me. I guess the %rhel-macro should be defined in /etc/rpm/macros.dist<br>
where I usually find stuff like %fedora but that doesn&#39;t exist on my Centos 5.<br>
<br>
Or am I supposed to create a completely separate .spec for EPEL once the<br>
review, sponsoring etc. for Fedora is done?<br>
<br>
Kind regards,<br>
<br>
Gerd<br>
<br>
--<br>
Address (better: trap) for people I really don&#39;t want to get mail from:<br>
<a href="mailto:jonas@cactusamerica.com">jonas@cactusamerica.com</a><br>
<font color="#888888">--<br>
devel mailing list<br>
<a href="mailto:devel@lists.fedoraproject.org">devel@lists.fedoraproject.org</a><br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/devel" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/devel</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Steve Traylen<br><br>