From patchwork Fri Dec 13 10:16:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 11290387 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 65CD414BD for ; Fri, 13 Dec 2019 10:16:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4386724656 for ; Fri, 13 Dec 2019 10:16:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="P+RsONNd" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726382AbfLMKQx (ORCPT ); Fri, 13 Dec 2019 05:16:53 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:48883 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725906AbfLMKQx (ORCPT ); Fri, 13 Dec 2019 05:16:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576232212; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=dZC3TLQvKNL9dxqm2y+N7UcG0Ltn/GJ3LHNlZCZCWpc=; b=P+RsONNdIdQmURIdHSfgsN+OdpYZ+ITZ+YMsJ/VKJqtOIl6NGOYuT94baKhJ8tTMqnNzMJ JQrsnxWafkQqCYRzgOxVvD3P0arhBZhaOQmmmC9tP728XrBy0EWrjGBfOupt+UPS11YQIv dSOYyUlaChF+iEjQqawbj/EVQQj44QI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-124-j8tgXK5EM5eMBgJ1pdhukQ-1; Fri, 13 Dec 2019 05:16:46 -0500 X-MC-Unique: j8tgXK5EM5eMBgJ1pdhukQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 18982DB61; Fri, 13 Dec 2019 10:16:45 +0000 (UTC) Received: from localhost (unknown [10.36.118.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id 71D6A63BCD; Fri, 13 Dec 2019 10:16:41 +0000 (UTC) From: Stefan Hajnoczi To: Jens Axboe Cc: linux-block@vger.kernel.org, Jeff Moyer , Stefan Hajnoczi Subject: [PATCH liburing] spec: additional Fedora RPM cleanups Date: Fri, 13 Dec 2019 10:16:40 +0000 Message-Id: <20191213101640.1180590-1-stefanha@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Cole Robinson made some more suggestions: * Use %set_build_flags before ./configure to get the default compiler flags. * Use '%license COPYING' instead of %doc. * Do not ship the static library. This is distro policy and Fedora would ship a separate -static package if static libraries are desired. * Source: should be the URL to the sources. URL: should be the URL of the website or git repo. * The devel package needs Requires: %{name}%{?_isa} = %{version}-%{release} Signed-off-by: Stefan Hajnoczi Acked-by: Jeff Moyer --- liburing.spec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/liburing.spec b/liburing.spec index e542771..87b16b1 100644 --- a/liburing.spec +++ b/liburing.spec @@ -3,8 +3,8 @@ Version: 0.2 Release: 1%{?dist} Summary: Linux-native io_uring I/O access library License: LGPLv2+ -Source: %{name}-%{version}.tar.gz -URL: https://git.kernel.dk/cgit/liburing/snapshot/%{name}-%{version}.tar.gz +Source: https://git.kernel.dk/cgit/liburing/snapshot/%{name}-%{version}.tar.gz +URL: https://git.kernel.dk/cgit/liburing/ BuildRequires: gcc %description @@ -13,7 +13,7 @@ manner, for both buffered and O_DIRECT. %package devel Summary: Development files for Linux-native io_uring I/O access library -Requires: %{name} = %{version}-%{release} +Requires: %{name}%{_isa} = %{version}-%{release} Requires: pkgconfig %description devel @@ -24,6 +24,7 @@ for the Linux-native io_uring. %autosetup %build +%set_build_flags ./configure --prefix=%{_prefix} --libdir=/%{_libdir} --mandir=%{_mandir} --includedir=%{_includedir} %make_build @@ -33,13 +34,13 @@ for the Linux-native io_uring. %files %attr(0755,root,root) %{_libdir}/liburing.so.* -%doc COPYING +%license COPYING %files devel %{_includedir}/liburing/ %{_includedir}/liburing.h %{_libdir}/liburing.so -%{_libdir}/liburing.a +%exclude %{_libdir}/liburing.a %{_libdir}/pkgconfig/* %{_mandir}/man2/*