Name: volk Version: 2.4.1 Release: 1%{?dist} Summary: The Vector Optimized Library of Kernels License: GPLv3+ URL: https://github.com/gnuradio/%{name} Source0: https://github.com/gnuradio/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz Source1: https://github.com/gnuradio/volk/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc Source2: https://github.com/gnuradio/volk/releases/download/v2.4.1/gpg_volk_release_key.asc BuildRequires: gnupg2 BuildRequires: make BuildRequires: cmake BuildRequires: doxygen BuildRequires: gcc-c++ BuildRequires: python3-devel BuildRequires: python3-mako BuildRequires: orc-devel %description VOLK is the Vector-Optimized Library of Kernels. It is a library that contains kernels of hand-written SIMD code for different mathematical operations. Since each SIMD architecture can be very different and no compiler has yet come along to handle vectorization properly or highly efficiently, VOLK approaches the problem differently. VOLK is a sub-project of GNU Radio. %package devel Summary: Development files for VOLK Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{summary}. %package doc Summary: Documentation files for VOLK Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc %{summary}. %prep %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %autosetup -p1 %build # source /opt/rh/gcc-toolset-11/enable export CFLAGS="%{optflags} -fno-strict-aliasing" export CXXFLAGS="$CFLAGS" mkdir build cd build %cmake .. %make_build make volk_doc %{?_smp_mflags} %check cd %{_builddir}/%{name}-%{version}/build make test %install %make_install -C build %ldconfig_scriptlets # docs mkdir -p %{buildroot}%{_docdir}/%{name} pushd %{_builddir}/%{name}-%{version}/build cp -a html %{buildroot}%{_docdir}/%{name} popd # drop static objects rm -f %{buildroot}%{_libdir}/libcpu_features.a %files %license COPYING %doc README.md CHANGELOG.md %{_bindir}/list_cpu_features %{_bindir}/volk-config-info %{_bindir}/volk_modtool %{_bindir}/volk_profile %{_libdir}/libvolk*.so.* %{python3_sitearch}/* %files devel %{_includedir}/volk %{_includedir}/cpu_features %{_libdir}/libvolk.so %{_libdir}/cmake/volk %{_libdir}/cmake/CpuFeatures %{_libdir}/pkgconfig/*.pc %files doc %doc %{_docdir}/%{name}/html %changelog