commit 7a7c58361702c8efbd949b340f403da2a3121ed1 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:10:13 2019 -0400 Package init diff --git a/nss_nis.spec b/nss_nis.spec new file mode 100755 index 0000000..adeec17 --- /dev/null +++ b/nss_nis.spec @@ -0,0 +1,60 @@ +Name: nss_nis +Version: 3.0 +Release: 8 +Summary: Name Service Switch (NSS) module using NIS +License: LGPLv2+ +URL: https://github.com/thkukuk/libnss_nis +Source: https://github.com/thkukuk/libnss_nis/archive/v%{version}.tar.gz + +BuildRequires: libnsl2-devel, libtirpc-devel, autoconf, automake, libtool + + +%description +This package contains the NSS NIS plugin for glibc. This code was formerly part of glibc, but is now standalone to be able to link against TI-RPC for IPv6 support. The nss_nis Name Service Switch module uses the Network Information System (NIS) +to obtain user, group, host name, and other data. + +%package devel +Summary: Static library for nss_nis +Requires: %{name} = %{version}-%{release} +%description devel +Static library for nss_nis. + +%prep +%autosetup -n lib%{name}-%{version} + +%build +autoreconf -fiv +%configure --libdir=%{_libdir} --includedir=%{_includedir} +%make_build CFLAGS="%{optflags}" + +%install +rm -f %{buildroot}/%{_libdir}/lib%{name}.{a,la} +rm -f %{buildroot}/%{_libdir}/lib%{name}.so +%make_install + +%check +make check + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + + +%files +%{_libdir}/lib%{name}.la +%{_libdir}/lib%{name}.so.2 +%{_libdir}/lib%{name}.so.2.0.0 +%license COPYING + +%files devel +%{_libdir}/lib%{name}.a +%{_libdir}/lib%{name}.so + + + +%changelog +* Mon Sep 2 2019 openEuler Buildteam - 3.0.8 +- Package init + diff --git a/v3.0.tar.gz b/v3.0.tar.gz new file mode 100644 index 0000000..3867093 Binary files /dev/null and b/v3.0.tar.gz differ