File mingw64-libxtrxdsp.spec of Package mingw64-libxtrxdsp
#
# spec file for package mingw64-libxtrxdsp
#
# Copyright (c) 2019-2024, 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 sover 0
%define libname libxtrxdsp%{sover}
%define realname libxtrxdsp
Name: mingw64-%{realname}
Version: 0.0.0+git.20181019
Release: 0
Summary: XTRX DSP library
License: LGPL-2.1-only
Group: Development/Libraries/C and C++
URL: http://xtrx.io
#Git-Clone: https://github.com/xtrx-sdr/libxtrxdsp.git
Source: %{realname}-%{version}.tar.xz
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-filesystem
%{_mingw64_package_header_debug}
BuildArch: noarch
%description
DSP specific functions for SDR in general and XTRX in specific.
%package -n mingw64-%{libname}
Summary: XTRXDSP library
Group: System/Libraries
%description -n mingw64-%{libname}
DSP specific functions for SDR in general and XTRX in specific.
%package -n mingw64-%{realname}-devel
Summary: Development files for libxtrxdsp
Group: Development/Libraries/C and C++
Requires: mingw64-%{libname} = %{version}
%description -n mingw64-%{realname}-devel
DSP specific functions for SDR in general and XTRX in specific.
This subpackage contains libraries and header files for developing
applications that want to make use of libxtrxdsp.
%{_mingw64_debug_package}
%prep
%setup -q -n %{realname}-%{version}
%build
%{_mingw64_cmake} \
-DFORCE_ARCH=x86_64
%{_mingw64_make} %{?_smp_mflags}
%install
%{_mingw64_cmake_install}
%files -n mingw64-%{libname}
%{_mingw64_libdir}/libxtrxdsp.dll
# tools
%dir %{_mingw64_libdir}/xtrxdsp
%{_mingw64_libdir}/xtrxdsp/test_filter.exe
%{_mingw64_libdir}/xtrxdsp/test_xtrxdsp_sc32i_iq16.exe
%files -n mingw64-%{realname}-devel
%license LICENSE
%doc README.md
%{_mingw64_includedir}/xtrxdsp.h
%{_mingw64_includedir}/xtrxdsp_*.h
%{_mingw64_libdir}/libxtrxdsp.dll.a
%{_mingw64_libdir}/pkgconfig/libxtrxdsp.pc
%changelog