%global github_owner merbanan %global github_name rtl_433 %global github_commit 376ca519ffa355693c158785235ebf0bcc5b62b8 %global debug_package %{nil} %define build_timestamp %(date +"%Y%m%d") Name: %{github_name} Version: %{build_timestamp} Release: %{github_commit} Summary: Program to decode radio transmissions from devices on the ISM bands (and other frequencies) License: GPL-2.0-only URL: https://github.com/%{github_owner}/%{github_name} Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{github_commit}/%{name}-%{github_commit}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libusb1-devel BuildRequires: make BuildRequires: ninja-build BuildRequires: openssl-devel BuildRequires: rtl-sdr-devel BuildRequires: SoapySDR-devel Requires: rtl-sdr-devel Requires: SoapySDR-devel %description Program to decode radio transmissions from devices on the ISM bands (and other frequencies) %prep %setup -n %{name}-%{github_commit} %build cmake -DFORCE_COLORED_BUILD:BOOL=OFF -DENABLE_SOAPYSDR=ON -DENABLE_OPENSSL=ON -GNinja -B build cmake --build build -j 4 %install # The do_build.sh does not output to _bindir. install -p -D -m 755 ./build/src/rtl_433 %{buildroot}%{_bindir}/rtl_433 %files %license COPYING %doc AUTHORS README.md %{_bindir}/rtl_433 %changelog * Sat Apr 11 2020 Thomas Vassilian - 1-1 - initial build for fc31 * Jeu mar 14 2024 Thomas Vassilian - 1-2 - included build steps as script is now removed - enable SoapySDR support - enforce OpenSSL support