2017-03-13 18:06:20 +00:00
|
|
|
#
|
|
|
|
# spec file for package codec2
|
|
|
|
#
|
2021-10-04 07:56:46 +00:00
|
|
|
# Copyright (c) 2021 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
|
|
|
|
2021-08-17 13:48:13 +00:00
|
|
|
%define libname lib%{name}-1_0
|
2017-03-13 18:06:20 +00:00
|
|
|
Name: codec2
|
2021-09-27 18:11:09 +00:00
|
|
|
Version: 1.0.1
|
2017-03-13 18:06:20 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Low bit rate speech codec
|
2017-03-15 18:40:58 +00:00
|
|
|
# octave and asterisk directories contain GPL-2.0 licensed code but its not
|
2018-07-17 11:54:28 +00:00
|
|
|
# used build, only used in examples subpackage.
|
|
|
|
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
|
|
|
|
Source: https://github.com/drowe67/codec2/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2017-03-14 20:59:49 +00:00
|
|
|
Source1: %{name}-rpmlintrc
|
2018-07-17 11:54:28 +00:00
|
|
|
Source2: baselibs.conf
|
|
|
|
Patch0: codec2-no_return_random.patch
|
2021-10-06 08:27:07 +00:00
|
|
|
Patch1: moved-freedv_callback_rx_sym-into-internal-header.patch
|
2017-03-13 18:06:20 +00:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: pkgconfig
|
2017-04-16 14:43:25 +00:00
|
|
|
BuildRequires: pkgconfig(samplerate)
|
2017-03-14 20:59:49 +00:00
|
|
|
BuildRequires: pkgconfig(speex)
|
|
|
|
BuildRequires: pkgconfig(speexdsp)
|
2017-03-13 18:06:20 +00:00
|
|
|
|
|
|
|
%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
|
2018-07-17 11:54:28 +00:00
|
|
|
License: LGPL-2.1-only
|
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
|
2018-07-17 11:54:28 +00:00
|
|
|
License: GPL-2.0-only AND LGPL-2.1-only
|
2017-03-13 18:06:20 +00:00
|
|
|
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
|
2018-07-17 11:54:28 +00:00
|
|
|
License: GPL-2.0-only AND LGPL-2.1-only
|
2017-04-16 14:43:25 +00:00
|
|
|
Group: Productivity/Hamradio/Other
|
2017-03-14 20:59:49 +00:00
|
|
|
Requires: %{name}-devel = %{version}
|
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
|
2020-03-09 14:08:54 +00:00
|
|
|
%autosetup -p1
|
2017-03-13 18:06:20 +00:00
|
|
|
|
|
|
|
%build
|
2017-03-14 20:59:49 +00:00
|
|
|
%cmake \
|
|
|
|
-DINSTALL_EXAMPLES=TRUE \
|
2021-10-04 07:56:46 +00:00
|
|
|
-DUNITTEST=TRUE
|
2020-03-09 14:08:54 +00:00
|
|
|
%cmake_build
|
2017-03-13 18:06:20 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
2017-03-14 20:59:49 +00:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2017-03-13 18:06:20 +00:00
|
|
|
|
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
|
|
|
|
%{_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
|
|
|
|
%{_datadir}/%{name}/
|
|
|
|
|
|
|
|
%changelog
|