52 lines
1.1 KiB
RPMSpec
52 lines
1.1 KiB
RPMSpec
Name: nss_nis
|
|
Version: 3.0
|
|
Release: 3%{?dist}
|
|
Summary: Name Service Switch (NSS) module using NIS
|
|
License: LGPLv2+
|
|
Group: System Environment/Base
|
|
Url: https://github.com/thkukuk/libnss_nis
|
|
Source: https://github.com/thkukuk/libnss_nis/archive/v%{version}.tar.gz
|
|
|
|
BuildRequires: libnsl2-devel
|
|
BuildRequires: libtirpc-devel
|
|
BuildRequires: autoconf, automake, libtool
|
|
|
|
|
|
%description
|
|
The nss_nis Name Service Switch module uses the Network Information System (NIS)
|
|
to obtain user, group, host name, and other data.
|
|
|
|
%prep
|
|
%setup -q -n libnss_nis-%{version}
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
autoreconf -fiv
|
|
|
|
%configure --libdir=%{_libdir} --includedir=%{_includedir}
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
rm %{buildroot}/%{_libdir}/libnss_nis.{a,la}
|
|
rm %{buildroot}/%{_libdir}/libnss_nis.so
|
|
|
|
%check
|
|
make check
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
%files
|
|
%{_libdir}/libnss_nis.so.2
|
|
%{_libdir}/libnss_nis.so.2.0.0
|
|
|
|
%license COPYING
|
|
|
|
%changelog
|
|
* Tue Jan 30 2018 Matej Mužila <mmuzila@redthat.com> - 3.0-3
|
|
- Inital release
|