%undefine __os_install_post %undefine _auto_set_build_flags %define _install_dir /opt/vpp/external/%(uname -m) %define _make_args -C build/external INSTALL_DIR=%{buildroot}%{_install_dir} Name: vpp-ext-deps Version: 22.10 Release: 1%{?dist} Summary: VPP development package with external dependencies License: BSD Source: %{name}-%{version}.tar.xz Source1: http://fast.dpdk.org/rel/dpdk-22.07.tar.xz Source2: http://github.com/01org/intel-ipsec-mb/archive/v1.2.tar.gz Source3: https://github.com/vpp-quic/quicly/releases/download/v0.1.3-vpp/quicly_0.1.3-vpp.tar.gz Source4: https://github.com/libbpf/libbpf/archive/v0.5.0.tar.gz Source5: http://github.com/linux-rdma/rdma-core/releases/download/v41.0/rdma-core-41.0.tar.gz Source6: https://files.pythonhosted.org/packages/44/05/8ac9e7747e5cdf817c2916cc15980374ef04cb2ecf4f6818392928c61923/meson-0.55.0.tar.gz Source7: https://files.pythonhosted.org/packages/b0/3a/88b210db68e56854d0bcf4b38e165e03be377e13907746f825790f3df5bf/setuptools-59.6.0-py3-none-any.whl Source8: https://files.pythonhosted.org/packages/27/d6/003e593296a85fd6ed616ed962795b2f87709c3eee2bca4f6d0fe55c6d00/wheel-0.37.1-py2.py3-none-any.whl Source9: https://files.pythonhosted.org/packages/04/7c/867630e6e6293793f838b31034aa1875e1c3bd8c1ec34a0929a2506f350c/pyelftools-0.29-py2.py3-none-any.whl BuildRequires: openssl openssl-devel BuildRequires: python3-devel BuildRequires: libmnl-devel libnl3-devel BuildRequires: libffi-devel apr-devel numactl-devel BuildRequires: elfutils-libelf-devel libuuid-devel BuildRequires: libtool byacc bison flex nasm 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} build/external/downloads %install make %{_make_args} config make %{_make_args} install export QA_SKIP_BUILD_ROOT=1 %files %{_install_dir}