diff --git a/freeipa.spec.in b/freeipa.spec.in index 74b260b5d..40162a971 100644 --- a/freeipa.spec.in +++ b/freeipa.spec.in @@ -370,6 +370,30 @@ If your network uses IPA for authentication, this package should be installed on every client machine. +%if 0%{?with_python3} + +%package -n python3-ipaclient +Summary: Python libraries used by IPA client +Group: System Environment/Libraries +BuildArch: noarch +%{?python_provide:%python_provide python3-ipaclient} +Requires: %{name}-client-common = %{version}-%{release} +Requires: %{name}-common = %{version}-%{release} +Requires: python3-ipalib = %{version}-%{release} +Requires: python3-dns >= 1.11.1 + +%description -n python3-ipaclient +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 your network uses IPA for authentication, this package should be +installed on every client machine. + +%endif # with_python3 + + %package client-common Summary: Common files used by IPA client Group: System Environment/Base @@ -691,6 +715,7 @@ make client-install DESTDIR=%{buildroot} (cd ipalib && make PYTHON=%{__python3} IPA_VERSION_IS_GIT_SNAPSHOT=no %{?_smp_mflags} DESTDIR=%{buildroot} install) (cd ipapython && make PYTHON=%{__python3} IPA_VERSION_IS_GIT_SNAPSHOT=no %{?_smp_mflags} DESTDIR=%{buildroot} install) (cd ipaplatform && %{__python3} setup.py install --root %{buildroot}) +(cd ipaclient && %{__python3} setup.py install --root %{buildroot}) %endif # with_python3 %find_lang %{gettext_domain} @@ -1246,6 +1271,20 @@ fi %{python_sitelib}/ipaclient-*.egg-info +%if 0%{?with_python3} + +%files -n python3-ipaclient +%defattr(-,root,root,-) +%doc README Contributors.txt +%license COPYING +%dir %{python3_sitelib}/ipaclient +%{python3_sitelib}/ipaclient/*.py +%{python3_sitelib}/ipaclient/__pycache__/*.py* +%{python3_sitelib}/ipaclient-*.egg-info + +%endif # with_python3 + + %files client-common %defattr(-,root,root,-) %doc README Contributors.txt