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>
|
||||||
|
|
||||||
|
36
libuser.spec
36
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)
|
||||||
|
|
||||||
@ -48,29 +59,29 @@ Sample applications modeled after those included with the shadow password suite
|
|||||||
are included.
|
are included.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
Requires: %{name}%{sover} = %{version}
|
Requires: %{name}%{sover} = %{version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
%package -n python3-%{name}
|
%package -n python3-%{name}
|
||||||
Summary: Python library for %{name}
|
Summary: Python library for %{name}
|
||||||
Requires: %{name}%{sover} = %{version}
|
Requires: %{name}%{sover} = %{version}
|
||||||
|
|
||||||
%description -n python3-%{name}
|
%description -n python3-%{name}
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
%package -n %{name}%{sover}
|
%package -n %{name}%{sover}
|
||||||
Summary: Library files for %{name}
|
Summary: Library files for %{name}
|
||||||
|
|
||||||
%description -n %{name}%{sover}
|
%description -n %{name}%{sover}
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
%package docs
|
%package docs
|
||||||
Summary: HTML Documentation for %{name}
|
Summary: HTML Documentation for %{name}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description docs
|
%description docs
|
||||||
%{summary}.
|
%{summary}.
|
||||||
@ -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