%global commit 89f3f0b390f3bbc58d8964b11a517173ed4eed78 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: nss-altfiles Version: 2.23.0 Release: 2 Summary: A NSS module which can read user information in an alternate location. License: LGPLv2+ URL: https://github.com/aperezdc/nss-altfiles Source0: https://github.com/aperezdc/nss-altfiles/archive/v2.23.0.tar.gz BuildRequires: gcc glibc-devel %description This is a NSS module which can read user information from files in the same format as \ /etc/passwd and /etc/group stored in an alternate location (/lib by default). openEuler sets the default alternate location to '/usr/lib/'. %package_help %prep %autosetup -n %{name}-%{version} %build ./configure --prefix=%{_prefix} --libdir=%{_libdir} CFLAGS="%{optflags}" LDFLAGS="%{build_ldflags}" %make_build %install %make_install %ldconfig_scriptlets %files %defattr(-,root,root) %license COPYING %{_libdir}/*.so.* %files help %defattr(-,root,root) %doc README.md %changelog * Wed Mar 16 2022 wangyueliang - 2.23.0-2 - set the default alternate location to '/usr/lib/'. * Mon Dec 27 2021 xu_ping - 2.23.0-1 - upgrade 2.23.0