LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File modesdeco2.spec of Package modesdeco2 (Project home:mnhauke:sdr)

#
# spec file for package modesdeco2
#
# 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.

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

Name:           modesdeco2
Version:        20170127
Release:        0
Summary:        SDR decoder for ADS-B
License:        SUSE-NonFree
Group:          Productivity/Hamradio/Other
URL:            http://xdeco.org/
Source0:        %{name}_x86_64_%{version}.tgz
Source1:        %{name}_i386_%{version}.tgz
Source2:        %{name}_rpi2-3_%{version}.tgz
Requires:       airspy
Requires:       libairspyhf0
Requires:       rtl-sdr
ExclusiveArch:  %{ix86} x86_64 %{arm}

%description
Software-defined radio (SDR) receiver/decoder for Automatic Dependent
Surveillance-Broadcast Mode (ADS-B) and Secondary Surveillance Systems
Radar (Mode A/C, Mode S) signals.

* Complete setting up and getting data flow from receivers as DVB-T RTL2832
  (in SDR mode) or Airspy.
* Decoding received data and rebroadcast DF messages in some format to a
  various output data streams with access from multiple network clients
  simultaneously.
* Display statistics of received data on own built-in WEB server and
  read/write access to database files.

%prep
%ifarch x86_64
%setup -q -T -a0 -c %{name}-%{version}
%endif
%ifarch i586
%setup -q -T -a1 -c %{name}-%{version}
%endif
%ifarch %{arm}
%setup -q -T -a2 -c %{name}-%{version}
%endif
# fix wrong end of file encoding
sed -i 's/\r$//' LICENSE.MIT modesdeco2.txt

%build

%install
# workaround rpath issue
export NO_BRP_CHECK_RPATH=true
install -d %{buildroot}/%{_bindir}
install -m0755 modesdeco2 %{buildroot}/%{_bindir}

%files
%doc LICENSE.MIT modesdeco2.txt
%{_bindir}/modesdeco2

%changelog