Accepting request 517650 from network:NIS

- Update to version 1.1.0
  - Fix compilation with new glibc (obsoletes decls.patch)
  - Add rpcsvc/yp.h

- decls.patch: fix missing declarations

- Update to version 1.0.5
  - Fix compiler warnings

OBS-URL: https://build.opensuse.org/request/show/517650
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libnsl?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2017-08-24 15:40:29 +00:00 committed by Git OBS Bridge
parent bfbd96ebec
commit 780e25e55a
4 changed files with 41 additions and 23 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cfeed2dffa165dee7b1a566d99fb407a10eebc0d1dc6980f13efe1ee59814868
size 375410

3
libnsl-1.1.0.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9bf9b683f11b264ec271c07285c02ad8d39801bc640560760b4d2977434ff86d
size 354120

View File

@ -1,3 +1,21 @@
-------------------------------------------------------------------
Fri Aug 18 19:53:51 UTC 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 13:53:16 UTC 2017 - schwab@suse.de
- decls.patch: fix missing declarations
-------------------------------------------------------------------
Thu Feb 23 11:38:55 CET 2017 - kukuk@suse.de
- Update to version 1.0.5
- Fix compiler warnings
-------------------------------------------------------------------
Thu Apr 7 08:42:20 UTC 2016 - dimstar@opensuse.org

View File

@ -1,7 +1,7 @@
#
# spec file for package libnsl
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,27 +17,28 @@
Name: libnsl
Version: 1.0.4
Version: 1.1.0
Release: 0
Summary: Network Support Library (NIS/NIS+)
License: LGPL-2.1
Group: System/Libraries
BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: pkg-config
%if 0%{?suse_version} >= 1310
BuildRequires: libtirpc-devel >= 1.0
%endif
Url: http://github.com/thkukuk/libnsl
Source: %{name}-%{version}.tar.bz2
Source1: baselibs.conf
BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define debug_package_requires libnsl1 = %{version}-%{release}
%if 0%{?suse_version} >= 1310
BuildRequires: libtirpc-devel >= 1.0
%endif
%define debug_package_requires libnsl2 = %{version}-%{release}
%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.
The NIS+ code is deprecated and only there "as is".
%package -n libnsl2
Summary: Network Support Library (NIS/NIS+)
@ -47,6 +48,7 @@ Group: System/Libraries
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.
The NIS+ code is deprecated and only there "as is".
%package devel
Summary: Development package for Network Support Library (NIS/NIS+)
@ -58,39 +60,37 @@ 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.
The NIS+ API is deprecated and only there "as is".
%prep
%setup -q
%build
%configure --libdir=/%{_libdir}/nsl --includedir=%{_includedir}/nsl
%{__make} %{?_smp_mflags}
make %{?_smp_mflags}
%install
# Don't strip .symtab to allow debugging
export STRIP_KEEP_SYMTAB=libnsl*.so*
# NO_BRP_CHECK_ROOTFS is for SLES11 only, but does not harm for Factory
export NO_BRP_CHECK_ROOTFS=true
make install DESTDIR=$RPM_BUILD_ROOT
# move library to /lib
%{__mkdir} -p $RPM_BUILD_ROOT/%{_lib}
%{__mv} -v $RPM_BUILD_ROOT/%{_libdir}/nsl/%{name}.so.2* $RPM_BUILD_ROOT/%{_lib}/
make %{?_smp_mflags} DESTDIR=%{buildroot} install
mv -v %{buildroot}/%{_libdir}/nsl/%{name}.so.2* %{buildroot}%{_libdir}/
# Adjust devel so link
%{__rm} -v %{buildroot}/%{_libdir}/nsl/%{name}.{a,la,so}
%{__ln_s} -v /%{_lib}/%{name}.so.2 %{buildroot}%{_libdir}/nsl/%{name}.so
%{__mv} -v $RPM_BUILD_ROOT/%{_libdir}/nsl/pkgconfig $RPM_BUILD_ROOT/%{_libdir}
rm -v %{buildroot}/%{_libdir}/nsl/%{name}.{a,la,so}
ln -s -v %{_libdir}/%{name}.so.2 %{buildroot}%{_libdir}/nsl/%{name}.so
mv -v %{buildroot}/%{_libdir}/nsl/pkgconfig %{buildroot}/%{_libdir}
%check
make check
make %{?_smp_mflags} check
%post -n libnsl2 -p /sbin/ldconfig
%postun -n libnsl2 -p /sbin/ldconfig
%files -n libnsl2
%defattr(-,root,root)
%doc COPYING
/%{_lib}/libnsl.so.2*
%{_libdir}/libnsl.so.2*
%files devel
%defattr(-,root,root)