From cb5001b93b94130ffbb2f63cb950006c450334268b7f341fc3b2e8742630bf51 Mon Sep 17 00:00:00 2001 From: Martin Hauke Date: Mon, 16 Sep 2019 09:57:58 +0000 Subject: [PATCH] Accepting request 731010 from home:StefanBruens:branches:hardware:sdr Standalone package, split from gnuradio. Required for gnuradio 3.8.0.0 OBS-URL: https://build.opensuse.org/request/show/731010 OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/volk?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + volk-v2.0.0.tar.xz | 3 ++ volk.changes | 4 ++ volk.spec | 108 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 139 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 volk-v2.0.0.tar.xz create mode 100644 volk.changes create mode 100644 volk.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/volk-v2.0.0.tar.xz b/volk-v2.0.0.tar.xz new file mode 100644 index 0000000..350518e --- /dev/null +++ b/volk-v2.0.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:686b6120539092ca9c1e865277b2c1581e51f7683e4facf9491194370221d97a +size 197036 diff --git a/volk.changes b/volk.changes new file mode 100644 index 0000000..9e553f0 --- /dev/null +++ b/volk.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Sep 12 13:28:15 UTC 2019 - Stefan BrĂ¼ns + +- First version of standalone VOLK package, version 2.0.0 diff --git a/volk.spec b/volk.spec new file mode 100644 index 0000000..d3b0b9d --- /dev/null +++ b/volk.spec @@ -0,0 +1,108 @@ +# +# spec file for package volk +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%global sonum 2 +%global soname 2_0 + +Name: volk +Version: 2.0.0 +Release: 0 +Summary: Vector-Optimized Library of Kernels +License: GPL-3.0-only +Group: Development/Libraries/C and C++ +URL: http://libvolk.org/ +Source: https://github.com/gnuradio/volk/releases/download/v%{version}/volk-v%{version}.tar.xz +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: fdupes +BuildRequires: libboost_filesystem-devel +BuildRequires: libboost_system-devel +BuildRequires: orc +BuildRequires: python-rpm-macros +BuildRequires: python3-Mako +BuildRequires: python3-six + +%description +VOLK provides a library of vector-optimized kernels. It is a subproject +of GNU Radio, but can also be used standalone. + +%package devel +Summary: Development files for VOLK +# Formerly part of gnuradio 3.7.x.y +Requires: libvolk%{soname} = %{version} +Conflicts: gnuradio-devel < 3.8.0.0 +Provides: gnuradio-devel:%{_libdir}/pkgconfig/volk.pc +Recommends: volk_modtool + +%description devel +This package provides the the development files for VOLK. + +%package -n libvolk%{soname} +Summary: VOLK shared library +Group: System/Libraries +Recommends: volk + +%description -n libvolk%{soname} +This package provides the VOLK shared library. + +%package -n volk_modtool +Summary: VOLK modtool + +%description -n volk_modtool +This package provides volk_modtool, used for creating new +VOLK kernels. + +%prep +%setup -q -n volk-v%{version} + +%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 + +%fdupes %{buildroot} + +%post -n libvolk%{soname} -p /sbin/ldconfig +%postun -n libvolk%{soname} -p /sbin/ldconfig + +%files +%license COPYING +%doc CHANGELOG.md README.md +%{_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 +%doc python/volk_modtool/README +%{_bindir}/volk_modtool +%{python3_sitearch}/volk_modtool + +%changelog +