- Update to version 0.8.1:
* No upstream changelog provided - Add codec2-no_return_random.patch - Add baselibs.conf OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/codec2?expand=0&rev=12
This commit is contained in:
parent
51e4deb475
commit
74a8055461
1
baselibs.conf
Normal file
1
baselibs.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
libcodec2-0_8
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:0695bb93cd985dd39f02f0db35ebc28a98b9b88747318f90774aba5f374eadb2
|
|
||||||
size 8386048
|
|
3
codec2-0.8.1.tar.xz
Normal file
3
codec2-0.8.1.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a07cdaacf59c3f7dbb1c63b769d443af486c434b3bd031fb4edd568ce3e613d6
|
||||||
|
size 8868212
|
12
codec2-no_return_random.patch
Normal file
12
codec2-no_return_random.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
Index: codec2-0.8.1/src/gp_interleaver.c
|
||||||
|
===================================================================
|
||||||
|
--- codec2-0.8.1.orig/src/gp_interleaver.c
|
||||||
|
+++ codec2-0.8.1/src/gp_interleaver.c
|
||||||
|
@@ -74,6 +74,7 @@ int choose_interleaver_b(int Nbits)
|
||||||
|
/* if we get it means a Nbits we dont have in our table so choke */
|
||||||
|
|
||||||
|
assert(0);
|
||||||
|
+ return(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 17 11:08:45 UTC 2018 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Update to version 0.8.1:
|
||||||
|
* No upstream changelog provided
|
||||||
|
- Add codec2-no_return_random.patch
|
||||||
|
- Add baselibs.conf
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jul 31 23:55:03 UTC 2017 - wk@ire.pw.edu.pl
|
Mon Jul 31 23:55:03 UTC 2017 - wk@ire.pw.edu.pl
|
||||||
|
|
||||||
|
36
codec2.spec
36
codec2.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package codec2
|
# spec file for package codec2
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,19 +16,20 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define libname lib%{name}-0_7
|
%define libname lib%{name}-0_8
|
||||||
Name: codec2
|
Name: codec2
|
||||||
Version: 0.7
|
Version: 0.8.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Low bit rate speech codec
|
Summary: Low bit rate speech codec
|
||||||
# octave and asterisk directories contain GPL-2.0 licensed code but its not
|
# octave and asterisk directories contain GPL-2.0 licensed code but its not
|
||||||
# used build, only used in examples subpackage. src/horus_l2.* is not free
|
# used build, only used in examples subpackage.
|
||||||
# for non-commercial usage but is not used either.
|
License: LGPL-2.1-only
|
||||||
License: LGPL-2.1
|
|
||||||
Group: Productivity/Hamradio/Other
|
Group: Productivity/Hamradio/Other
|
||||||
Url: http://rowetel.com/codec2.html
|
URL: http://rowetel.com/codec2.html
|
||||||
Source: http://files.freedv.org/codec2/codec2-%{version}.tar.xz
|
Source: https://hobbes1069.fedorapeople.org/freetel/codec2/codec2-%{version}.tar.xz
|
||||||
Source1: %{name}-rpmlintrc
|
Source1: %{name}-rpmlintrc
|
||||||
|
Source2: baselibs.conf
|
||||||
|
Patch0: codec2-no_return_random.patch
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
@ -42,7 +43,7 @@ between 700 and 3200 bit/s.
|
|||||||
|
|
||||||
%package -n %{libname}
|
%package -n %{libname}
|
||||||
Summary: Low bit rate speech codec
|
Summary: Low bit rate speech codec
|
||||||
License: LGPL-2.1
|
License: LGPL-2.1-only
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n %{libname}
|
%description -n %{libname}
|
||||||
@ -51,7 +52,7 @@ between 700 and 3200 bit/s.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development library for codec2
|
Summary: Development library for codec2
|
||||||
License: GPL-2.0 AND LGPL-2.1
|
License: GPL-2.0-only AND LGPL-2.1-only
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{libname} = %{version}
|
Requires: %{libname} = %{version}
|
||||||
|
|
||||||
@ -61,7 +62,7 @@ between 700 and 3200 bit/s.
|
|||||||
|
|
||||||
%package examples
|
%package examples
|
||||||
Summary: Example code for Codec 2
|
Summary: Example code for Codec 2
|
||||||
License: GPL-2.0 AND LGPL-2.1
|
License: GPL-2.0-only AND LGPL-2.1-only
|
||||||
Group: Productivity/Hamradio/Other
|
Group: Productivity/Hamradio/Other
|
||||||
Requires: %{name}-devel = %{version}
|
Requires: %{name}-devel = %{version}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -71,16 +72,14 @@ Example code for Codec 2, including test voices and matlab/octave files.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
# horus_l2.* is not needed for building and has to be removed due to
|
%patch0 -p1
|
||||||
# licensing reasons
|
|
||||||
rm -rf src/horus_l2.*
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake \
|
%cmake \
|
||||||
-DINSTALL_EXAMPLES=TRUE \
|
-DINSTALL_EXAMPLES=TRUE \
|
||||||
-DUNITTEST=TRUE \
|
-DUNITTEST=TRUE \
|
||||||
-Wno-dev
|
-Wno-dev
|
||||||
make %{?_smp_mflags}
|
%make_jobs
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%cmake_install
|
%cmake_install
|
||||||
@ -105,8 +104,8 @@ EOF
|
|||||||
%postun -n %{libname} -p /sbin/ldconfig
|
%postun -n %{libname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%license COPYING
|
||||||
%doc COPYING README README_fdmdv.txt
|
%doc README README_fdmdv.txt
|
||||||
%{_bindir}/c2dec
|
%{_bindir}/c2dec
|
||||||
%{_bindir}/c2demo
|
%{_bindir}/c2demo
|
||||||
%{_bindir}/c2enc
|
%{_bindir}/c2enc
|
||||||
@ -125,17 +124,14 @@ EOF
|
|||||||
%{_bindir}/insert_errors
|
%{_bindir}/insert_errors
|
||||||
|
|
||||||
%files -n %{libname}
|
%files -n %{libname}
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/libcodec2.so.*
|
%{_libdir}/libcodec2.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_libdir}/libcodec2.so
|
%{_libdir}/libcodec2.so
|
||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
|
||||||
%files examples
|
%files examples
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_datadir}/%{name}/
|
%{_datadir}/%{name}/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user