diff mbox

[rdma-core,1/4] rpm spec: install documentation too

Message ID 20161014192136.11731-2-jarod@redhat.com (mailing list archive)
State Superseded
Headers show

Commit Message

Jarod Wilson Oct. 14, 2016, 7:21 p.m. UTC
At least in the Red Hat world, we like to install the documentation files
provided in a given source tree.

Signed-off-by: Jarod Wilson <jarod@redhat.com>
---
 rdma-core.spec | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/rdma-core.spec b/rdma-core.spec
index 96c86fe..609b910 100644
--- a/rdma-core.spec
+++ b/rdma-core.spec
@@ -91,6 +91,9 @@  This is a simple example without the split sub packages to get things started.
 %install
 %cmake_install
 
+mkdir -p %{buildroot}/%{_docdir}/%{name}-%{version}
+install -m0644 Documentation/{ibacm,ibsrpdm,libibcm,libibverbs,librdmacm,rxe}.md %{buildroot}/%{_docdir}/%{name}-%{version}/
+
 %if 0%{?_unitdir:1}
 rm -rf %{buildroot}/%{_initrddir}/
 %else
@@ -110,6 +113,7 @@  rm -rf %{buildroot}/%{my_unitdir}/
 %{_libdir}/rsocket/*
 %{_sbindir}/*
 %{_libexecdir}/*
+%{_docdir}/%{name}-%{version}/*
 %if 0%{?_unitdir:1}
 %{_unitdir}/*
 %else