various fixes for Leap 15/16 #1

Merged
rrahl0 merged 1 commits from :fix-leap16 into master 2025-01-06 18:00:54 +01:00
2 changed files with 34 additions and 11 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Mon Jan 6 16:57:03 UTC 2025 - Richard Rahl <rrahl0@opensuse.org>
- add support for Leap 15.6
- use make macro
- fix Leap16
- disable tests for Leap16, as openldap-server is missing and crpyt
will be removed
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jan 2 08:56:41 UTC 2025 - Richard Rahl <rrahl0@opensuse.org> Thu Jan 2 08:56:41 UTC 2025 - Richard Rahl <rrahl0@opensuse.org>

View File

@ -28,14 +28,25 @@ BuildRequires: bison
BuildRequires: gettext-tools BuildRequires: gettext-tools
BuildRequires: gtkdoc BuildRequires: gtkdoc
BuildRequires: libtool BuildRequires: libtool
BuildRequires: selinux-policy-devel
BuildRequires: sgmltool
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
%if 0%{?suse_version} >= 1600
BuildRequires: selinux-policy-devel
%else
BuildRequires: libselinux-devel
%endif
%if 0%{?suse_version} == 1600
BuildRequires: selinux-policy-targeted
%endif
BuildRequires: sgmltool
BuildRequires: pkgconfig(audit) BuildRequires: pkgconfig(audit)
BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(ldap) BuildRequires: pkgconfig(ldap)
BuildRequires: pkgconfig(libsasl2) BuildRequires: pkgconfig(libsasl2)
%if 0%{?suse_version} >= 1600
BuildRequires: pkgconfig(pam) BuildRequires: pkgconfig(pam)
%else
BuildRequires: pam-devel
%endif
BuildRequires: pkgconfig(popt) BuildRequires: pkgconfig(popt)
BuildRequires: pkgconfig(python3) BuildRequires: pkgconfig(python3)
@ -89,15 +100,18 @@ BuildArch: noarch
--with-sasl \ --with-sasl \
--with-python \ --with-python \
--enable-gtk-doc --enable-gtk-doc
make %make_build
%install %install
%make_install %make_install
%find_lang %{name} %find_lang %{name}
find %{buildroot} -type f \( -name '*.a' -o -name '*.la' \) -delete find %{buildroot} -type f \( -name '*.a' -o -name '*.la' \) -delete
%if 0%{?suse_version} != 1600
# Leap16.0 doesn't have openldap-server and with python313 the crypt module is missing
%check %check
%make_build check %make_build check
%endif
%ldconfig_scriptlets -n %{name}%{sover} %ldconfig_scriptlets -n %{name}%{sover}