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 Thu Apr 7 08:42:20 UTC 2016 - dimstar@opensuse.org

View File

@ -1,7 +1,7 @@
# #
# spec file for package libnsl # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,27 +17,28 @@
Name: libnsl Name: libnsl
Version: 1.0.4 Version: 1.1.0
Release: 0 Release: 0
Summary: Network Support Library (NIS/NIS+) Summary: Network Support Library (NIS/NIS+)
License: LGPL-2.1 License: LGPL-2.1
Group: System/Libraries 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 Url: http://github.com/thkukuk/libnsl
Source: %{name}-%{version}.tar.bz2 Source: %{name}-%{version}.tar.bz2
Source1: baselibs.conf Source1: baselibs.conf
BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build 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 %description
The Network Support Library for NIS/NIS+ was formerly part of glibc and 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 is now a standalone library. The big difference is, that this library
has support for IPv6. has support for IPv6.
The NIS+ code is deprecated and only there "as is".
%package -n libnsl2 %package -n libnsl2
Summary: Network Support Library (NIS/NIS+) 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 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 is now a standalone library. The big difference is, that this library
has support for IPv6. has support for IPv6.
The NIS+ code is deprecated and only there "as is".
%package devel %package devel
Summary: Development package for Network Support Library (NIS/NIS+) 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 is now a standalone library. The big difference is, that this library
has support for IPv6. has support for IPv6.
This package contains all files to develop and link against libnsl. This package contains all files to develop and link against libnsl.
The NIS+ API is deprecated and only there "as is".
%prep %prep
%setup -q %setup -q
%build %build
%configure --libdir=/%{_libdir}/nsl --includedir=%{_includedir}/nsl %configure --libdir=/%{_libdir}/nsl --includedir=%{_includedir}/nsl
%{__make} %{?_smp_mflags} make %{?_smp_mflags}
%install %install
# Don't strip .symtab to allow debugging # Don't strip .symtab to allow debugging
export STRIP_KEEP_SYMTAB=libnsl*.so* export STRIP_KEEP_SYMTAB=libnsl*.so*
# NO_BRP_CHECK_ROOTFS is for SLES11 only, but does not harm for Factory # NO_BRP_CHECK_ROOTFS is for SLES11 only, but does not harm for Factory
export NO_BRP_CHECK_ROOTFS=true export NO_BRP_CHECK_ROOTFS=true
make install DESTDIR=$RPM_BUILD_ROOT make %{?_smp_mflags} DESTDIR=%{buildroot} install
# move library to /lib mv -v %{buildroot}/%{_libdir}/nsl/%{name}.so.2* %{buildroot}%{_libdir}/
%{__mkdir} -p $RPM_BUILD_ROOT/%{_lib}
%{__mv} -v $RPM_BUILD_ROOT/%{_libdir}/nsl/%{name}.so.2* $RPM_BUILD_ROOT/%{_lib}/
# Adjust devel so link # Adjust devel so link
%{__rm} -v %{buildroot}/%{_libdir}/nsl/%{name}.{a,la,so} rm -v %{buildroot}/%{_libdir}/nsl/%{name}.{a,la,so}
%{__ln_s} -v /%{_lib}/%{name}.so.2 %{buildroot}%{_libdir}/nsl/%{name}.so ln -s -v %{_libdir}/%{name}.so.2 %{buildroot}%{_libdir}/nsl/%{name}.so
%{__mv} -v $RPM_BUILD_ROOT/%{_libdir}/nsl/pkgconfig $RPM_BUILD_ROOT/%{_libdir} mv -v %{buildroot}/%{_libdir}/nsl/pkgconfig %{buildroot}/%{_libdir}
%check %check
make check make %{?_smp_mflags} check
%post -n libnsl2 -p /sbin/ldconfig %post -n libnsl2 -p /sbin/ldconfig
%postun -n libnsl2 -p /sbin/ldconfig %postun -n libnsl2 -p /sbin/ldconfig
%files -n libnsl2 %files -n libnsl2
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING %doc COPYING
/%{_lib}/libnsl.so.2* %{_libdir}/libnsl.so.2*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)