56 lines
1.4 KiB
RPMSpec
56 lines
1.4 KiB
RPMSpec
%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
|
|
* Thu Jun 09 2022 wangyueliang <wangyueliang@kylinos.cn> - 2.23.0-2
|
|
- set the default alternate location to '/usr/lib/'.
|
|
|
|
* Thu Apr 28 2022 xigaoxinyan <xigaoxinyan@h-partners.com> -2.23.0-1
|
|
- upgrade 2.23.0
|
|
|
|
* Wed Jun 02 2021 zhaoyao <zhaoyao32@huawei.com> - 2.18.1-9
|
|
- fixs faileds: /bin/sh: gcc: command not found.
|
|
|
|
* Sat Nov 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.18.1-8
|
|
- Package init
|