From 2d0b1600c26084933e182b6323bd6f646f6c23dd08e860fb230f1d614dbd651b Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 20 May 2020 07:03:47 +0000 Subject: [PATCH] Fix the build (remove py2 lib if built without py2 support) OBS-URL: https://build.opensuse.org/package/show/devel:tools/pam_wrapper?expand=0&rev=33 --- pam_wrapper.changes | 5 +++++ pam_wrapper.spec | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/pam_wrapper.changes b/pam_wrapper.changes index 30e0b7e..c93d16c 100644 --- a/pam_wrapper.changes +++ b/pam_wrapper.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 20 07:02:41 UTC 2020 - Andreas Schneider + +- Fix the build (remove py2 lib if built without py2 support) + ------------------------------------------------------------------- Thu Mar 26 13:36:14 UTC 2020 - Andreas Schneider diff --git a/pam_wrapper.spec b/pam_wrapper.spec index 7be5129..2588d9a 100644 --- a/pam_wrapper.spec +++ b/pam_wrapper.spec @@ -118,6 +118,10 @@ the header files for libpamtest %install %cmake_install +%if %{without python2} +rm -rf %{python2_sitearch}/pypamtest.so +%endif + %check %ctest