From c080a11e9e88f35e40aff4e476cabbd971833019 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Mon, 22 Apr 2013 17:57:53 +0200 Subject: Add python interface to libsss_nss_idmap To allow to use libsss_nss_idmap from python applications, e.g. the FreeIPA server, the patch adds pythin bindings to libsss_nss_idmap. The contributed spec file will place the python bindings in a new package called libsss_nss_idmap-python. Alexander Bokovoy kindly provided the code to check the type of the python objects and loop over the list entries. --- contrib/sssd.spec.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'contrib') diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index d799ca21d..0ad83a481 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -249,6 +249,16 @@ Requires: libsss_nss_idmap = %{version}-%{release} %description -n libsss_nss_idmap-devel Utility library for SID based lookups +%package -n libsss_nss_idmap-python +Summary: Python bindings for libsss_nss_idmap +Group: Development/Libraries +License: LGPLv3+ +Requires: libsss_nss_idmap = %{version}-%{release} + +%description -n libsss_nss_idmap-python +The libsss_nss_idmap-python contains the bindings so that libsss_nss_idmap can +be used by Python applications. + %package -n libsss_sudo Summary: A library to allow communication between SUDO and SSSD Group: Development/Libraries @@ -558,6 +568,10 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libsss_nss_idmap.so %{_libdir}/pkgconfig/sss_nss_idmap.pc +%files -n libsss_nss_idmap-python +%defattr(-,root,root,-) +%{python_sitearch}/pysss_nss_idmap.so + %package -n libsss_autofs Summary: A library to allow communication between Autofs and SSSD Group: Development/Libraries -- cgit