On 1.7.2011 16:34, Jakub Hrozek wrote:
On 07/01/2011 06:35 AM, Jan Cholasta wrote:
On 28.6.2011 16:14, Jakub Hrozek wrote:
On 06/28/2011 08:52 AM, Jan Cholasta wrote:
https://fedorahosted.org/freeipa/ticket/1288

Honza


I gather this is done in order to get rid of the "try: except all" hack
in installer?

This works fine with F15 and F16 in mind. However, if the specfile is
intended for being usable on RHEL as well (at least for development),
some %if magic is required -- the fix is not there yet.


Updated so that 0.7.5-3 is required on Fedora >= 15 and RHEL >= 6.

Honza


Sorry, I wasn't clear in the previous message.

The fix so far is *only* in Fedora, not in any RHEL versions. So the
versioned requires must apply only to Fedora until we release
python-netaddr errata, be it in 6.2 or 6.3

Thanks for the info. I really need to learn more about RHEL :-)

Updated patch attached.

Honza

--
Jan Cholasta
>From 5ebbd00e1e5a59974f46156263e4fc71cfd75b76 Mon Sep 17 00:00:00 2001
From: Jan Cholasta <jchol...@redhat.com>
Date: Tue, 28 Jun 2011 11:15:26 +0200
Subject: [PATCH] Update minimum required version of python-netaddr.

ticket 1288
---
 freeipa.spec.in |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/freeipa.spec.in b/freeipa.spec.in
index 5ba38cb..4949dcd 100644
--- a/freeipa.spec.in
+++ b/freeipa.spec.in
@@ -50,7 +50,11 @@ BuildRequires:  python-ldap
 BuildRequires:  python-setuptools
 BuildRequires:  python-krbV
 BuildRequires:  python-nss
+%if 0%{?fedora} >= 15
+BuildRequires:  python-netaddr >= 0.7.5-3
+%else
 BuildRequires:  python-netaddr
+%endif
 BuildRequires:  python-kerberos
 BuildRequires:  python-rhsm
 BuildRequires:  pyOpenSSL
@@ -192,7 +196,11 @@ Requires: iproute
 Requires: pyOpenSSL
 Requires: python-nss >= 0.11
 Requires: python-lxml
+%if 0%{?fedora} >= 15
+Requires: python-netaddr >= 0.7.5-3
+%else
 Requires: python-netaddr
+%endif
 
 Obsoletes: ipa-python >= 1.0
 
-- 
1.7.4.4

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to