2016-01-20 14:53:35 +01:00
|
|
|
#
|
|
|
|
# spec file for package libnsl
|
|
|
|
#
|
2021-08-16 13:22:31 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2016-01-20 14:53:35 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-07-06 12:40:11 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-01-20 14:53:35 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-08-16 13:22:31 +02:00
|
|
|
%define debug_package_requires libnsl3 = %{version}-%{release}
|
2016-01-20 14:53:35 +01:00
|
|
|
Name: libnsl
|
2021-08-16 13:22:31 +02:00
|
|
|
Version: 2.0.0
|
2016-01-20 14:53:35 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Network Support Library (NIS/NIS+)
|
2018-02-23 11:15:20 +01:00
|
|
|
License: LGPL-2.1-only
|
2018-03-14 13:18:17 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-07-06 12:40:11 +02:00
|
|
|
URL: http://github.com/thkukuk/libnsl
|
|
|
|
Source: %{name}-%{version}.tar.xz
|
2017-08-18 21:57:41 +02:00
|
|
|
Source1: baselibs.conf
|
2016-01-20 14:53:35 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkg-config
|
2016-03-30 14:08:00 +02:00
|
|
|
%if 0%{?suse_version} >= 1310
|
2017-02-23 11:39:47 +01:00
|
|
|
BuildRequires: libtirpc-devel >= 1.0
|
2016-03-30 14:08:00 +02:00
|
|
|
%endif
|
2016-01-20 14:53:35 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Network Support Library for NIS/NIS+ was formerly part of glibc and
|
|
|
|
is now a standalone library. The big difference is, that this library
|
|
|
|
has support for IPv6.
|
2018-03-14 13:18:17 +01:00
|
|
|
The NIS+ code is deprecated and only provided "as is".
|
2016-01-20 14:53:35 +01:00
|
|
|
|
2021-08-16 13:22:31 +02:00
|
|
|
%package -n libnsl3
|
2016-01-20 14:53:35 +01:00
|
|
|
Summary: Network Support Library (NIS/NIS+)
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2021-08-16 13:22:31 +02:00
|
|
|
%description -n libnsl3
|
2016-01-20 14:53:35 +01:00
|
|
|
The Network Support Library for NIS/NIS+ was formerly part of glibc and
|
|
|
|
is now a standalone library. The big difference is, that this library
|
|
|
|
has support for IPv6.
|
2018-03-14 13:18:17 +01:00
|
|
|
The NIS+ code is deprecated and only provided "as is".
|
2017-02-23 11:39:47 +01:00
|
|
|
|
2016-01-20 14:53:35 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Development package for Network Support Library (NIS/NIS+)
|
|
|
|
Group: Development/Libraries/C and C++
|
2021-08-16 13:22:31 +02:00
|
|
|
Requires: libnsl3 = %{version}
|
2017-11-13 08:33:32 +01:00
|
|
|
Requires: pkgconfig(libtirpc) >= 1.0.1
|
2016-01-20 14:53:35 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The Network Support Library for NIS/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.
|
2018-03-14 13:18:17 +01:00
|
|
|
The NIS+ API is deprecated and only provided "as is".
|
2017-02-23 11:39:47 +01:00
|
|
|
|
2016-01-20 14:53:35 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2017-09-24 11:35:38 +02:00
|
|
|
%configure --disable-static
|
2017-08-18 21:57:41 +02:00
|
|
|
make %{?_smp_mflags}
|
2016-01-20 14:53:35 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
# Don't strip .symtab to allow debugging
|
|
|
|
export STRIP_KEEP_SYMTAB=libnsl*.so*
|
2017-11-13 08:33:32 +01:00
|
|
|
%make_install
|
2017-09-24 11:35:38 +02:00
|
|
|
# Remove .la file
|
|
|
|
rm %{buildroot}%{_libdir}/%{name}.la
|
2017-08-31 07:47:26 +02:00
|
|
|
|
2016-03-30 14:08:00 +02:00
|
|
|
%check
|
2017-08-18 21:57:41 +02:00
|
|
|
make %{?_smp_mflags} check
|
2016-01-20 14:53:35 +01:00
|
|
|
|
2021-08-16 13:22:31 +02:00
|
|
|
%post -n libnsl3 -p /sbin/ldconfig
|
|
|
|
%postun -n libnsl3 -p /sbin/ldconfig
|
2016-01-20 14:53:35 +01:00
|
|
|
|
2021-08-16 13:22:31 +02:00
|
|
|
%files -n libnsl3
|
2018-02-23 11:11:35 +01:00
|
|
|
%license COPYING
|
2021-08-16 13:22:31 +02:00
|
|
|
%{_libdir}/libnsl.so.3*
|
2016-01-20 14:53:35 +01:00
|
|
|
|
|
|
|
%files devel
|
2017-09-24 11:35:38 +02:00
|
|
|
%{_libdir}/libnsl.so
|
|
|
|
%{_includedir}/*
|
2016-04-08 18:02:37 +02:00
|
|
|
%{_libdir}/pkgconfig/*
|
2016-01-20 14:53:35 +01:00
|
|
|
|
|
|
|
%changelog
|