Merge pull request 'various fixes for Leap 15/16' (#1) from rrahl0/libuser:fix-leap16 into master
This commit is contained in:
commit
60b30ea951
@ -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>
|
||||||
|
|
||||||
|
20
libuser.spec
20
libuser.spec
@ -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}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user