Move documentation to %{_pkgdocdir}
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
This commit is contained in:
parent
b3e1d168dd
commit
4886bd212f
20
pam.spec
20
pam.spec
@ -200,6 +200,17 @@ install -m644 -D %{SOURCE15} %{buildroot}%{_prefix}/lib/tmpfiles.d/pam.conf
|
|||||||
install -m644 -D modules/pam_namespace/pam_namespace.service \
|
install -m644 -D modules/pam_namespace/pam_namespace.service \
|
||||||
%{buildroot}%{_unitdir}/pam_namespace.service
|
%{buildroot}%{_unitdir}/pam_namespace.service
|
||||||
|
|
||||||
|
# Install doc files to unified location.
|
||||||
|
install -d -m 755 %{buildroot}%{_pkgdocdir}/{adg/html,mwg/html,sag/html,txts}
|
||||||
|
install -p -m 644 doc/specs/rfc86.0.txt %{buildroot}%{_pkgdocdir}
|
||||||
|
install -p -m 644 doc/txts/* %{buildroot}%{_pkgdocdir}/txts
|
||||||
|
for i in adg mwg sag; do
|
||||||
|
install -p -m 644 doc/$i/*.txt %{buildroot}%{_pkgdocdir}/$i
|
||||||
|
cp -pr doc/$i/html/* %{buildroot}%{_pkgdocdir}/$i/html
|
||||||
|
done
|
||||||
|
find %{buildroot}%{_pkgdocdir} -type d | xargs chmod 755
|
||||||
|
find %{buildroot}%{_pkgdocdir} -type f | xargs chmod 644
|
||||||
|
|
||||||
%find_lang Linux-PAM
|
%find_lang Linux-PAM
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -334,6 +345,8 @@ done
|
|||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
|
%dir %{_pkgdocdir}
|
||||||
|
%doc %{_pkgdocdir}/rfc86.0.txt
|
||||||
%{_includedir}/security
|
%{_includedir}/security
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
%{_libdir}/libpam.so
|
%{_libdir}/libpam.so
|
||||||
@ -342,13 +355,9 @@ done
|
|||||||
%{_libdir}/pkgconfig/pam.pc
|
%{_libdir}/pkgconfig/pam.pc
|
||||||
%{_libdir}/pkgconfig/pam_misc.pc
|
%{_libdir}/pkgconfig/pam_misc.pc
|
||||||
%{_libdir}/pkgconfig/pamc.pc
|
%{_libdir}/pkgconfig/pamc.pc
|
||||||
%doc doc/mwg/*.txt doc/mwg/html
|
|
||||||
%doc doc/adg/*.txt doc/adg/html
|
|
||||||
%doc doc/specs/rfc86.0.txt
|
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%doc doc/txts
|
%doc %{_pkgdocdir}
|
||||||
%doc doc/sag/*.txt doc/sag/html
|
|
||||||
|
|
||||||
%posttrans
|
%posttrans
|
||||||
|
|
||||||
@ -370,6 +379,7 @@ exit 0
|
|||||||
- Remove old cruft from spec file
|
- Remove old cruft from spec file
|
||||||
- Rename docs sub-package to doc
|
- Rename docs sub-package to doc
|
||||||
- Replace $RPM_BUILD_ROOT with %%{buildroot}
|
- Replace $RPM_BUILD_ROOT with %%{buildroot}
|
||||||
|
- Move documentation to %%{_pkgdocdir}
|
||||||
|
|
||||||
* Thu Sep 23 2021 Björn Esser <besser82@fedoraproject.org> - 1.5.2-5
|
* Thu Sep 23 2021 Björn Esser <besser82@fedoraproject.org> - 1.5.2-5
|
||||||
- Rebase to pam-redhat-1.1.5
|
- Rebase to pam-redhat-1.1.5
|
||||||
|
Loading…
Reference in New Issue
Block a user