From patchwork Fri Oct 14 19:21:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jarod Wilson X-Patchwork-Id: 9377329 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5CB0960779 for ; Fri, 14 Oct 2016 19:22:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4AA672A823 for ; Fri, 14 Oct 2016 19:22:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F5452A825; Fri, 14 Oct 2016 19:22:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB3942A823 for ; Fri, 14 Oct 2016 19:22:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752435AbcJNTWU (ORCPT ); Fri, 14 Oct 2016 15:22:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53496 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756730AbcJNTVp (ORCPT ); Fri, 14 Oct 2016 15:21:45 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 13275E036A for ; Fri, 14 Oct 2016 19:21:45 +0000 (UTC) Received: from hp-dl360pgen8-07.khw.lab.eng.bos.redhat.com (hp-dl360pgen8-07.khw.lab.eng.bos.redhat.com [10.16.184.47]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u9EJLhAY011408; Fri, 14 Oct 2016 15:21:44 -0400 From: Jarod Wilson To: linux-rdma@vger.kernel.org Cc: Jarod Wilson Subject: [PATCH rdma-core 1/4] rpm spec: install documentation too Date: Fri, 14 Oct 2016 15:21:33 -0400 Message-Id: <20161014192136.11731-2-jarod@redhat.com> In-Reply-To: <20161014192136.11731-1-jarod@redhat.com> References: <20161014192136.11731-1-jarod@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 14 Oct 2016 19:21:45 +0000 (UTC) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- rdma-core.spec | 4 ++++ 1 file changed, 4 insertions(+) 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