From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f172.google.com (mail-we0-f172.google.com [74.125.82.172]) by dpdk.org (Postfix) with ESMTP id 81FF95911 for ; Wed, 30 Apr 2014 02:46:55 +0200 (CEST) Received: by mail-we0-f172.google.com with SMTP id u57so984019wes.17 for ; Tue, 29 Apr 2014 17:46:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=G5bGTfcEMWM6yc9B+wnsFN3J4qkJ/BLP7Vj1hzgk4Ww=; b=SajbvgjmHbfh5ULujPE8L4EK7Z2CCLw1aq51prH8o1jAV525ZK1n7B3R5HOHOBLIFd Km50rkXq1o5sIiE4VoBapXq2LUlm7bViPIKRBDC0cZ9wbrOyTY5PD0o1Fv7i71js0doO 2ZQ0o9ZXJ7woBaykC+7QktkIzqSZHLuDHUGj+DQkxqgETP9Oq9IqiMjF1WbxHOShYKm8 v8MjArocFsaZqbLVssKykpVX/8AoV4EwhnIack2Q89hpWlprXJFxCxXubhiKzxbjspSG hIKch79c1Blnqxe6XZ35NHCKon71+qpzNzmd9z0nk9elKl5J9BSqXq3A2vi86bq+G+3n 3sHg== X-Gm-Message-State: ALoCoQnGJwD8Af6ZgMa+FqcNqiFakP83iGyCMWdIRDNv5gt6vhiMAcnGE5/sccXnLoHb2ItA623E X-Received: by 10.180.89.241 with SMTP id br17mr975393wib.0.1398818819408; Tue, 29 Apr 2014 17:46:59 -0700 (PDT) Received: from localhost.localdomain (abo-213-55-68.mts.modulonet.fr. [85.68.55.213]) by mx.google.com with ESMTPSA id hm5sm33521685wjc.17.2014.04.29.17.46.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 Apr 2014 17:46:58 -0700 (PDT) From: Thomas Monjalon To: dev@dpdk.org Date: Wed, 30 Apr 2014 02:46:45 +0200 Message-Id: <1398818805-18834-5-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 1.9.2 In-Reply-To: <1398818805-18834-1-git-send-email-thomas.monjalon@6wind.com> References: <1398818805-18834-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [virtio-net-pmd PATCH v2 4/4] pkg: add recipe for RPM X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2014 00:46:55 -0000 Package can be built with: rpmbuild -ta virtio-net-pmd-1.1.tar.gz Signed-off-by: Thomas Monjalon --- pkg/dpdk-virtio.spec | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 pkg/dpdk-virtio.spec diff --git a/pkg/dpdk-virtio.spec b/pkg/dpdk-virtio.spec new file mode 100644 index 0000000..97cd386 --- /dev/null +++ b/pkg/dpdk-virtio.spec @@ -0,0 +1,73 @@ +# Copyright 2014 6WIND S.A. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# - Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# - Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. +# +# - Neither the name of 6WIND S.A. nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED +# OF THE POSSIBILITY OF SUCH DAMAGE. + +Name: dpdk-virtio-1 +Version: 1.1 +Release: 1 +Packager: packaging@6wind.com +URL: http://dpdk.org/doc/virtio-net-pmd +Source: http://dpdk.org/browse/virtio-net-pmd/snapshot/virtio-net-pmd-%{version}.tar.gz + +Summary: virtio-net driver for Intel(r) Data Plane Development Kit +Group: System Environment/Libraries +License: BSD + +ExclusiveArch: i686, x86_64 +%define target %{_arch}-default-linuxapp-gcc + +BuildRequires: dpdk-core-1.6.0-devel, kernel-headers +Requires: dpdk-core-1.6.0 + +%description +virtio-net is a paravirtualized network interface based on virtio framework, +and has been introduced as PMD by 6WIND. It avoids security risk by not using +UIO framework. + +%define datadir %{_datadir}/dpdk +%define docdir %{_docdir}/dpdk + +%prep +%setup -qn virtio-net-pmd-%{version} + +%build +make %{?_smp_mflags} RTE_INCLUDE=%{datadir}/%{target}/include + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} libdir=%{_libdir} docdir=%{docdir} + +%files +%{_libdir}/* +%doc %{docdir} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig -- 1.9.2