File mingw64-redsea.spec of Package mingw64-redsea

#
# spec file for package mingw64-redsea
#
# Copyright (c) 2018, 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 redsea
Name:           mingw64-%{realname}
Version:        0.20
Release:        0
Summary:        A lightweight RDS decoder
License:        MIT
Group:          Productivity/Hamradio/Other
URL:            https://github.com/windytan/redsea
Source:         https://github.com/windytan/%{realname}/archive/v%{version}.tar.gz#/%{realname}-%{version}.tar.gz
Patch0:         redsea-mingw-build-fix.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-libsndfile-devel
BuildRequires:  mingw64-win_iconv-devel
BuildRequires:  mingw64-liquid-dsp-devel
BuildRequires:  mingw64-fftw3-devel
BuildArch:      noarch
%{_mingw64_package_header_debug}
%{_mingw64_debug_package}


%description
redsea is a lightweight command-line RDS decoder for Linux/macOS.
It can be used with any RTL-SDR USB radio stick with the rtl_fm tool.
It can also decode raw ASCII bitstream, the hex format used by RDS Spy,
and audio files containing multiplex signals (MPX).

RDS groups are printed to the terminal as line-delimited JSON objects
or, optionally, undecoded hex blocks (-x).

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

%build
autoreconf -fiv
%{_mingw64_configure} \
  --without-macports
%{_mingw64_make} %{?_smp_mflags}

%install
%{_mingw64_makeinstall}
rm -rf %{buildroot}/%{_mingw64_datadir}

%files
%doc README.md
%{_mingw64_bindir}/redsea.exe

%changelog
openSUSE Build Service is sponsored by