build without sandbox
This commit is contained in:
parent
24af48b04f
commit
f1292ace4b
@ -1,8 +1,9 @@
|
||||
%global _python_bytecompile_extra 0
|
||||
%bcond_with sandbox
|
||||
|
||||
Name: policycoreutils
|
||||
Version: 2.8
|
||||
Release: 13
|
||||
Release: 14
|
||||
Summary: Policy core utilities of selinux
|
||||
License: GPLv2
|
||||
URL: https://github.com/SELinuxProject
|
||||
@ -121,6 +122,7 @@ Requires: selinux-policy-devel
|
||||
%description devel
|
||||
It contains policy core devel utilities for selinux
|
||||
|
||||
%if %{with sandbox}
|
||||
%package sandbox
|
||||
Summary: Sandbox utilities for selinux
|
||||
Requires: python3-policycoreutils = %{version}-%{release}
|
||||
@ -129,6 +131,7 @@ Requires: openbox
|
||||
|
||||
%description sandbox
|
||||
It contains sandbox utilities for selinux
|
||||
%endif
|
||||
|
||||
%package help
|
||||
Summary: Including man files for selinux
|
||||
@ -155,7 +158,9 @@ make -C policycoreutils-2.8 LSPP_PRIV=y SBINDIR="%{_sbindir}" LIBDIR="%{_libdir}
|
||||
make -C selinux-python-2.8 SBINDIR="%{_sbindir}" LSPP_PRIV=y LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" all
|
||||
make -C semodule-utils-2.8 SBINDIR="%{_sbindir}" LSPP_PRIV=y LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" all
|
||||
make -C restorecond-2.8 SBINDIR="%{_sbindir}" LSPP_PRIV=y LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" all
|
||||
%if %{with sandbox}
|
||||
make -C selinux-sandbox-2.8 SBINDIR="%{_sbindir}" LSPP_PRIV=y LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" all
|
||||
%endif
|
||||
make -C selinux-dbus-2.8 SBINDIR="%{_sbindir}" LSPP_PRIV=y LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" all
|
||||
|
||||
%install
|
||||
@ -165,7 +170,9 @@ make -C selinux-python-2.8 PYTHON=%{__python2} DESTDIR="%{buildroot}" SBINDIR="
|
||||
make -C selinux-python-2.8 PYTHON=%{__python3} DESTDIR="%{buildroot}" SBINDIR="%{_sbindir}" LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" install
|
||||
make -C semodule-utils-2.8 PYTHON=%{__python3} DESTDIR="%{buildroot}" SBINDIR="%{_sbindir}" LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" install
|
||||
make -C restorecond-2.8 PYTHON=%{__python3} DESTDIR="%{buildroot}" SBINDIR="%{_sbindir}" LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" install
|
||||
%if %{with sandbox}
|
||||
make -C selinux-sandbox-2.8 PYTHON=%{__python3} DESTDIR="%{buildroot}" SBINDIR="%{_sbindir}" LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" install
|
||||
%endif
|
||||
make -C selinux-dbus-2.8 PYTHON=%{__python3} DESTDIR="%{buildroot}" SBINDIR="%{_sbindir}" LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" install
|
||||
|
||||
|
||||
@ -192,10 +199,13 @@ install -m 755 -p %{SOURCE7} %{buildroot}/%{_libexecdir}/selinux/
|
||||
|
||||
pathfix.py -i "%{__python2} -Es" -p %{buildroot}%{python2_sitelib}
|
||||
pathfix.py -i "%{__python3} -Es" -p %{buildroot}%{python3_sitelib}
|
||||
pathfix.py -i "%{__python3} -Es" -p %{buildroot}%{_sbindir}/semanage %{buildroot}%{_bindir}/sandbox \
|
||||
pathfix.py -i "%{__python3} -Es" -p %{buildroot}%{_sbindir}/semanage \
|
||||
%if %{with sandbox}
|
||||
%{buildroot}%{_bindir}/sandbox \
|
||||
%{buildroot}%{_datadir}/sandbox/start \
|
||||
%endif
|
||||
%{buildroot}%{_bindir}/chcat %{buildroot}%{_bindir}/audit2allow \
|
||||
%{buildroot}%{_bindir}/sepolicy %{buildroot}%{_bindir}/sepolgen-ifgen \
|
||||
%{buildroot}%{_datadir}/sandbox/start \
|
||||
%{buildroot}%{_datadir}/system-config-selinux/selinux_server.py
|
||||
|
||||
|
||||
@ -248,7 +258,9 @@ find %{buildroot}%{python2_sitelib} %{buildroot}%{python3_sitelib} %{buildroot}%
|
||||
%{_bindir}/audit2why
|
||||
%{_sbindir}/semanage
|
||||
%{_bindir}/chcat
|
||||
%if %{with sandbox}
|
||||
%{_bindir}/sandbox
|
||||
%endif
|
||||
%{_sysconfdir}/dbus-1/system.d/org.selinux.conf
|
||||
%{_datadir}/bash-completion/completions/semanage
|
||||
|
||||
@ -304,15 +316,20 @@ find %{buildroot}%{python2_sitelib} %{buildroot}%{python3_sitelib} %{buildroot}%
|
||||
%dir /var/lib/sepolgen
|
||||
/var/lib/sepolgen/perm_map
|
||||
|
||||
%if %{with sandbox}
|
||||
%files sandbox
|
||||
%config(noreplace) %{_sysconfdir}/sysconfig/sandbox
|
||||
%{_datadir}/sandbox/{start,sandboxX.sh}
|
||||
%caps(cap_setpcap,cap_setuid,cap_fowner,cap_dac_override,cap_sys_admin,cap_sys_nice=pe) %{_sbindir}/seunshare
|
||||
%endif
|
||||
|
||||
%files help
|
||||
%{_mandir}/*
|
||||
|
||||
%changelog
|
||||
* Thu Mar 5 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.8-14
|
||||
- Build without sandbox
|
||||
|
||||
* Mon Feb 17 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.8-13
|
||||
- Add unpackaged files
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user