Compare commits
9 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 36b56a651f | |||
| ef75bc26a7 | |||
| dcbcb2f2d4 | |||
| 1587f244be | |||
| 1a8905a319 | |||
| 76cc7165fc | |||
| 1bdab7bad3 | |||
| 4c558ee261 | |||
| 095d77773c |
3
libusrp-3.4.10.tar.xz
Normal file
3
libusrp-3.4.10.tar.xz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6213709191f374e06f51589f10c387808e21d3e0f7bfbbe884bd160b9aaee5d2
|
||||
size 1313860
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bd12476d9ef0880e5d773c9a9050a18e994aec77489d9f68b640bb5c0ee689ef
|
||||
size 1305960
|
||||
23
libusrp-disable-firmware-build.patch
Normal file
23
libusrp-disable-firmware-build.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
diff -up libusrp-3.4.10/configure.ac.aaaa libusrp-3.4.10/configure.ac
|
||||
--- libusrp-3.4.10/configure.ac.aaaa 2025-02-12 11:52:14.000000000 +0100
|
||||
+++ libusrp-3.4.10/configure.ac 2025-03-01 01:36:51.085575043 +0100
|
||||
@@ -83,7 +83,6 @@ AM_CONDITIONAL(HAVE_DOXYGEN, test $DOXYG
|
||||
AC_CHECK_PROG([XMLTO],[xmlto],[yes],[])
|
||||
AM_CONDITIONAL([HAS_XMLTO], [test x$XMLTO = xyes])
|
||||
|
||||
-USRP_SDCC([3.2.0],[],[passed=no;AC_MSG_ERROR([Unable to find firmware compiler SDCC 3.x.])])
|
||||
|
||||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
diff -up libusrp-3.4.10/Makefile.am.aaaa libusrp-3.4.10/Makefile.am
|
||||
--- libusrp-3.4.10/Makefile.am.aaaa 2025-03-01 01:39:02.059019711 +0100
|
||||
+++ libusrp-3.4.10/Makefile.am 2025-03-01 01:39:20.076296429 +0100
|
||||
@@ -31,7 +31,7 @@ EXTRA_DIST += \
|
||||
debian \
|
||||
$(NULL)
|
||||
|
||||
-SUBDIRS = host fpga doc firmware
|
||||
+SUBDIRS = host fpga doc
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = \
|
||||
@@ -1,3 +1,26 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 11 10:02:56 UTC 2025 - Andreas Schwab <schwab@suse.de>
|
||||
|
||||
- Don't build firware on riscv64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 23 10:58:51 CEST 2025 - aschnell@suse.com
|
||||
|
||||
- libboost_system was removed upstream (bsc#1249900)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 22 12:31:07 UTC 2025 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Disable firmware build for aarch64 as well
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 1 20:03:24 UTC 2025 - Wojciech Kazubski <wk@ire.pw.edu.pl>
|
||||
|
||||
- Update to version 3.4.10
|
||||
- Workaround: fix build for architectures where sdcc is not
|
||||
available or causes error while building firmware
|
||||
* Add patch: libusrp-disable-firmware-build.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 11 15:36:50 UTC 2024 - Wojciech Kazubski <wk@ire.pw.edu.pl>
|
||||
|
||||
|
||||
25
libusrp.spec
25
libusrp.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package libusrp
|
||||
#
|
||||
# Copyright (c) 2021-2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
# Copyright (c) 2018-2021, Martin Hauke <mardnh@gmx.de>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -19,14 +19,20 @@
|
||||
|
||||
%define sover 1
|
||||
%define libname libusrp%{sover}
|
||||
%ifarch aarch64 armv7hl ppc64le riscv64 x86_64
|
||||
%define build_firmware 0
|
||||
%else
|
||||
%define build_firmware 1
|
||||
%endif
|
||||
Name: libusrp
|
||||
Version: 3.4.9
|
||||
Version: 3.4.10
|
||||
Release: 0
|
||||
Summary: Stand-alone libusrp for USRP1 from old gnuradio.git
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Libraries/C and C++
|
||||
URL: https://git.osmocom.org/libusrp
|
||||
Source: %{name}-%{version}.tar.xz
|
||||
Patch0: libusrp-disable-firmware-build.patch
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: fdupes
|
||||
@@ -34,13 +40,17 @@ BuildRequires: gcc-c++
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python3
|
||||
%if %{build_firmware}
|
||||
BuildRequires: sdcc
|
||||
%endif
|
||||
BuildRequires: pkgconfig(libusb-1.0)
|
||||
%if 0%{?suse_version} > 1325
|
||||
BuildRequires: libboost_date_time-devel
|
||||
BuildRequires: libboost_filesystem-devel
|
||||
BuildRequires: libboost_program_options-devel
|
||||
%if 0%{?suse_version} < 1600
|
||||
BuildRequires: libboost_system-devel
|
||||
%endif
|
||||
BuildRequires: libboost_thread-devel
|
||||
%else
|
||||
BuildRequires: boost-devel
|
||||
@@ -85,14 +95,15 @@ Firmware files for the USRP1 SDR.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%if !%{build_firmware}
|
||||
%patch -P 0 -p1
|
||||
%endif
|
||||
|
||||
%build
|
||||
echo "%{version}" >.tarball-version
|
||||
autoreconf -fiv
|
||||
%configure
|
||||
# parallel build is br0ken
|
||||
# -> https://osmocom.org/issues/3970#change-15556
|
||||
make V=1 # %{?_smp_mflags}
|
||||
%configure --disable-rpath
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
@@ -101,6 +112,8 @@ rm -f %{buildroot}%{_libdir}/libusrp.la
|
||||
rm -rf %{buildroot}%{_includedir}/gnuradio/
|
||||
%fdupes %{buildroot}%{_datadir}/usrp
|
||||
|
||||
%check
|
||||
|
||||
%post -n %{libname} -p /sbin/ldconfig
|
||||
%postun -n %{libname} -p /sbin/ldconfig
|
||||
|
||||
|
||||
Reference in New Issue
Block a user