# # spec file for package libnsl # # Copyright (c) 2021 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 debug_package_requires libnsl3 = %{version}-%{release} Name: libnsl Version: 2.0.0 Release: 1.13 Summary: Network Support Library (NIS) License: LGPL-2.1-only Group: Development/Libraries/C and C++ URL: http://github.com/thkukuk/libnsl Source: %{name}-%{version}.tar.xz Source1: baselibs.conf BuildRequires: autoconf BuildRequires: libtool BuildRequires: pkgconf-pkg-config %if 0%{?suse_version} >= 1310 BuildRequires: libtirpc-devel >= 1.0 %endif %description The Network Support Library for NIS(YP) was formerly part of glibc and is now a standalone library. The big difference is, that this library has support for IPv6. %package -n libnsl3 Summary: Network Support Library (NIS) Group: System/Libraries %description -n libnsl3 The Network Support Library for NIS was formerly part of glibc and is now a standalone library. The big difference is, that this library has support for IPv6. %package devel Summary: Development package for Network Support Library (NIS) Group: Development/Libraries/C and C++ Requires: libnsl3 = %{version} Requires: pkgconfig(libtirpc) >= 1.0.1 %description devel The Network Support Library for NIS was formerly part of glibc and is now a standalone library. The big difference is, that this library has support for IPv6. This package contains all files to develop and link against libnsl. %prep %setup -q %build %configure --disable-static make %{?_smp_mflags} %install # Don't strip .symtab to allow debugging export STRIP_KEEP_SYMTAB=libnsl*.so* %make_install # Remove .la file rm %{buildroot}%{_libdir}/%{name}.la %check make %{?_smp_mflags} check %post -n libnsl3 -p /sbin/ldconfig %postun -n libnsl3 -p /sbin/ldconfig %files -n libnsl3 %license COPYING %{_libdir}/libnsl.so.3* %files devel %{_libdir}/libnsl.so %{_includedir}/* %{_libdir}/pkgconfig/* %changelog * Mon Aug 16 2021 Thorsten Kukuk - Update to version 2.0.0 - Remove NIS+ code - Bump soversion to 3 * Mon Jul 6 2020 Thorsten Kukuk - Update to version 1.3.0 - Cleanup to support new gettext, libtool, automake, ... - Try to detect recursive NIS calls * Sun Mar 4 2018 jengelh@inai.de - Fix SRPM group and word choice in description. * Fri Feb 23 2018 kukuk@suse.com - Use %%license instead of %%doc [bsc#1082318] * Sat Nov 11 2017 kukuk@suse.de - Update to version 1.2.0 - make code more portable - fix pkgconfig requires * Sat Nov 11 2017 kukuk@suse.de - libnsl-devel: require libtirpc-devel * Tue Sep 12 2017 kukuk@suse.de - Install yppasswd.h again * Tue Sep 5 2017 kukuk@suse.de - Disable static library * Wed Aug 30 2017 kukuk@suse.de - Don't install into nsl subdirectories * Fri Aug 18 2017 kukuk@suse.com - Update to version 1.1.0 - Fix compilation with new glibc (obsoletes decls.patch) - Add rpcsvc/yp.h * Wed Jul 5 2017 schwab@suse.de - decls.patch: fix missing declarations * Thu Feb 23 2017 kukuk@suse.de - Update to version 1.0.5 - Fix compiler warnings * Thu Apr 7 2016 dimstar@opensuse.org - Add COPYING to the library package. * Tue Mar 8 2016 kukuk@suse.de - Update to version 1.0.4 - better compatibility with glibc yppasswd.h * Wed Feb 17 2016 kukuk@suse.de - Update to version 1.0.3 - export some private functions for libnss_nisplus * Mon Feb 15 2016 kukuk@suse.de - Update to version 1.0.2 - remove obsolete prototypes from public header files - add missing header files * Wed Jan 20 2016 kukuk@suse.de - Update to version 1.0.1 - enable all code with fixed tirpc >= 1.0 * Fri Jun 26 2015 kukuk@suse.com - Initial release