File stereodemux.spec of Package stereodemux

#
# spec file for package stereodemux
#
# 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:           stereodemux
Version:        0.0.0+git.20170123
Release:        0
Summary:        FM stereo demuxer
License:        MIT
Group:          Productivity/Hamradio/Other
URL:            https://github.com/windytan/stereodemux
Source:         %{name}-%{version}.tar.xz
Patch0:         stereodemux-obey-cflags.patch
BuildRequires:  gcc-c++
BuildRequires:  libliquid-devel

%description
Decode the stereo separation from an FM multiplex carrier.
Input: 16-bit FM demodulated PCM signal sampled at 171 kHz
       (or another rate specified with -r)
Output: 16-bit stereo PCM at above rate

%prep
%autosetup -p1

%build
export CFLAGS='%{optflags}'
%make_build

%install
install -Dm 0755 demux %{buildroot}/%{_bindir}/stereodemux

%files
%doc README.md
%{_bindir}/stereodemux

%changelog
openSUSE Build Service is sponsored by