File mingw64-rtl_433.spec of Package mingw64-rtl_433

#
# spec file for package mingw64-rtl_433
#
# Copyright (c) 2015, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define realname rtl_433
%define version_unconverted 18.12+git.20190525
Name:           mingw64-%{realname}
Version:        18.12+git.20190525
Release:        0
Summary:        Turns RTL2832 dongle into a 433.92MHz generic data receiver
License:        GPL-2.0-only
Group:          Productivity/Hamradio/Other
URL:            https://github.com/merbanan/rtl_433.git
Source:         %{realname}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-rtl-sdr-devel
BuildArch:      noarch
%{_mingw64_package_header_debug}
%{_mingw64_debug_package}

%description
An application using librtlsdr to decode the temperature from
wireless temperature sensors (433.92MHz)

%prep
%setup -q -n %{realname}-%{version}

%build
%{_mingw64_cmake} \
    -DBUILD_TESTING=OFF
%{_mingw64_make} VERBOSE=1 %{?_smp_mflags}

%install
%{_mingw64_make} DESTDIR=%{buildroot} install

%files
%license COPYING
%doc AUTHORS README.md
%{_mingw64_bindir}/rtl_433.exe
%dir %{_mingw64_sysconfdir}
%dir %{_mingw64_sysconfdir}/rtl_433
%config %{_mingw64_sysconfdir}/rtl_433/*.conf
#
%{_mingw64_includedir}/rtl_433.h
%{_mingw64_includedir}/rtl_433_devices.h

%changelog
openSUSE Build Service is sponsored by