diff --git a/nss-altfiles.spec b/nss-altfiles.spec index 905b458241fc06bd161e91e0da0ce6cd865e0a9a..424b3549b18b177a7bb1f159bab175b69090f357 100644 --- a/nss-altfiles.spec +++ b/nss-altfiles.spec @@ -1,10 +1,12 @@ +%define anolis_release .0.1 + %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 -Release: 12%{?dist} +Release: 12%{anolis_release}%{?dist} #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 @@ -20,6 +22,14 @@ BuildRequires: glibc-devel When installed, this package allows looking up users in %{prefix}/lib/passwd, similarly, groups in %{prefix}/lib/group. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %autosetup @@ -31,14 +41,19 @@ make %{?_smp_mflags} make install DESTDIR=$RPM_BUILD_ROOT %files -%doc README.md %{_libdir}/*.so.* %post -p /sbin/ldconfig %postun -p /sbin/ldconfig +%files doc +%doc README.md + %changelog +* Wed Jul 20 2022 DengXiewei - 2.18.1-12.0.1 +- Add doc sub package + * Tue Apr 02 2019 Colin Walters - 2.18.1-12 - Add system LDFLAGS - Resolves: rhbz#1630609