This specfile patch makes python-ipalib noarch, by splitting out the
arch-dependent stuff.

It depends on Honza Cholasta's patches 516 and 517.

Part of https://fedorahosted.org/freeipa/ticket/3197

Petr Viktorin
From 64bd17e9e95987c1c841c78aa6a70c7acd296e38 Mon Sep 17 00:00:00 2001
From: Petr Viktorin <pvikt...@redhat.com>
Date: Thu, 3 Dec 2015 16:42:37 +0100
Subject: [PATCH] spec: Split out python-ipap11helper and

Splitting out the packages with compiled code allows the python-ipalib
package to be noarch.

 freeipa.spec.in | 44 +++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 41 insertions(+), 3 deletions(-)

diff --git a/freeipa.spec.in b/freeipa.spec.in
index 0724794ecd81e7b007f5ca35afe2dd6924a0a789..5d4da5e64ada0f7834b50d0b87efdebea95d3781 100644
--- a/freeipa.spec.in
+++ b/freeipa.spec.in
@@ -315,6 +315,7 @@ This package provides command-line tools for IPA administrators.
 %package -n python-ipalib
 Summary: Python libraries used by IPA
 Group: System Environment/Libraries
+BuildArch: noarch
 Requires: python-gssapi >= 1.1.2
 Requires: gnupg
 Requires: iproute
@@ -335,6 +336,8 @@ Requires: dbus-python
 Requires: python-setuptools
 Requires: python-six
 Requires: python-jwcrypto
+Requires: python-ipap11helper
+Requires: python-default_encoding_utf8
 Provides: %{name}-python = %{version}-%{release}
 Obsoletes: %{name}-python < 4.3
@@ -350,6 +353,31 @@ features for further integration with Linux based clients (SUDO, automount)
 and integration with Active Directory based infrastructures (Trusts).
 If you are using IPA, you need to install this package.
+%package -n python-ipap11helper
+Summary: IPA pkcs11 helper
+Group: System Environment/Libraries
+Obsoletes: %{name}-python < 4.3
+%description -n python-ipap11helper
+IPA is an integrated solution to provide centrally managed Identity (users,
+hosts, services), Authentication (SSO, 2FA), and Authorization
+(host access control, SELinux user roles, services). The solution provides
+features for further integration with Linux based clients (SUDO, automount)
+and integration with Active Directory based infrastructures (Trusts).
+If you are using IPA, you need to install this package.
+%package -n python-default_encoding_utf8
+Summary: Set the default string encoding for the Python Unicode implementation
+Group: System Environment/Libraries
+Obsoletes: %{name}-python < 4.3
+%description -n python-default_encoding_utf8
+Exposes the PyUnicode_SetDefaultEncoding function to Python code,
+allowing programs to modify the internal default string encoding
+for Python 2.
 %if ! %{ONLY_CLIENT}
 %package tests
 Summary: IPA tests and test tools
@@ -979,14 +1007,24 @@ fi
 %dir %{python_sitelib}/ipaplatform
-%attr(0644,root,root) %{python_sitearch}/default_encoding_utf8.so
-%attr(0644,root,root) %{python_sitearch}/_ipap11helper.so
+%files -n python-ipap11helper
+%doc README Contributors.txt
+%license COPYING
+%attr(0644,root,root) %{python_sitearch}/_ipap11helper.so
+%files -n python-default_encoding_utf8
+%doc README Contributors.txt
+%license COPYING
+%attr(0644,root,root) %{python_sitearch}/default_encoding_utf8.so
 %if ! %{ONLY_CLIENT}
 %files tests -f tests-python.list

Manage your subscription for the Freeipa-devel mailing list:
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to