Accepting request 923102 from home:dmulder:branches:security:idm
Disable selinux onf 15.4 also (it doesn't not work). OBS-URL: https://build.opensuse.org/request/show/923102 OBS-URL: https://build.opensuse.org/package/show/security:idm/cepces?expand=0&rev=7
This commit is contained in:
parent
febfaf2aeb
commit
c6a264d14d
12
cepces.spec
12
cepces.spec
@ -31,7 +31,7 @@ Source0: %{name}-%{version}.tar.bz2
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: %{app_name}-certmonger == %{version}
|
||||
%if 0%{?sle_version} > 150300 || 0%{?suse_version} > 1500
|
||||
%if 0%{?sle_version} > 150400 || 0%{?suse_version} > 1500
|
||||
Requires: %{app_name}-selinux == %{version}
|
||||
%endif
|
||||
Requires: python3-%{app_name} == %{version}
|
||||
@ -66,7 +66,7 @@ Requires: certmonger
|
||||
%{app_name} is an application for enrolling certificates through CEP and CES.
|
||||
This package provides the certmonger integration.
|
||||
|
||||
%if 0%{?sle_version} > 150300 || 0%{?suse_version} > 1500
|
||||
%if 0%{?sle_version} > 150400 || 0%{?suse_version} > 1500
|
||||
%package selinux
|
||||
Summary: SELinux support for %{app_name}
|
||||
|
||||
@ -85,7 +85,7 @@ SELinux support for %{app_name}
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
%if 0%{?sle_version} > 150300 || 0%{?suse_version} > 1500
|
||||
%if 0%{?sle_version} > 150400 || 0%{?suse_version} > 1500
|
||||
# Build the SELinux module(s).
|
||||
for SELINUXVARIANT in %{selinux_variants}; do
|
||||
make -C selinux clean all
|
||||
@ -98,7 +98,7 @@ done
|
||||
|
||||
install -d -m 0700 %{buildroot}%{logdir}
|
||||
|
||||
%if 0%{?sle_version} > 150300 || 0%{?suse_version} > 1500
|
||||
%if 0%{?sle_version} > 150400 || 0%{?suse_version} > 1500
|
||||
# Install the SELinux module(s).
|
||||
rm -fv selinux-files.txt
|
||||
|
||||
@ -129,7 +129,7 @@ install -p -m 755 bin/%{app_name}-submit \
|
||||
|
||||
sed -i 's/\/usr\/bin\/env python3/\/usr\/bin\/python3/g' %{buildroot}%{_libexecdir}/certmonger/%{app_name}-submit
|
||||
|
||||
%if 0%{?sle_version} > 150300 || 0%{?suse_version} > 1500
|
||||
%if 0%{?sle_version} > 150400 || 0%{?suse_version} > 1500
|
||||
%post selinux
|
||||
for SELINUXVARIANT in %{selinux_variants}; do
|
||||
%{_sbindir}/semodule -n -s ${SELINUXVARIANT} \
|
||||
@ -187,7 +187,7 @@ popd
|
||||
%dir %{_libexecdir}/certmonger
|
||||
%{_libexecdir}/certmonger/%{app_name}-submit
|
||||
|
||||
%if 0%{?sle_version} > 150300 || 0%{?suse_version} > 1500
|
||||
%if 0%{?sle_version} > 150400 || 0%{?suse_version} > 1500
|
||||
%files selinux -f selinux-files.txt
|
||||
%defattr(0644,root,root,0755)
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user