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:
parent
f0613aa098
commit
a7337d0b81
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user