Name: rtl-wmbus Version: 0 %global forgeurl https://github.com/xaelsouth/%{name} %global date 20210315 %global commit cce47b67b7d84ca7ef685c7e0fbd853114f3f605 %global the_binary rtl_wmbus %forgemeta Release: 8%{?dist} Summary: Software defined receiver for wireless M-Bus with RTL-SDR License: BSD Url: %{forgeurl} Source0: %{forgesource} BuildRequires: make BuildRequires: /usr/bin/git BuildRequires: gcc BuildRequires: fixedptc-devel Requires: /usr/bin/rtl_sdr %description rtl-wmbus is a software defined receiver for Wireless-M-Bus. It is written in plain C and uses RTL-SDR to interface with RTL2832-based hardware. Wireless-M-Bus is the wireless version of M-Bus ("Meter-Bus", http://www.m-bus.com), which is an European standard for remote reading of smart meters. The primary purpose of rtl-wmbus is experimenting with digital signal processing and software radio. rtl-wmbus can be used on resource constrained devices such as Raspberry Pi Zero or Raspberry PI B+ overclocked to 1GHz. Any Android based tablet will do the same too. rtl-wmbus provides: - filtering - FSK demodulating - clock recovering - mode T1 and mode C1 packet decoding %prep %forgeautosetup -S git # Remove bundled fixedptc library rm -rf include # Split the LICENSE from the README.md awk '/^ License/ {dump=1; next} \ /^ -------/ {next} \ /.*/ {if (dump) {print}}' \ README.md >LICENSE %build %set_build_flags export LIB="%{__global_ldflags} -lm" %{make_build} %install install -p -m 0755 -D build/%{the_binary} %{buildroot}%{_bindir}/%{the_binary} %files # The license is in the documentation file %license LICENSE %doc README.md %{_bindir}/%{the_binary} %changelog * Mon Apr 12 2021 Damian Wrobel - 0-8.20210315gitcce47b6 - Update to the latest version - Drop patch merged upstream * Wed Jan 27 2021 Fedora Release Engineering - 0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Aug 01 2020 Fedora Release Engineering - 0-6 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Mar 23 2020 Damian Wrobel - 0-4.20191213git6a04c45 - Split the LICENSE from the README.md - Remove -v from forgemeta * Tue Mar 03 2020 Damian Wrobel - 0-3.20191213git6a04c45 - Use %%set_build_flags * Mon Mar 02 2020 Damian Wrobel - 0-2.20191213git6a04c45 - Add upstream reference to patch. * Fri Feb 28 2020 Damian Wrobel - 0-1.20191213git6a04c45 - Initial RPM release.