File dsdcc.spec of Package dsdcc

#
# spec file for package dsdcc
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017-2021, 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 sover 1
Name:           dsdcc
Version:        1.9.3
Release:        0
Summary:        Digital Speech Decoder (DSD) rewritten as a C++ library
License:        GPL-3.0-or-later
Group:          Productivity/Hamradio/Other
URL:            https://github.com/f4exb/dsdcc
#Git-Clone:     https://github.com/f4exb/dsdcc.git
Source:         https://github.com/f4exb/dsdcc/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig

%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 libdsdcc%{sover}
Summary:        Digital Speech Decoder (DSD) rewritten as a C++ library
Group:          System/Libraries

%description -n libdsdcc%{sover}
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 the shared library files for libdsdcc.

%package devel
Summary:        Development files for the dsdcc library
Group:          Development/Libraries/C and C++
Requires:       libdsdcc%{sover} = %{version}

%description 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.

%prep
%setup -q

%build
%cmake \
  -DUSE_MBELIB=OFF \
  -Wno-dev
%make_jobs

%install
%cmake_install

%post -n libdsdcc%{sover} -p /sbin/ldconfig
%postun -n libdsdcc%{sover} -p /sbin/ldconfig

%files
%doc messagefile.md Readme.md
%{_bindir}/dsdccx*

%files -n libdsdcc%{sover}
%{_libdir}/libdsdcc.so.%{sover}*

%files devel
%{_includedir}/dsdcc
%{_libdir}/libdsdcc.so
%{_libdir}/pkgconfig/libdsdcc.pc

%changelog
openSUSE Build Service is sponsored by