%define __os_install_post %{nil} %define _install_dir /opt/vpp/external/%(uname -m) %define _make_args -C build/external BUILD_DIR=%{_topdir}/tmp INSTALL_DIR=%{buildroot}%{_install_dir} Name: vpp-ext-deps Version: 21.10.1 Release: 1%{?dist} Summary: VPP development package with external dependencies License: BSD Source: %{name}-%{version}.tar.xz Source1: http://fast.dpdk.org/rel/dpdk-21.08.tar.xz Source2: http://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.14.02.tar.xz Source3: http://github.com/01org/intel-ipsec-mb/archive/v1.0.tar.gz Source4: https://github.com/vpp-quic/quicly/releases/download/v0.1.3-vpp/quicly_0.1.3-vpp.tar.gz Source5: https://github.com/libbpf/libbpf/archive/v0.2.tar.gz Source6: http://github.com/linux-rdma/rdma-core/releases/download/v35.0/rdma-core-35.0.tar.gz Source7: https://github.com/mesonbuild/meson/releases/download/0.55.0/meson-0.55.0.tar.gz Source8: https://files.pythonhosted.org/packages/ed/60/15ee37d6d3385e6a432d39b5ac51f8467178ad989ba50f2b55681c1a038e/setuptools-59.1.1-py3-none-any.whl Source9: https://files.pythonhosted.org/packages/04/80/cad93b40262f5d09f6de82adbee452fd43cdff60830b56a74c5930f7e277/wheel-0.37.0-py2.py3-none-any.whl Source10: https://files.pythonhosted.org/packages/6f/50/3d7729d64bb23393aa4c166af250a6e6f9def40c90bf0e9af3c5ad25b6f7/pyelftools-0.27-py2.py3-none-any.whl BuildRequires: pkgconfig(openssl) < 3 BuildRequires: openssl mbedtls-devel BuildRequires: python3-devel python3-ply BuildRequires: libmnl-devel libnl3-devel BuildRequires: libffi-devel apr-devel numactl-devel BuildRequires: elfutils-libelf-devel libuuid-devel BuildRequires: libtool byacc bison flex BuildRequires: gcc-c++ cmake ninja-build %description VPP development package with external dependencies %prep %setup -q -n %{name}-%{version} mkdir build/external/downloads mv %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} %{SOURCE10} build/external/downloads %install make %{_make_args} config make %{_make_args} install export QA_SKIP_BUILD_ROOT=1 find %{buildroot} -type l -exec sed -i '' {} ';' %files %{_install_dir}