File mingw64-gr-fosphor.spec of Package mingw64-gr-fosphor
#
# spec file for package mingw64-gr-fosphor
#
# Copyright (c) 2015, Martin Hauke <mardnh@gmx.de>
#
# 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/
#
%define realname gr-fosphor
Name: mingw64-%{realname}
Version: 0.0.0.git.20210108
Release: 0
Summary: GNUradio fosphor block (GPU spectrum display)
License: GPL-3.0-only
Group: Productivity/Hamradio/Other
URL: http://git.osmocom.org/gr-fosphor
Source: %{realname}-%{version}.tar.xz
Patch0: mingw64-fosphor-makefile.diff
BuildRequires: cmake
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-dlfcn-win32-devel
BuildRequires: mingw64-filesystem >= 35
BuildRequires: mingw64-freetype-devel
BuildRequires: mingw64-glew-devel
BuildRequires: mingw64-glfw-devel
#BuildRequires: mingw64-freeocl-devel
BuildRequires: mingw64-opencl-devel
BuildRequires: mingw64-opencl-headers-1_2
BuildRequires: python
BuildArch: noarch
%{_mingw64_package_header_debug}
%{_mingw64_debug_package}
%description
GNURadio block for spectrum visualization using GPU.
%prep
%setup -q -n %{realname}-%{version}
%patch0 -p1
%build
# test/benchmark-tool
cd lib/fosphor
%{_mingw64_make} VERBOSE=1 %{?_smp_mflags}
%install
install -Dpm 0755 lib/fosphor/main.exe %{buildroot}/%{_mingw64_bindir}/fosphor-test.exe
%files
%{_mingw64_bindir}/fosphor-test.exe
%changelog