2017-03-13 18:06:20 +00:00
|
|
|
#
|
|
|
|
# spec file for package codec2
|
|
|
|
#
|
2023-05-25 08:47:36 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2017-03-14 20:59:49 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-03-09 14:08:54 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-03-14 20:59:49 +00:00
|
|
|
#
|
|
|
|
|
2017-03-13 18:06:20 +00:00
|
|
|
|
2023-08-01 08:31:28 +00:00
|
|
|
%define libname lib%{name}-1_2
|
2017-03-13 18:06:20 +00:00
|
|
|
Name: codec2
|
2023-08-01 08:31:28 +00:00
|
|
|
Version: 1.2.0
|
2017-03-13 18:06:20 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Low bit rate speech codec
|
2023-08-01 08:31:28 +00:00
|
|
|
# octave/plot_fsk_demod_stats.py is GPL-3.0-or-later, unused
|
2018-07-17 11:54:28 +00:00
|
|
|
License: LGPL-2.1-only
|
2017-03-13 18:06:20 +00:00
|
|
|
Group: Productivity/Hamradio/Other
|
2020-03-09 14:08:54 +00:00
|
|
|
URL: https://rowetel.com/codec2.html
|
2023-08-01 08:31:28 +00:00
|
|
|
Source: https://github.com/drowe67/codec2/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2018-07-17 11:54:28 +00:00
|
|
|
Source2: baselibs.conf
|
2023-08-01 08:31:28 +00:00
|
|
|
Patch0: codec2-1.2.0-install-binaries.patch
|
|
|
|
BuildRequires: c++_compiler
|
|
|
|
BuildRequires: cmake >= 3.13
|
2017-03-13 18:06:20 +00:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
|
|
|
%description
|
2017-03-15 13:10:26 +00:00
|
|
|
Codec 2 is a speech codec designed for communications quality speech
|
|
|
|
between 700 and 3200 bit/s.
|
2017-03-13 18:06:20 +00:00
|
|
|
|
2017-03-14 20:59:49 +00:00
|
|
|
%package -n %{libname}
|
2017-03-13 18:06:20 +00:00
|
|
|
Summary: Low bit rate speech codec
|
2017-03-15 15:12:32 +00:00
|
|
|
Group: System/Libraries
|
2017-03-13 18:06:20 +00:00
|
|
|
|
2017-03-14 20:59:49 +00:00
|
|
|
%description -n %{libname}
|
2017-03-15 13:10:26 +00:00
|
|
|
Codec 2 is a speech codec designed for communications quality speech
|
|
|
|
between 700 and 3200 bit/s.
|
2017-03-13 18:06:20 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development library for codec2
|
|
|
|
Group: Development/Libraries/C and C++
|
2017-03-14 20:59:49 +00:00
|
|
|
Requires: %{libname} = %{version}
|
2017-03-13 18:06:20 +00:00
|
|
|
|
|
|
|
%description devel
|
2017-03-15 13:10:26 +00:00
|
|
|
Codec 2 is a speech codec designed for communications quality speech
|
|
|
|
between 700 and 3200 bit/s.
|
2017-03-13 18:06:20 +00:00
|
|
|
|
|
|
|
%package examples
|
|
|
|
Summary: Example code for Codec 2
|
2017-04-16 14:43:25 +00:00
|
|
|
Group: Productivity/Hamradio/Other
|
2017-03-13 18:06:20 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description examples
|
|
|
|
Example code for Codec 2, including test voices and matlab/octave files.
|
|
|
|
|
|
|
|
%prep
|
2023-08-01 08:31:28 +00:00
|
|
|
%autosetup -p1
|
|
|
|
rm -rf octave/
|
2017-03-13 18:06:20 +00:00
|
|
|
|
|
|
|
%build
|
2017-03-14 20:59:49 +00:00
|
|
|
%cmake \
|
2022-01-21 07:54:43 +00:00
|
|
|
-DUNITTEST=FALSE
|
2020-03-09 14:08:54 +00:00
|
|
|
%cmake_build
|
2017-03-13 18:06:20 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
2023-08-01 08:31:28 +00:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}
|
|
|
|
cp -rv raw wav %{buildroot}%{_datadir}/%{name}/
|
2017-03-13 18:06:20 +00:00
|
|
|
|
2023-05-25 08:47:36 +00:00
|
|
|
%ldconfig_scriptlets -n %{libname}
|
2017-03-13 18:06:20 +00:00
|
|
|
|
2023-08-01 08:31:28 +00:00
|
|
|
%files
|
|
|
|
%license COPYING
|
|
|
|
%{_bindir}/*
|
|
|
|
|
2021-08-17 13:48:13 +00:00
|
|
|
%files -n %{libname}
|
2018-07-17 11:54:28 +00:00
|
|
|
%license COPYING
|
2020-03-09 14:08:54 +00:00
|
|
|
%doc README*
|
2017-03-14 20:59:49 +00:00
|
|
|
%{_libdir}/libcodec2.so.*
|
2017-03-13 18:06:20 +00:00
|
|
|
|
|
|
|
%files devel
|
2023-08-01 08:31:28 +00:00
|
|
|
%license COPYING
|
2017-03-13 18:06:20 +00:00
|
|
|
%{_includedir}/*
|
2020-03-09 14:08:54 +00:00
|
|
|
%dir %{_libdir}/cmake/codec2
|
|
|
|
%{_libdir}/cmake/codec2/codec2-config-relwithdebinfo.cmake
|
|
|
|
%{_libdir}/cmake/codec2/codec2-config.cmake
|
2017-03-13 18:06:20 +00:00
|
|
|
%{_libdir}/libcodec2.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
|
|
|
%files examples
|
2023-08-01 08:31:28 +00:00
|
|
|
%license COPYING
|
|
|
|
%{_datadir}/%{name}
|
2017-03-13 18:06:20 +00:00
|
|
|
|
|
|
|
%changelog
|