Package init
This commit is contained in:
commit
0d9b12bcdb
BIN
libnsl-4a062cf4180d99371198951e4ea5b4550efd58a3.tar.gz
Normal file
BIN
libnsl-4a062cf4180d99371198951e4ea5b4550efd58a3.tar.gz
Normal file
Binary file not shown.
10
libnsl2-1.0.5-include_stdint.patch
Normal file
10
libnsl2-1.0.5-include_stdint.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- libnsl-libnsl-1.0.5/src/nisplus/nis_call.c.include_stdint 2017-06-12 16:05:36.864341686 +0200
|
||||||
|
+++ libnsl-libnsl-1.0.5/src/nisplus/nis_call.c 2017-06-12 16:05:56.745337017 +0200
|
||||||
|
@@ -31,6 +31,7 @@
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <arpa/inet.h>
|
||||||
|
+#include <stdint.h>
|
||||||
|
|
||||||
|
#include "libc-lock.h"
|
||||||
|
#include "nis_intern.h"
|
||||||
74
libnsl2.spec
Normal file
74
libnsl2.spec
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
%global commit0 4a062cf4180d99371198951e4ea5b4550efd58a3
|
||||||
|
|
||||||
|
Name: libnsl2
|
||||||
|
Version: 1.2.0
|
||||||
|
Release: 4
|
||||||
|
Summary: Public client interface library for NIS(YP) and NIS+
|
||||||
|
License: BSD and LGPLv2+
|
||||||
|
URL: https://github.com/thkukuk/libnsl
|
||||||
|
Source0: https://github.com/thkukuk/libnsl/archive/%{commit0}.tar.gz#/libnsl-%{commit0}.tar.gz
|
||||||
|
|
||||||
|
Patch0: libnsl2-1.0.5-include_stdint.patch
|
||||||
|
|
||||||
|
BuildRequires: automake, autoconf, libtirpc-devel, gettext-devel, libtool
|
||||||
|
|
||||||
|
%description
|
||||||
|
This package contains the libnsl library. This library contains
|
||||||
|
the public client interface for NIS(YP) and NIS+.
|
||||||
|
This code was formerly part of glibc, but is now standalone to
|
||||||
|
be able to link against TI-RPC for IPv6 support.
|
||||||
|
The NIS(YP) functions are still maintained, the NIS+ part is
|
||||||
|
deprecated and should not be used anymore
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: The development for %{name}
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
The package contains lib and header files for developing application
|
||||||
|
that use %{name}
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n libnsl-%{commit0}
|
||||||
|
|
||||||
|
%patch0 -p1 -b .include_stdint
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
export CFLAGS="%{optflags}"
|
||||||
|
|
||||||
|
autoreconf -fiv
|
||||||
|
|
||||||
|
%configure\
|
||||||
|
--libdir=%{_exec_prefix}/%{_lib}\
|
||||||
|
--includedir=%{_prefix}/include
|
||||||
|
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
|
||||||
|
make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
|
rm -f %{buildroot}/%{_libdir}/libnsl.a || :
|
||||||
|
rm -f %{buildroot}/%{_libdir}/libnsl.la || :
|
||||||
|
|
||||||
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_exec_prefix}/%{_lib}/libnsl.so.2
|
||||||
|
%{_exec_prefix}/%{_lib}/libnsl.so.2.0.0
|
||||||
|
|
||||||
|
%license COPYING
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_exec_prefix}/%{_lib}/libnsl.so
|
||||||
|
%{_exec_prefix}/%{_lib}/pkgconfig/libnsl.pc
|
||||||
|
%{_prefix}/include/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Sep 5 2019 caomeng<caomeng5@huawei.com> - 2.10.0-4
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user