From e86906d050b25acbe51eb4f39783513717c96110 Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Jan 26 2024 13:41:04 +0000 Subject: [18/20] SPECfile cleanup - make sure the target directory exists The 'mv' command failed after the last commit, beacuse the line | install -p -m 644 -D selinux/%{pkg_name}-server-galera.pp %{buildroot}%{_datadir}/selinux/packages/targeted/%{pkg_name}-server-galera.pp which was originally before the cracklib condition, created the target directory tree thanks to the | install -D functionality. --- diff --git a/mariadb.spec b/mariadb.spec index 17cf494..a07820e 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -954,6 +954,7 @@ echo "d %{pidfiledir} 0755 mysql mysql -" >>%{buildroot}%{_tmpfilesdir}/%{pkg_na # Install additional cracklib selinux policy %if %{with cracklib} +mkdir -p %{buildroot}%{_datadir}/selinux/packages/targeted/ mv %{buildroot}%{_datadir}/mariadb/policy/selinux/mariadb-plugin-cracklib-password-check.pp %{buildroot}%{_datadir}/selinux/packages/targeted/%{pkg_name}-plugin-cracklib-password-check.pp rm %{buildroot}%{_datadir}/mariadb/policy/selinux/mariadb-plugin-cracklib-password-check.te %endif