? libsemanage-2.0.3-3.fc7.src.rpm Index: libsemanage.spec =================================================================== RCS file: /cvs/pkgs/devel/libsemanage/libsemanage.spec,v retrieving revision 1.125 diff -u -p -r1.125 libsemanage.spec --- libsemanage.spec 1 Jun 2007 14:45:13 -0000 1.125 +++ libsemanage.spec 22 Jun 2007 10:38:37 -0000 @@ -1,3 +1,4 @@ +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %define libsepolver 2.0.0-1 %define libselinuxver 2.0.0-1 Summary: SELinux binary policy manipulation library @@ -29,6 +30,16 @@ It is used by checkpolicy (the policy co as by programs like load_policy that need to perform specific transformations on binary policies such as customizing policy boolean settings. +%package python +Summary: Python bindings for the libsemanage library +Group: Development/Libraries +Requires: libsemanage = %{version} + +%description python +The libsemanage-python package contains the Python bindings for +the libsemanage library providing an python API for manipulation of SELinux +binary policies. + %package devel Summary: Header files and libraries used to build policy manipulation tools Group: Development/Libraries @@ -61,7 +72,11 @@ rm -rf ${RPM_BUILD_ROOT} %config(noreplace) /etc/selinux/semanage.conf /%{_lib}/libsemanage.so.1 %{_libdir}/libsemanage.so -%{_libdir}/python*/site-packages/* + +%files python +%defattr(-,root,root) +%{python_sitearch}/*.so +%{python_sitearch}/*.py* %post -p /sbin/ldconfig