forked from pool/airspyhf
Compare commits
4 Commits
Author | SHA256 | Date | |
---|---|---|---|
3af91e8d9a | |||
e916cde1ca | |||
b142ff4360 | |||
|
19bc7d4fda |
19
airspyhf-gcc15.patch
Normal file
19
airspyhf-gcc15.patch
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
--- airspyhf-1.6.8.orig/tools/src/airspyhf_rx.c 2025-05-05 14:40:18.791315628 +0000
|
||||||
|
+++ airspyhf-1.6.8/tools/src/airspyhf_rx.c 2025-05-05 14:42:14.990256589 +0000
|
||||||
|
@@ -36,6 +36,7 @@
|
||||||
|
|
||||||
|
#include <airspyhf.h>
|
||||||
|
|
||||||
|
+#if __STDC_VERSION__ < 202311L
|
||||||
|
#if !defined __cplusplus
|
||||||
|
#ifndef bool
|
||||||
|
typedef int bool;
|
||||||
|
@@ -43,6 +44,7 @@ typedef int bool;
|
||||||
|
#define false 0
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#include <windows.h>
|
||||||
|
|
@@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 5 14:47:25 UTC 2025 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- fix build with gcc15
|
||||||
|
https://github.com/airspy/airspyhf/issues/57
|
||||||
|
+ airspyhf-gcc15.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 20 21:50:16 UTC 2025 - Shawn Dunn <sfalken@opensuse.org>
|
||||||
|
|
||||||
|
- Add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to fix FTBFS with cmake4
|
||||||
|
- Add %check section
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 20 10:05:09 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
Tue Feb 20 10:05:09 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package airspyhf
|
# spec file for package airspyhf
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
# Copyright (c) 2017, Martin Hauke <mardnh@gmx.de>
|
# Copyright (c) 2017, Martin Hauke <mardnh@gmx.de>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@@ -29,7 +29,9 @@ URL: http://www.airspy.com/airspy-hf-plus
|
|||||||
#Git-Clone: https://github.com/airspy/airspyhf.git
|
#Git-Clone: https://github.com/airspy/airspyhf.git
|
||||||
Source: https://github.com/airspy/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source: https://github.com/airspy/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
Patch0: airspyhf-fix-libm-linking.patch
|
Patch0: airspyhf-fix-libm-linking.patch
|
||||||
BuildRequires: cmake >= 2.8
|
# https://github.com/airspy/airspyhf/issues/57
|
||||||
|
Patch1: airspyhf-gcc15.patch
|
||||||
|
BuildRequires: cmake >= 3.5
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: pkgconfig(libusb-1.0)
|
BuildRequires: pkgconfig(libusb-1.0)
|
||||||
@@ -71,7 +73,8 @@ sed -i "s/plugdev/airspyhf/g" tools/52-airspyhf.rules
|
|||||||
%if 0%{?suse_version} < 1330
|
%if 0%{?suse_version} < 1330
|
||||||
-DCMAKE_C_FLAGS=-std=c99 \
|
-DCMAKE_C_FLAGS=-std=c99 \
|
||||||
%endif
|
%endif
|
||||||
-DINSTALL_UDEV_RULES=ON
|
-DINSTALL_UDEV_RULES=ON \
|
||||||
|
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@@ -81,6 +84,9 @@ rm %{buildroot}%{_libdir}/libairspyhf.a
|
|||||||
mkdir -p %{buildroot}%{_udevrulesdir}
|
mkdir -p %{buildroot}%{_udevrulesdir}
|
||||||
mv %{buildroot}%{_sysconfdir}/udev/rules.d/52-airspyhf.rules %{buildroot}%{_udevrulesdir}
|
mv %{buildroot}%{_sysconfdir}/udev/rules.d/52-airspyhf.rules %{buildroot}%{_udevrulesdir}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%ctest
|
||||||
|
|
||||||
%post -n %{libname} -p /sbin/ldconfig
|
%post -n %{libname} -p /sbin/ldconfig
|
||||||
%postun -n %{libname} -p /sbin/ldconfig
|
%postun -n %{libname} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user