diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-05-30 09:57:19 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-07-08 15:12:25 -0400 |
commit | 667db40da4db362d7ca0a1f7f1c4ba40fb71795a (patch) | |
tree | c4c04b64d66a3fea47595cbb54132a26d3a65ba7 /contrib | |
parent | 9b72b00ebcfd6225a4e139619c8e18d44a448f87 (diff) | |
download | sssd-667db40da4db362d7ca0a1f7f1c4ba40fb71795a.tar.gz sssd-667db40da4db362d7ca0a1f7f1c4ba40fb71795a.tar.bz2 sssd-667db40da4db362d7ca0a1f7f1c4ba40fb71795a.zip |
Provide python bindings for the HBAC evaluator library
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/sssd.spec.in | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 9c24fecb..6798b7ae 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -133,6 +133,16 @@ Requires: libipa_hbac = %{version}-%{release} %description -n libipa_hbac-devel Utility library to validate FreeIPA HBAC rules for authorization requests +%package -n libipa_hbac-python +Summary: Python bindings for the FreeIPA HBAC Evaluator library +Group: Development/Libraries +License: LGPLv3+ +Requires: libipa_hbac = %{version}-%{release} + +%description -n libipa_hbac-python +The libipa_hbac-python contains the bindings so that libipa_hbac can be +used by Python applications. + %prep %setup -q @@ -199,7 +209,8 @@ rm -f \ $RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_simple.la \ $RPM_BUILD_ROOT/%{_libdir}/krb5/plugins/libkrb5/sssd_krb5_locator_plugin.la \ $RPM_BUILD_ROOT/%{_libdir}/libipa_hbac.la \ - $RPM_BUILD_ROOT/%{python_sitearch}/pysss.la + $RPM_BUILD_ROOT/%{python_sitearch}/pysss.la \ + $RPM_BUILD_ROOT/%{python_sitearch}/pyhbac.la # Older versions of rpmbuild can only handle one -f option # So we need to append to the sssd.lang file @@ -297,6 +308,10 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libipa_hbac.so %{_libdir}/pkgconfig/ipa_hbac.pc +%files -n libipa_hbac-python +%defattr(-,root,root,-) +%{python_sitearch}/pyhbac.so + %post /sbin/ldconfig /sbin/chkconfig --add %{servicename} |