%global pkgvers 0 %global scdate0 20240207 %global schash0 9dce3b6a6bd66537a2249ad27101345d31aafc89 %global branch0 master %global source0 https://github.com/myriadrf/LimeSuite.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: limesuite Version: 23.11.0 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: Lime Suite License: Apache URL: https://github.com/myriadrf/LimeSuite BuildRequires: gcc-c++ git cmake doxygen libX11-devel SoapySDR-devel BuildRequires: fltk-devel libusb1-devel wxWidgets-devel libglvnd-devel gnuplot %if ! 0%{?rhel} BuildRequires: fltk-fluid %endif %if ! (0%{?rhel} == 9) BuildRequires: octave-devel %endif %global __cmake_in_source_build 1 %description The Lime Suite application software provides drivers and SDR application support for the LMS7002M RFIC, and hardware like the LimeSDR, NovenaRF7, and others. %package devel Summary: Development library of LimeSuite Requires: %{name} = %{version}-%{release} %description devel Development LimeSuite library %if ! (0%{?rhel} == 9) %package octave Summary: Octave library of LimeSuite Requires: %{name} = %{version}-%{release} Requires: octave %description octave Octave LimeSuite library %endif %prep %setup -T -c -n %{name} git clone --depth 1 -n -b %{branch0} %{source0} . git fetch --depth 1 origin %{schash0} git reset --hard %{schash0} git log --format=fuller # gcc13 sed -i '1i #include ' src/lms7002m_mcu/MCU_File.cpp %build mkdir -p build pushd build %cmake .. -Wno-dev \ -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_SKIP_BUILD_RPATH=ON \ -DCMAKE_VERBOSE_MAKEFILE=OFF \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DOpenGL_GL_PREFERENCE=GLVND \ -DFLTK_DIR=/usr \ -DFLTK_INCLUDE_DIR=%{_includedir}/FL \ -DENABLE_HEADERS=ON \ -DENABLE_LIBRARY=ON \ -DENABLE_SPI=OFF \ -DENABLE_REMOTE=OFF \ -DENABLE_STREAM=OFF \ -DENABLE_EVB7COM=ON \ -DENABLE_UTILITIES=ON \ -DENABLE_NEW_GAIN_BEHAVIOUR=ON \ -DENABLE_API_DOXYGEN=ON make %{?_smp_mflags} popd %install rm -rf %{buildroot} pushd build make install DESTDIR=%{buildroot} popd %files %doc README.md %license COPYING %{_bindir}/* %{_libdir}/*.so.* %{_libdir}/SoapySDR %{_datadir}/Lime %files devel %{_includedir}/* %{_libdir}/*.so %{_libdir}/cmake/LimeSuite/*.cmake %{_libdir}/pkgconfig/LimeSuite.pc %if ! (0%{?rhel} == 9) %files octave %{_libdir}/octave %{_datadir}/octave %endif %changelog * Tue Aug 21 2018 Balint Cristian - github update releases