2017-04-15 09:42:11 +02:00
|
|
|
#
|
|
|
|
# spec file for package rtl_433
|
|
|
|
#
|
2019-08-30 02:42:17 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-04-15 09:42:11 +02:00
|
|
|
# Copyright (c) 2017, 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.
|
|
|
|
|
2019-08-30 02:42:17 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-04-15 09:42:11 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-08-30 02:42:17 +02:00
|
|
|
%define version_unconverted 19.08+git.20190829
|
2017-04-15 09:42:11 +02:00
|
|
|
Name: rtl_433
|
2019-08-30 02:42:17 +02:00
|
|
|
Version: 19.08+git.20190829
|
2017-04-15 09:42:11 +02:00
|
|
|
Release: 0
|
2019-09-10 14:50:21 +02:00
|
|
|
Summary: Application turning the RTL2832 dongle into a 433.92MHz generic data receiver
|
2018-06-04 08:48:15 +02:00
|
|
|
License: GPL-2.0-only
|
2017-04-15 09:42:11 +02:00
|
|
|
Group: Productivity/Hamradio/Other
|
2018-06-04 08:48:15 +02:00
|
|
|
URL: https://github.com/merbanan/rtl_433.git
|
2017-04-15 09:42:11 +02:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: cmake
|
2018-06-04 08:48:15 +02:00
|
|
|
BuildRequires: pkgconfig
|
2017-04-15 09:42:11 +02:00
|
|
|
BuildRequires: pkgconfig(librtlsdr)
|
2019-08-30 02:42:17 +02:00
|
|
|
BuildRequires: pkgconfig(libusb)
|
2017-04-15 09:42:11 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
An application using librtlsdr to decode the temperature from
|
2018-06-04 08:48:15 +02:00
|
|
|
wireless temperature sensors (433.92MHz)
|
2017-04-15 09:42:11 +02:00
|
|
|
|
2018-02-26 22:16:40 +01:00
|
|
|
%package devel
|
2019-09-10 14:50:21 +02:00
|
|
|
Summary: Header files for the RTL2832 dongle library
|
2018-02-26 22:16:40 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Turns RTL2832 dongle into a 433.92MHz generic data receiver.
|
|
|
|
|
|
|
|
This subpackage contains header files for developing applications that want
|
|
|
|
to make use of rtl_433.
|
|
|
|
|
2017-04-15 09:42:11 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2019-08-30 02:42:17 +02:00
|
|
|
%cmake \
|
|
|
|
-DBUILD_TESTING=OFF
|
2019-08-30 02:50:53 +02:00
|
|
|
%cmake_build
|
2017-04-15 09:42:11 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
2019-08-30 02:42:17 +02:00
|
|
|
# FIXME: Should be fixed in the makefile
|
|
|
|
install -d %{buildroot}/%{_sysconfdir}/rtl_433
|
|
|
|
mv %{buildroot}%{_prefix}%{_sysconfdir}/rtl_433/ %{buildroot}/%{_sysconfdir}/
|
2017-04-15 09:42:11 +02:00
|
|
|
|
|
|
|
%files
|
2018-06-04 08:48:15 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS README.md
|
2017-04-15 09:42:11 +02:00
|
|
|
%{_bindir}/rtl_433
|
2019-08-30 02:42:17 +02:00
|
|
|
%dir %{_sysconfdir}/rtl_433
|
|
|
|
%config %{_sysconfdir}/rtl_433/*.conf
|
|
|
|
%{_mandir}/man1/rtl_433.1%{?ext_man}
|
2018-02-26 22:16:40 +01:00
|
|
|
|
|
|
|
%files devel
|
2017-04-15 09:42:11 +02:00
|
|
|
%{_includedir}/rtl_433.h
|
|
|
|
%{_includedir}/rtl_433_devices.h
|
|
|
|
|
|
|
|
%changelog
|