File mingw64-kalibrate-rtl.spec of Package mingw64-kalibrate-rtl
#
# spec file for package mingw64-kalibrate-rtl
#
# Copyright (c) 2016, 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 kalibrate-rtl
%define version_unconverted svn20130114
Name: mingw64-%{realname}
Version: svn20130114
Release: 0
Summary: RTL-SDR Calibration tool
License: BSD-2-Clause
Group: Productivity/Hamradio/Other
Url: http://thre.at/kalibrate
Source: %{realname}-%{version}.tar.bz2
Patch0: kalibrate-rtl-fix-MinGW-build.diff
BuildRequires: automake
BuildRequires: libtool
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-fftw3-devel
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-rtl-sdr-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{_mingw64_package_header_debug}
%{_mingw64_debug_package}
%description
Kalibrate, or kal, can scan for GSM base stations in a given frequency band
and can use those GSM base stations to calculate the local oscillator frequency
offset. Modified version for use with rtl-sdr devices.
%prep
%setup -q -n %{realname}-%{version}
%patch0 -p1
%build
./bootstrap
%{_mingw64_configure}
%{_mingw64_make} %{?_smp_mflags}
%install
install -Dpm 0755 src/kal.exe %{buildroot}/%{_mingw64_bindir}/kal.exe
%files
%defattr(-,root,root)
%doc COPYING README AUTHORS
%{_mingw64_bindir}/kal.exe
%changelog