From 452e11f76254fed6b3dede756d67160686fdbcb8 Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Fri, 14 Jan 2022 10:46:53 +0100 Subject: [PATCH] Fix the RPM condition for when the test subpackage is not built but the PAM plugin subpackage is --- mariadb.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mariadb.spec b/mariadb.spec index 4c99beb..33d1e7f 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -1162,13 +1162,15 @@ rm %{buildroot}%{_bindir}/{mariadb-client-test-embedded,mariadb-test-embedded} rm %{buildroot}%{_mandir}/man1/{mysql_client_test_embedded,mysqltest_embedded}.1* rm %{buildroot}%{_mandir}/man1/{mariadb-client-test-embedded,mariadb-test-embedded}.1* %endif # embedded +%if %{with pam} +rm %{buildroot}/suite/plugins/pam/mariadb_mtr +rm %{buildroot}/suite/plugins/pam/pam_mariadb_mtr.so +%endif # pam rm %{buildroot}%{_bindir}/{mysql_client_test,mysqltest} rm %{buildroot}%{_bindir}/{mariadb-client-test,mariadb-test} rm %{buildroot}%{_mandir}/man1/{mysql_client_test,mysqltest,my_safe_process}.1* rm %{buildroot}%{_mandir}/man1/{mariadb-client-test,mariadb-test}.1* rm %{buildroot}%{_mandir}/man1/{mysql-test-run,mysql-stress-test}.pl.1* -rm %{buildroot}/suite/plugins/pam/mariadb_mtr -rm %{buildroot}/suite/plugins/pam/pam_mariadb_mtr.so %endif %if %{without galera}