2016-01-20 14:53:35 +01:00
|
|
|
#
|
|
|
|
# spec file for package libnsl
|
|
|
|
#
|
2017-02-23 11:39:47 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libnsl
|
2017-08-18 21:55:39 +02:00
|
|
|
Version: 1.1.0
|
2016-01-20 14:53:35 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Network Support Library (NIS/NIS+)
|
|
|
|
License: LGPL-2.1
|
|
|
|
Group: System/Libraries
|
2017-08-18 21:57:41 +02:00
|
|
|
Url: http://github.com/thkukuk/libnsl
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
Source1: baselibs.conf
|
2016-01-20 14:53:35 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkg-config
|
2017-08-18 21:57:41 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
2017-08-19 08:14:40 +02:00
|
|
|
%define debug_package_requires libnsl2 = %{version}-%{release}
|
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.
|
2017-02-23 11:39:47 +01:00
|
|
|
The NIS+ code is deprecated and only there "as is".
|
2016-01-20 14:53:35 +01:00
|
|
|
|
|
|
|
%package -n libnsl2
|
|
|
|
Summary: Network Support Library (NIS/NIS+)
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libnsl2
|
|
|
|
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.
|
2017-02-23 11:39:47 +01:00
|
|
|
The NIS+ code is deprecated and only there "as is".
|
|
|
|
|
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++
|
|
|
|
Requires: libnsl2 = %{version}
|
|
|
|
|
|
|
|
%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.
|
2017-02-23 11:39:47 +01:00
|
|
|
The NIS+ API is deprecated and only there "as is".
|
|
|
|
|
2016-01-20 14:53:35 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --libdir=/%{_libdir}/nsl --includedir=%{_includedir}/nsl
|
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*
|
|
|
|
# NO_BRP_CHECK_ROOTFS is for SLES11 only, but does not harm for Factory
|
|
|
|
export NO_BRP_CHECK_ROOTFS=true
|
2017-08-18 21:57:41 +02:00
|
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
2017-08-19 07:56:30 +02:00
|
|
|
mv -v %{buildroot}/%{_libdir}/nsl/%{name}.so.2* %{buildroot}%{_libdir}/
|
2016-01-20 14:53:35 +01:00
|
|
|
# Adjust devel so link
|
2017-08-18 21:57:41 +02:00
|
|
|
rm -v %{buildroot}/%{_libdir}/nsl/%{name}.{a,la,so}
|
2017-08-19 07:56:30 +02:00
|
|
|
ln -s -v %{_libdir}/%{name}.so.2 %{buildroot}%{_libdir}/nsl/%{name}.so
|
2017-08-18 21:57:41 +02:00
|
|
|
mv -v %{buildroot}/%{_libdir}/nsl/pkgconfig %{buildroot}/%{_libdir}
|
2016-01-20 14:53:35 +01: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
|
|
|
|
|
|
|
%post -n libnsl2 -p /sbin/ldconfig
|
|
|
|
%postun -n libnsl2 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libnsl2
|
|
|
|
%defattr(-,root,root)
|
2016-04-08 18:02:37 +02:00
|
|
|
%doc COPYING
|
2017-08-18 21:55:39 +02:00
|
|
|
%{_libdir}/libnsl.so.2*
|
2016-01-20 14:53:35 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_libdir}/nsl/
|
|
|
|
%{_libdir}/nsl/libnsl.so
|
2016-04-08 18:02:37 +02:00
|
|
|
%dir %{_includedir}/nsl/
|
|
|
|
%{_includedir}/nsl/*
|
|
|
|
%{_libdir}/pkgconfig/*
|
2016-01-20 14:53:35 +01:00
|
|
|
|
|
|
|
%changelog
|