summaryrefslogtreecommitdiffstats
path: root/pkg/rpm
diff options
context:
space:
mode:
authorsharath reddy <bs.reddy@huawei.com>2019-06-04 11:53:49 +0530
committersharath reddy <bs.reddy@huawei.com>2019-06-04 20:38:30 +0530
commit2a42ad20b9730706ad371ae3787d4597c4e42276 (patch)
treefa01cd312586ea007468e7233f94c0ce53d75873 /pkg/rpm
parenta826fe833d3f2a8fe2673fa05811fe1a22baf045 (diff)
Feature: 19.04 part-2DMM-2
Change-Id: I0b52a6bb67c25c7955d58e29eb81a3cc9efea9e9 Signed-off-by: sharath reddy <bs.reddy@huawei.com>
Diffstat (limited to 'pkg/rpm')
-rw-r--r--pkg/rpm/dmm.spec50
1 files changed, 50 insertions, 0 deletions
diff --git a/pkg/rpm/dmm.spec b/pkg/rpm/dmm.spec
new file mode 100644
index 0000000..51ebef1
--- /dev/null
+++ b/pkg/rpm/dmm.spec
@@ -0,0 +1,50 @@
+Name: dmm
+Version: 18.10
+Release: 1%{?dist}
+Summary: DMM Project
+
+License: GPL
+URL: https://gerrit.fd.io/r/dmm
+Source: %{name}-%{version}.tar.gz
+
+BuildRequires: glibc, libstdc++, libgcc, numactl-libs
+BuildRequires: dpdk >= 18.02, dpdk-devel >= 18.02
+
+%description
+The DMM framework provides posix socket APIs to the application. A protocol
+stack could be plugged into the DMM. DMM will choose the most suitable stack
+for the application.
+
+%prep
+%setup -q
+
+
+%build
+cd build/
+cmake ..
+make -j 8
+
+%install
+cd ../../BUILDROOT
+mkdir -p %{name}-%{version}-%{release}.x86_64/usr/bin
+mkdir -p %{name}-%{version}-%{release}.x86_64/usr/lib64
+
+install -c ../BUILD/%{name}-%{version}/release/bin/kc_common %{name}-%{version}-%{release}.x86_64/usr/bin
+install -c ../BUILD/%{name}-%{version}/release/bin/ks_epoll %{name}-%{version}-%{release}.x86_64/usr/bin
+install -c ../BUILD/%{name}-%{version}/release/bin/vc_common %{name}-%{version}-%{release}.x86_64/usr/bin
+install -c ../BUILD/%{name}-%{version}/release/bin/vs_epoll %{name}-%{version}-%{release}.x86_64/usr/bin
+install -c ../BUILD/%{name}-%{version}/release/bin/ks_select %{name}-%{version}-%{release}.x86_64/usr/bin
+install -c ../BUILD/%{name}-%{version}/release/bin/vs_select %{name}-%{version}-%{release}.x86_64/usr/bin
+install -c ../BUILD/%{name}-%{version}/release/bin/ks_common %{name}-%{version}-%{release}.x86_64/usr/bin
+install -c ../BUILD/%{name}-%{version}/release/bin/vs_common %{name}-%{version}-%{release}.x86_64/usr/bin
+
+install -c ../BUILD/%{name}-%{version}/release/lib64/libdmm_api.so %{name}-%{version}-%{release}.x86_64/usr/lib64
+install -c ../BUILD/%{name}-%{version}/release/lib64/libnStackAPI.so %{name}-%{version}-%{release}.x86_64/usr/lib64
+
+%files
+/usr/bin/*
+/usr/lib64/*
+%doc
+
+
+%changelog