From 462aba7e1d30f39781b54f76c6840952fcdee015aa388b38f37fbe8d04d6aebd Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 20 Nov 2023 10:17:08 +0000 Subject: [PATCH] Accepting request 1127633 from home:scabrero:jsc-ped6714 - Fix spec file for Leap OBS-URL: https://build.opensuse.org/request/show/1127633 OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=301 --- sssd.changes | 5 +++++ sssd.spec | 12 +++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/sssd.changes b/sssd.changes index 420cc15..f1a0abf 100644 --- a/sssd.changes +++ b/sssd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Nov 17 14:52:30 UTC 2023 - Samuel Cabrero + +- Fix spec file for Leap + ------------------------------------------------------------------- Fri Nov 17 12:30:33 UTC 2023 - Samuel Cabrero diff --git a/sssd.spec b/sssd.spec index cd9e144..c496c32 100644 --- a/sssd.spec +++ b/sssd.spec @@ -41,7 +41,9 @@ BuildRequires: cyrus-sasl-devel BuildRequires: docbook-xsl-stylesheets BuildRequires: krb5-devel >= 1.12 BuildRequires: libcmocka-devel +%if 0%{?suse_version} >= 1600 BuildRequires: libsubid-devel +%endif BuildRequires: libtool BuildRequires: libunistring-devel BuildRequires: libxml2-tools @@ -366,11 +368,13 @@ autoreconf -fiv --enable-pammoddir="%_pam_moduledir" \ --with-ldb-lib-dir="%ldbdir" \ --with-selinux=yes \ - --with-subid \ --with-os=suse \ --disable-ldb-version-check \ --without-python2-bindings \ - --without-oidc-child + --without-oidc-child \ +%if 0%{?suse_version} >= 1600 + --with-subid +%endif %make_build all %install @@ -583,8 +587,10 @@ done %_pam_moduledir/pam_sss_gss.so %_libdir/krb5/ %_libdir/%name/modules/sssd_krb5_localauth_plugin.so -%_libdir/%name/modules/sssd_krb5_idp_plugin.so +%exclude %_libdir/%name/modules/sssd_krb5_idp_plugin.so +%if 0%{?suse_version} >= 1600 %_libdir/libsubid_sss.so +%endif %_mandir/??/man8/sssd_krb5_locator_plugin.8* %_mandir/??/man8/pam_sss.8* %_mandir/??/man8/pam_sss_gss.8*