diff --git a/python-semanage.spec b/python-semanage.spec index 75b58bd..36ff9e4 100644 --- a/python-semanage.spec +++ b/python-semanage.spec @@ -31,7 +31,7 @@ Release: 10 License: LGPLv2.1 Summary: Python bindings for libsemanage Url: http://www.nsa.gov/selinux/ -Group: Development/Libraries +Group: Development/Languages/Python Source: libsemanage-%{version}.tar.bz2 Source1: baselibs.conf Patch0: libsemanage-rhat.patch @@ -56,13 +56,20 @@ mkdir -p %{buildroot}/%{_lib} mkdir -p %{buildroot}%{_libdir} mkdir -p %{buildroot}%{_includedir} make DESTDIR=%{buildroot} LIBDIR="%{buildroot}%{_libdir}" SHLIBDIR="%{buildroot}/%{_lib}" install install-pywrap -ln -sf /%{_lib}/libsemanage.so.1 %{buildroot}/%{_libdir}/libsemanage.so + +# remove files contained in other packages +rm -rf %{buildroot}%{_sysconfdir} +rm -rf %{buildroot}/%{_lib} +rm -rf %{buildroot}%{_includedir} +rm -f %{buildroot}%{_libdir}/libsemanage.* +rm -rf %{buildroot}%{_libdir}/pkgconfig +rm -rf %{buildroot}%{_mandir} %clean rm -rf %{buildroot} %files %defattr(-,root,root) -%{_libdir}/python*/site-packages/* +%{python_sitearch}/* %changelog