1a77b0481f
- Added a patch moved-freedv_callback_rx_sym-into-internal-header.patch to fix building gnuradio (patch taken from upstream) - Update to version 1.0.1: * Release to support freedv-gui 1.6.1 - Update baselib.conf - Update to version 1.0.0: * No upstream changelog available * Added new mode 700E - Test binaries not installed now, so package codec2 dropped, license and doc files moved to libcodec2 library. - Patch codec2-no_return_random.patch rebased. - Update to version 0.9.2: * No upstream changelog available - Drop no longer needed patches: * codec2-licensed-stuff.patch - Apply upstream patch to fix ambiguous license situation: * codec2-licensed-stuff.patch - Update to version 0.8.1: * No upstream changelog provided - Add codec2-no_return_random.patch - Add baselibs.conf - Update to version 0.7 - Update licensing information - Update to version 0.6: * No upstream changelog available - Update description with new bit rates from homepage. - Cleanup spec file with spec-cleaner - Copyrigth information of spec file removed - Version 0.5.1 * Updated golay - Spec cleanup - Added codec2-rpmlintrc - version 0.5 - version 0.4.1 - patch to install copm_prim.h needed by freedv2 - version 0.4 - version 0.3svn1917 - mods based on Fedora package - first try OBS-URL: https://build.opensuse.org/request/show/923350 OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/codec2?expand=0&rev=21
106 lines
3.0 KiB
RPMSpec
106 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package codec2
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define libname lib%{name}-1_0
|
|
Name: codec2
|
|
Version: 1.0.1
|
|
Release: 0
|
|
Summary: Low bit rate speech codec
|
|
# octave and asterisk directories contain GPL-2.0 licensed code but its not
|
|
# used build, only used in examples subpackage.
|
|
License: LGPL-2.1-only
|
|
Group: Productivity/Hamradio/Other
|
|
URL: https://rowetel.com/codec2.html
|
|
Source: https://github.com/drowe67/codec2/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
Source1: %{name}-rpmlintrc
|
|
Source2: baselibs.conf
|
|
Patch0: codec2-no_return_random.patch
|
|
Patch1: moved-freedv_callback_rx_sym-into-internal-header.patch
|
|
BuildRequires: cmake
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(samplerate)
|
|
BuildRequires: pkgconfig(speex)
|
|
BuildRequires: pkgconfig(speexdsp)
|
|
|
|
%description
|
|
Codec 2 is a speech codec designed for communications quality speech
|
|
between 700 and 3200 bit/s.
|
|
|
|
%package -n %{libname}
|
|
Summary: Low bit rate speech codec
|
|
License: LGPL-2.1-only
|
|
Group: System/Libraries
|
|
|
|
%description -n %{libname}
|
|
Codec 2 is a speech codec designed for communications quality speech
|
|
between 700 and 3200 bit/s.
|
|
|
|
%package devel
|
|
Summary: Development library for codec2
|
|
License: GPL-2.0-only AND LGPL-2.1-only
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{libname} = %{version}
|
|
|
|
%description devel
|
|
Codec 2 is a speech codec designed for communications quality speech
|
|
between 700 and 3200 bit/s.
|
|
|
|
%package examples
|
|
Summary: Example code for Codec 2
|
|
License: GPL-2.0-only AND LGPL-2.1-only
|
|
Group: Productivity/Hamradio/Other
|
|
Requires: %{name}-devel = %{version}
|
|
BuildArch: noarch
|
|
|
|
%description examples
|
|
Example code for Codec 2, including test voices and matlab/octave files.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%cmake \
|
|
-DINSTALL_EXAMPLES=TRUE \
|
|
-DUNITTEST=TRUE
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
%files -n %{libname}
|
|
%license COPYING
|
|
%doc README*
|
|
%{_libdir}/libcodec2.so.*
|
|
|
|
%files devel
|
|
%{_includedir}/*
|
|
%dir %{_libdir}/cmake/codec2
|
|
%{_libdir}/cmake/codec2/codec2-config-relwithdebinfo.cmake
|
|
%{_libdir}/cmake/codec2/codec2-config.cmake
|
|
%{_libdir}/libcodec2.so
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%files examples
|
|
%{_datadir}/%{name}/
|
|
|
|
%changelog
|