slapi-nis/slapi-nis.spec
jackie_wu e8f65dc811 add
2021-09-13 16:49:37 +08:00

61 lines
1.9 KiB
RPMSpec

%define ldap_impl openldap
%define betxn_opts --enable-be-txns-by-default
%define sss_nss_opts --with-sss-nss-idmap --with-idviews
Name: slapi-nis
Version: 0.56.7
Release: 1
Summary: NIS Server and Schema Compatibility plugins for Directory Server
License: GPLv2
URL: http://pagure.io/slapi-nis/
Source0: https://releases.pagure.org/slapi-nis/slapi-nis-%{version}.tar.gz
BuildRequires: make
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: 389-ds-base-devel >= 1.3.5.6, %{ldap_impl}-devel
BuildRequires: nspr-devel, nss-devel, /usr/bin/rpcgen
BuildRequires: libsss_nss_idmap-devel > 1.16.0-5
BuildRequires: pam-devel
BuildRequires: libnsl2-devel
Requires: 389-ds-base >= 1.3.5.6
%description
This package provides two plugins for 389 Directory Server.
The NIS Server plugin allows the directory server to act as a NIS server
for clients, dynamically generating and updating NIS maps according to
its configuration and the contents of the DIT, and serving the results to
clients using the NIS protocol as if it were an ordinary NIS server.
The Schema Compatibility plugin allows the directory server to provide an
alternate view of entries stored in part of the DIT, optionally adding,
dropping, or renaming attribute values, and optionally retrieving values
for attributes from multiple entries in the tree.
%prep
%setup -q
%build
autoconf --force
%configure --disable-static --with-ldap=%{ldap_impl} \
--with-nsswitch --with-pam --with-pam-service=system-auth \
%{sss_nss_opts} %{betxn_opts}
sed -i -e 's,%{_libdir}/dirsrv/plugins/,,g' -e 's,.so$,,g' doc/examples/*.ldif
make
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm $RPM_BUILD_ROOT/%{_libdir}/dirsrv/plugins/*.la
%files
%doc COPYING NEWS README STATUS doc/*.txt doc/examples/*.ldif doc/ipa
%{_mandir}/man1/*
%{_libdir}/dirsrv/plugins/*.so
%{_sbindir}/nisserver-plugin-defs
%changelog
* Mon Sep 13 2021 <wutao61@huawei.com> - 0.56.7-1
- Package init