File mingw64-dump978.spec of Package mingw64-dump978

#
# spec file for package mingw64-dump978
#
# Copyright (c) 2019, 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 dump978
%define version_unconverted 0.0.0+git.20171204
Name:           mingw64-%{realname}
Version:        0.0.0+git.20171204
Release:        0
Summary:        Experimental demodulator/decoder for UAT on 978MHz
License:        GPL-2.0-only
Group:          Productivity/Hamradio/Other
URL:            https://github.com/mutability/dump978
Source:         %{realname}-%{version}.tar.xz
Patch0:         x.patch
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
BuildArch:      noarch
%{_mingw64_package_header_debug}
%{_mingw64_debug_package}

%description
Experimental demodulator/decoder for UAT on 978MHz

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

%build
%{_mingw64_make} %{?_smp_mflags}

%install
install -d %{buildroot}%{_mingw64_bindir}
install -pm 0755 dump978 %{buildroot}%{_mingw64_bindir}/dump978.exe
#install -pm 0755 uat2json %{buildroot}%{_mingw64_bindir}/uat2json.exe
install -pm 0755 uat2text %{buildroot}%{_mingw64_bindir}/uat2text.exe
install -pm 0755 uat2esnt %{buildroot}%{_mingw64_bindir}/uat2esnt.exe
install -pm 0755 extract_nexrad %{buildroot}%{_mingw64_bindir}/extract_nexrad.exe

%files
%license LICENSE
%doc README.md
%{_mingw64_bindir}/dump978.exe
#%{_mingw64_bindir}/uat2json.exe
%{_mingw64_bindir}/uat2text.exe
%{_mingw64_bindir}/uat2esnt.exe
%{_mingw64_bindir}/extract_nexrad.exe

%changelog
openSUSE Build Service is sponsored by