remove unpackaged files in python-semamage

OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libsemanage?expand=0&rev=22
This commit is contained in:
Pavol Rusnak 2011-05-23 14:32:05 +00:00 committed by Git OBS Bridge
parent f0613aa098
commit a7337d0b81

View File

@ -31,7 +31,7 @@ Release: 10
License: LGPLv2.1 License: LGPLv2.1
Summary: Python bindings for libsemanage Summary: Python bindings for libsemanage
Url: http://www.nsa.gov/selinux/ Url: http://www.nsa.gov/selinux/
Group: Development/Libraries Group: Development/Languages/Python
Source: libsemanage-%{version}.tar.bz2 Source: libsemanage-%{version}.tar.bz2
Source1: baselibs.conf Source1: baselibs.conf
Patch0: libsemanage-rhat.patch Patch0: libsemanage-rhat.patch
@ -56,13 +56,20 @@ mkdir -p %{buildroot}/%{_lib}
mkdir -p %{buildroot}%{_libdir} mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_includedir} mkdir -p %{buildroot}%{_includedir}
make DESTDIR=%{buildroot} LIBDIR="%{buildroot}%{_libdir}" SHLIBDIR="%{buildroot}/%{_lib}" install install-pywrap 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 %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/python*/site-packages/* %{python_sitearch}/*
%changelog %changelog