slapi-nis/slapi-nis.spec

64 lines
2.0 KiB
RPMSpec
Raw Normal View History

2021-09-13 16:13:06 +08:00
%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
2023-04-13 17:04:28 +08:00
Version: 0.60.0
2021-09-13 16:13:06 +08:00
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
2023-04-13 17:04:28 +08:00
%autosetup -p1
2021-09-13 16:13:06 +08:00
%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
2023-04-13 17:04:28 +08:00
* Thu Apr 13 2023 yaoxin <yao_xin001@hoperun.com> - 0.60.0-1
- Update to 0.60.0
2021-09-13 16:13:06 +08:00
* Mon Sep 13 2021 <wutao61@huawei.com> - 0.56.7-1
- Package init