2014-04-03 21:37:47 +00:00
|
|
|
%global commit 89f3f0b390f3bbc58d8964b11a517173ed4eed78
|
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
|
|
|
|
Summary: NSS module to look up users in /usr/lib/passwd too
|
|
|
|
Name: nss-altfiles
|
|
|
|
Version: 2.18.1
|
2014-04-08 15:34:56 +00:00
|
|
|
Release: 2%{?dist}
|
2014-04-03 21:37:47 +00:00
|
|
|
#VCS: https://github.com/aperezdc/nss-altfiles
|
|
|
|
Source0: https://github.com/aperezdc/nss-altfiles/archive/v%{version}.tar.gz
|
|
|
|
# From pull request: https://github.com/marineam/nss-altfiles/commit/dda5073238b88b4537f2d2707b0ef67bdd11fe06
|
2014-04-08 15:34:56 +00:00
|
|
|
# FIXME: Change nss-altfiles to not use glibc internal symbols
|
|
|
|
#Patch0: 0001-Explicitly-link-to-libc.patch
|
2014-04-03 21:37:47 +00:00
|
|
|
License: LGPLv2+
|
|
|
|
URL: https://github.com/aperezdc/nss-altfiles
|
|
|
|
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
When installed, this package allows looking up users
|
|
|
|
in %{prefix}/lib/passwd, similarly, groups in %{prefix}/lib/group.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup
|
|
|
|
|
|
|
|
%build
|
|
|
|
env CFLAGS=%{_optflags} ./configure --prefix=%{_prefix} --libdir=%{_libdir}
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%changelog
|
2014-04-08 15:34:56 +00:00
|
|
|
* Tue Apr 08 2014 Colin Walters <walters@verbum.org>
|
|
|
|
- Revert patch to link to libc, causes a dep on GLIBC_PRIVATE
|
|
|
|
|
2014-04-03 21:37:47 +00:00
|
|
|
* Sat Mar 22 2014 Colin Walters <walters@verbum.org>
|
|
|
|
- Initial packaging
|