Files
libnsl1-stub/libnsl1-stub.spec

70 lines
2.1 KiB
RPMSpec

#
# spec file for package wtmpdb
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define lname libnsl-stub1
Name: libnsl1-stub
Version: 1.1.0+git20250509.b78e4c9
Release: 0
Summary: Dummy libnsl.so.1 library
License: LGPL-2.1-or-later
URL: https://github.com/thkukuk/libnsl1-stub
Source: %{name}-%{version}.tar.xz
BuildRequires: meson
ExclusiveArch: x86_64 ppc64le aarch64
%description
This is a stub libnsl.so.1 library to make this binary applications
happy, where the ISV linked against libnsl.so because this was needed
30 years ago on SunOS and they never adjusted their build scripts for
Linux.
All NIS (YP) functions are stubs and just reporting an error.
%package -n %{lname}
Summary: Dummy libnsl.so.1 library
Version: 2.999
%description -n %{lname}
This is a stub libnsl.so.1 library to make this binary applications
happy, where the ISV linked against libnsl.so because this was needed
30 years ago on SunOS and they never adjusted their build scripts for
Linux.
All NIS (YP) functions are stubs and just reporting an error.
%prep
%autosetup
%build
%meson
%meson_build
%install
%meson_install
mv %{buildroot}%{_libdir}/libnsl.so.1.1.0 %{buildroot}%{_libdir}/libnsl-stub.so.1.1.0
/usr/sbin/ldconfig -l -n %{buildroot}%{_libdir}/libnsl-stub.so.1.1.0
rm %{buildroot}%{_libdir}/libnsl.so
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files -n %{lname}
%license COPYING.LIB
%{_libdir}/libnsl-stub.so.1.1.0
%{_libdir}/libnsl.so.1
%changelog