File mingw64-dsdcc.spec of Package mingw64-dsdcc
#
# spec file for package mingw64-dsdcc
#
# Copyright (c) 2018-2024, 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 lname libdsdcc
%define realname dsdcc
Name: mingw64-%{realname}
Version: 1.8.1
Release: 0
Summary: Digital Speech Decoder (DSD) rewritten as a C++ library
License: LGPL-2.1+
Group: Productivity/Hamradio/Other
Url: https://github.com/f4exb/dsdcc
Source: https://github.com/f4exb/dsdcc/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.xz
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-pkg-config
%{_mingw64_package_header_debug}
BuildArch: noarch
%description
DSDcc is a complete rewrite from the original DSD (Digital Speech Decoder) project.
It provides a binary executable dsdccx and a library libdsdcc.so to be used in
other programs.
It decodes DMR, dPMR, D-Star and Yaesu System Fusion (YSF) standards.
%package -n mingw64-%{lname}
Summary: Digital Speech Decoder (DSD) rewritten as a C++ library
Group: System/Libraries
%description -n mingw64-%{lname}
DSDcc is a complete rewrite from the original DSD (Digital Speech Decoder) project.
It provides a binary executable dsdccx and a library libdsdcc.so to be used in
other programs.
It decodes DMR, dPMR, D-Star and Yaesu System Fusion (YSF) standards.
%package -n mingw64-%{realname}-devel
Summary: Development files for the dsdcc library
Group: Development/Libraries/C and C++
Requires: mingw64-%{lname} = %{version}
%description -n mingw64-%{realname}-devel
DSDcc is a complete rewrite from the original DSD (Digital Speech Decoder) project.
It provides a binary executable dsdccx and a library libdsdcc.so to be used in
other programs.
It decodes DMR, dPMR, D-Star and Yaesu System Fusion (YSF) standards.
This subpackage contains libraries and header files for developing
applications that want to make use of libdsdcc.
%{_mingw64_debug_package}
%prep
%setup -q -n %{realname}-%{version}
%build
%{_mingw64_cmake} \
-DUSE_MBELIB=OFF
%{_mingw64_make} VERBOSE=1 %{?_smp_mflags}
%install
%{_mingw64_make_install}
%files -n mingw64-%{realname}
%{_mingw64_bindir}/dsdccx.exe
%files -n mingw64-%{lname}
%doc messagefile.md Readme.md
%{_mingw64_libdir}/libdsdcc.dll
%files -n mingw64-%{realname}-devel
%{_mingw64_includedir}/dsdcc
%{_mingw64_libdir}/libdsdcc.dll.a
%changelog