2019-09-16 09:57:58 +00:00
|
|
|
#
|
|
|
|
# spec file for package volk
|
|
|
|
#
|
2024-01-19 13:01:49 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-09-16 09:57:58 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-12-23 08:44:58 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-09-16 09:57:58 +00:00
|
|
|
#
|
|
|
|
|
2019-12-23 08:44:58 +00:00
|
|
|
|
2023-01-16 14:01:01 +00:00
|
|
|
%global sonum 3
|
2023-12-07 19:15:56 +00:00
|
|
|
%global soname 3_1
|
2019-09-16 09:57:58 +00:00
|
|
|
Name: volk
|
2024-02-27 07:39:09 +00:00
|
|
|
Version: 3.1.2
|
2019-09-16 09:57:58 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Vector-Optimized Library of Kernels
|
2023-01-16 14:01:01 +00:00
|
|
|
License: LGPL-3.0-or-later
|
2019-09-16 09:57:58 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-11-30 16:07:15 +00:00
|
|
|
URL: https://libvolk.org/
|
2020-12-18 06:08:51 +00:00
|
|
|
Source: https://github.com/gnuradio/volk/releases/download/v%{version}/%{name}-%{version}.tar.xz
|
2022-09-06 12:12:47 +00:00
|
|
|
Source98: https://github.com/gnuradio/volk/releases/download/v%{version}/%{name}-%{version}.tar.xz.asc#/%{name}-%{version}.tar.xz.asc
|
2023-01-16 14:01:01 +00:00
|
|
|
Source99: volk.keyring
|
2019-09-16 09:57:58 +00:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: fdupes
|
2019-12-23 08:44:58 +00:00
|
|
|
BuildRequires: gcc-c++
|
2019-09-16 09:57:58 +00:00
|
|
|
BuildRequires: libboost_filesystem-devel
|
|
|
|
BuildRequires: libboost_system-devel
|
|
|
|
BuildRequires: orc
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python3-Mako
|
2020-11-30 16:07:15 +00:00
|
|
|
Provides: bundled(cpu_features) = 0.6.0
|
2019-09-16 09:57:58 +00:00
|
|
|
|
|
|
|
%description
|
2024-01-19 13:01:49 +00:00
|
|
|
VOLK is a library of vector-optimized kernels. It is a subproject
|
2019-09-16 09:57:58 +00:00
|
|
|
of GNU Radio, but can also be used standalone.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for VOLK
|
|
|
|
# Formerly part of gnuradio 3.7.x.y
|
2019-12-23 08:44:58 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-09-16 09:57:58 +00:00
|
|
|
Requires: libvolk%{soname} = %{version}
|
2020-11-30 16:07:15 +00:00
|
|
|
Recommends: volk_modtool
|
2019-09-16 09:57:58 +00:00
|
|
|
Conflicts: gnuradio-devel < 3.8.0.0
|
|
|
|
Provides: gnuradio-devel:%{_libdir}/pkgconfig/volk.pc
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides the the development files for VOLK.
|
|
|
|
|
|
|
|
%package -n libvolk%{soname}
|
2024-01-19 13:01:49 +00:00
|
|
|
Summary: Vector-Optimized Library of Kernels
|
2019-09-16 09:57:58 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
Recommends: volk
|
|
|
|
|
|
|
|
%description -n libvolk%{soname}
|
|
|
|
This package provides the VOLK shared library.
|
|
|
|
|
|
|
|
%package -n volk_modtool
|
2024-01-19 13:01:49 +00:00
|
|
|
Summary: VOLK kernel creation utility
|
|
|
|
Group: Development/Tools/Other
|
2019-09-16 09:57:58 +00:00
|
|
|
|
|
|
|
%description -n volk_modtool
|
|
|
|
This package provides volk_modtool, used for creating new
|
|
|
|
VOLK kernels.
|
|
|
|
|
|
|
|
%prep
|
2024-01-19 13:01:49 +00:00
|
|
|
%autosetup
|
2019-09-16 09:57:58 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
chmod -x %{buildroot}%{python3_sitearch}/volk_modtool/*py
|
|
|
|
sed -i -e '1 { \@.*/bin/env.*python.*@ d }' %{buildroot}%{python3_sitearch}/volk_modtool/*py
|
|
|
|
|
2024-01-19 13:01:49 +00:00
|
|
|
%fdupes %{buildroot}/%{_prefix}
|
2019-09-16 09:57:58 +00:00
|
|
|
|
|
|
|
%post -n libvolk%{soname} -p /sbin/ldconfig
|
|
|
|
%postun -n libvolk%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license COPYING
|
2022-09-06 12:12:47 +00:00
|
|
|
%doc docs/CHANGELOG.md README.md
|
2019-09-16 09:57:58 +00:00
|
|
|
%{_bindir}/volk_profile
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_bindir}/volk-config-info
|
|
|
|
%{_includedir}/volk
|
|
|
|
%{_libdir}/cmake/volk
|
|
|
|
%{_libdir}/libvolk.so
|
|
|
|
%{_libdir}/pkgconfig/volk.pc
|
|
|
|
|
|
|
|
%files -n libvolk%{soname}
|
|
|
|
%{_libdir}/libvolk.so.%{sonum}*
|
|
|
|
|
|
|
|
%files -n volk_modtool
|
2023-01-16 14:01:01 +00:00
|
|
|
%doc python/volk_modtool/README.md
|
2019-09-16 09:57:58 +00:00
|
|
|
%{_bindir}/volk_modtool
|
|
|
|
%{python3_sitearch}/volk_modtool
|
|
|
|
|
|
|
|
%changelog
|