Name: LimeSuite Version: 22.09.0 Release: 1%{?dist} Summary: Collection of software supporting LMS7-based hardware License: Apache-2.0 Group: Productivity/Hamradio/Other URL: https://myriadrf.org/projects/lime-suite/ #Git-Clone: https://github.com/myriadrf/LimeSuite.git Source: https://github.com/myriadrf/LimeSuite/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: gnuplot BuildRequires: pkgconfig BuildRequires: octave-devel BuildRequires: wxGTK-devel BuildRequires: SoapySDR-devel BuildRequires: libusb1-devel BuildRequires: pkgconfig(udev) %description Lime Suite is a collection of software supporting several hardware platforms including the LimeSDR, drivers for the LMS7002M transceiver RFIC, and other tools for developing with LMS7-based hardware. Lime Suite enables many SDR applications, such as GQRX for example, to work with supported hardware through the bundled SoapySDR support module. %package libs Summary: Library for Lime Suite Group: System/Libraries Requires: udev %description libs Lime Suite is a collection of software supporting several hardware platforms and other tools for developing with LMS7-based hardware. %package udev Summary: Udev rules for LimeSDR Group: Hardware/Other %description udev Udev rules for Lime Suite %package devel Summary: Development files for libLimeSuite Group: Development/Libraries/C and C++ Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description devel Libraries and header files for developing applications that want to make use of libLimeSuite. %package -n soapysdr-module-lms7 Summary: SoapySDR LMS7 support module Group: System/Libraries %description -n soapysdr-module-lms7 Soapy LMS7 - LimeSDR device support for Soapy SDR. A Soapy module that supports LimeSDR devices within the Soapy API. %package doc Summary: Documentation for LimeSuite %description doc Documentation for LimeSuite %prep %autosetup # HACK: set udev permissions to 666 sed -i 's|MODE="660"|MODE="666"|g' udev-rules/64-limesuite.rules %build %cmake \ -DBUILD_SHARED_LIBS=ON \ -DCMAKE_AUTOSET_INSTALL_RPATH=FALSE \ -DUDEV_RULES_PATH=%{_udevrulesdir} \ -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG=" -include stdint.h" \ %ifarch x86_64 -DENABLE_SIMD_FLAGS="SSE3" \ %else -DENABLE_SIMD_FLAGS="none" \ %endif -DLIME_SUITE_EXTVER=release %cmake_build %install %cmake_install %post udev %udev_rules_update %postun udev %udev_rules_update %files %license COPYING %{_bindir}/LimeUtil %{_bindir}/LimeSuiteGUI %{_bindir}/LimeQuickTest %dir %{_datadir}/Lime %{_datadir}/Lime/Desktop %files udev %{_udevrulesdir}/64-limesuite.rules %files libs %{_libdir}/libLimeSuite.so.* %{_libdir}/octave/8.4.0/site/oct/x86_64-redhat-linux-gnu/LimeSuite.oct %{_datadir}/octave/8.4.0/site/m/LoadLimeSuite.m %files devel %{_libdir}/libLimeSuite.so %{_includedir}/lime %{_libdir}/pkgconfig/LimeSuite.pc %{_libdir}/cmake/LimeSuite/ %files -n soapysdr-module-lms7 %dir %{_libdir}/SoapySDR %dir %{_libdir}/SoapySDR/modules0.8 %{_libdir}/SoapySDR/modules0.8/libLMS7Support.so %files doc %doc Changelog.txt README.md %changelog * Wed Dec 09 2020 lu3vea@gmail.com - 20.10.0-1 - First Fedora spec