File softfm.spec of Package softfm

#
# spec file for package softfm
#
# 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:           softfm
Version:        0.0.0+git.20151122
Release:        0
Summary:        Software decoder for FM broadcast radio with RTL-SDR
License:        GPL-2.0+
Group:          Productivity/Hamradio/Other
Url:            https://github.com/jorisvr/SoftFM
#Git-Clone:     https://github.com/jorisvr/SoftFM.git
Source:         %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  git-core
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(librtlsdr)
BuildRequires:  pkgconfig(libusb-1.0)

%description
SoftFM is a software-defined radio receiver for FM broadcast radio.
It is written in C++ and uses RTL-SDR to interface with RTL2832-based
hardware.

%prep
%setup -q
sed -i 's|librtlsdr.a|librtlsdr.so|g' CMakeLists.txt

%build
%cmake
make %{?_smp_mflags}

%install
%cmake_install

%files
%defattr(-,root,root)
%doc README
%{_bindir}/softfm

%changelog
openSUSE Build Service is sponsored by