%global pkgvers 0 %global scdate0 20261010 %global schash0 d6f7feaf016e1559ea479007196def1cc55a463c %global branch0 master %global source0 https://github.com/pothosware/SoapyUHD.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: SoapyUHD Version: 0.4.2 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: Soapy UHD License: GPLv3 URL: https://github.com/pothosware/SoapyUHD BuildRequires: cmake git gcc-c++ BuildRequires: boost-devel uhd-devel SoapySDR-devel %description Soapy SDR plugins for UHD supported SDR devices %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 %build %cmake -Wno-dev \ -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_SKIP_BUILD_RPATH=ON \ -DCMAKE_VERBOSE_MAKEFILE=OFF \ -DCMAKE_BUILD_TYPE=RelWithDebInfo %cmake_build %install %cmake_install %files %doc README.md %license COPYING %{_libdir}/* %changelog * Tue Aug 21 2018 Balint Cristian - github update releases