9 Commits

Author SHA256 Message Date
e345db92ff Accepting request 1238184 from hardware:sdr
- Build AVX2 enabled hwcaps library for x86_64-v3

OBS-URL: https://build.opensuse.org/request/show/1238184
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/codec2?expand=0&rev=13
2025-01-17 17:37:11 +00:00
Martin Pluskal
3e68b1db0d - Build AVX2 enabled hwcaps library for x86_64-v3
OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/codec2?expand=0&rev=32
2025-01-16 08:49:59 +00:00
d922346d06 Accepting request 1101653 from hardware:sdr
OBS-URL: https://build.opensuse.org/request/show/1101653
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/codec2?expand=0&rev=12
2023-08-02 14:48:13 +00:00
Martin Pluskal
951fe1cbf6 Accepting request 1101585 from home:AndreasStieger:branches:hardware:sdr
codec2 1.2.0, now with binaries

OBS-URL: https://build.opensuse.org/request/show/1101585
OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/codec2?expand=0&rev=30
2023-08-01 08:31:28 +00:00
15e2009384 Accepting request 1093446 from hardware:sdr
OBS-URL: https://build.opensuse.org/request/show/1093446
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/codec2?expand=0&rev=11
2023-06-17 20:20:14 +00:00
Martin Pluskal
20710148af Accepting request 1093444 from home:wkazubski:test:science
- Update to version 1.1.1
  * Minor release to support clean freedv-gui builds

OBS-URL: https://build.opensuse.org/request/show/1093444
OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/codec2?expand=0&rev=28
2023-06-16 07:47:25 +00:00
0a63ff4107 Accepting request 1088989 from hardware:sdr
- Update baselibs.conf to match change of shared library name

- Update to version 1.1.0
  * Internal maintenance.
  * Tx peak levels normalised across modes.
  * New raw data modes to support FreeDATA.

OBS-URL: https://build.opensuse.org/request/show/1088989
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/codec2?expand=0&rev=10
2023-05-26 18:15:03 +00:00
Martin Pluskal
b2196b5752 - Update baselibs.conf to match change of shared library name
OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/codec2?expand=0&rev=26
2023-05-25 08:47:36 +00:00
Martin Hauke
05b3b751fe Accepting request 1085241 from home:wkazubski:test:science
- Update to version 1.1.0
  * Internal maintenance.
  * Tx peak levels normalised across modes.
  * New raw data modes to support FreeDATA.

OBS-URL: https://build.opensuse.org/request/show/1085241
OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/codec2?expand=0&rev=25
2023-05-06 15:57:58 +00:00
7 changed files with 105 additions and 31 deletions

View File

@@ -1 +1 @@
libcodec2-1_0 libcodec2-1_2

BIN
codec2-1.0.5.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@@ -0,0 +1,48 @@
Index: codec2-1.2.0/src/CMakeLists.txt
===================================================================
--- codec2-1.2.0.orig/src/CMakeLists.txt
+++ codec2-1.2.0/src/CMakeLists.txt
@@ -385,3 +385,43 @@ install(TARGETS codec2 EXPORT codec2-con
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/codec2 COMPONENT dev
)
+
+install(TARGETS
+ c2enc
+ c2dec
+ c2sim
+ fdmdv_get_test_bits
+ fdmdv_mod
+ fdmdv_demod
+ fdmdv_put_test_bits
+ freedv_tx
+ freedv_rx
+ freedv_data_raw_tx
+ freedv_data_raw_rx
+ freedv_data_tx
+ freedv_data_rx
+ freedv_mixed_tx
+ freedv_mixed_rx
+ fsk_mod
+ fsk_demod
+ fsk_get_test_bits
+ fsk_put_test_bits
+ framer
+ deframer
+ cohpsk_mod
+ ofdm_get_test_bits
+ ofdm_put_test_bits
+ ofdm_mod
+ ofdm_demod
+ vhf_deframe_c2
+ vhf_frame_c2
+ cohpsk_demod
+ cohpsk_get_test_bits
+ cohpsk_put_test_bits
+ ch
+ tollr
+ ldpc_noise
+ ldpc_enc
+ ldpc_dec
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+)

3
codec2-1.2.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cbccae52b2c2ecc5d2757e407da567eb681241ff8dadce39d779a7219dbcf449
size 7688549

View File

@@ -1,3 +0,0 @@
# these can't be helped
addFilter("no-manual-page-for-binary .*")
addFilter("codec2-examples.noarch: .*devel-dependency codec2-devel")

View File

@@ -1,3 +1,35 @@
-------------------------------------------------------------------
Thu Jan 16 08:48:37 UTC 2025 - Martin Pluskal <mpluskal@suse.com>
- Build AVX2 enabled hwcaps library for x86_64-v3
-------------------------------------------------------------------
Mon Jul 31 21:17:06 UTC 2023 - Andreas Stieger <andreas.stieger@gmx.de>
- update to 1.2.0
* sources reorganized upstream
- package the command binaries
codec2-1.2.0-install-binaries.patch
-------------------------------------------------------------------
Thu Jun 15 21:10:13 UTC 2023 - Wojciech Kazubski <wk@ire.pw.edu.pl>
- Update to version 1.1.1
* Minor release to support clean freedv-gui builds
-------------------------------------------------------------------
Thu May 25 08:47:07 UTC 2023 - Martin Pluskal <mpluskal@suse.com>
- Update baselibs.conf to match change of shared library name
-------------------------------------------------------------------
Sat May 6 13:39:17 UTC 2023 - Wojciech Kazubski <wk@ire.pw.edu.pl>
- Update to version 1.1.0
* Internal maintenance.
* Tx peak levels normalised across modes.
* New raw data modes to support FreeDATA.
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jul 17 07:02:37 UTC 2022 - Wojciech Kazubski <wk@ire.pw.edu.pl> Sun Jul 17 07:02:37 UTC 2022 - Wojciech Kazubski <wk@ire.pw.edu.pl>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package codec2 # spec file for package codec2
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# 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,25 +16,21 @@
# #
%define libname lib%{name}-1_0 %define libname lib%{name}-1_2
Name: codec2 Name: codec2
Version: 1.0.5 Version: 1.2.0
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/plot_fsk_demod_stats.py is GPL-3.0-or-later, unused
# used build, only used in examples subpackage.
License: LGPL-2.1-only License: LGPL-2.1-only
Group: Productivity/Hamradio/Other
URL: https://rowetel.com/codec2.html URL: https://rowetel.com/codec2.html
Source: https://github.com/drowe67/codec2/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source: https://github.com/drowe67/codec2/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: %{name}-rpmlintrc
Source2: baselibs.conf Source2: baselibs.conf
BuildRequires: cmake Patch0: codec2-1.2.0-install-binaries.patch
BuildRequires: gcc-c++ BuildRequires: c++_compiler
BuildRequires: cmake >= 3.13
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: pkgconfig(samplerate) %{?suse_build_hwcaps_libs}
BuildRequires: pkgconfig(speex)
BuildRequires: pkgconfig(speexdsp)
%description %description
Codec 2 is a speech codec designed for communications quality speech Codec 2 is a speech codec designed for communications quality speech
@@ -42,8 +38,6 @@ 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-only
Group: System/Libraries
%description -n %{libname} %description -n %{libname}
Codec 2 is a speech codec designed for communications quality speech Codec 2 is a speech codec designed for communications quality speech
@@ -51,8 +45,6 @@ between 700 and 3200 bit/s.
%package devel %package devel
Summary: Development library for codec2 Summary: Development library for codec2
License: GPL-2.0-only AND LGPL-2.1-only
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version} Requires: %{libname} = %{version}
%description devel %description devel
@@ -61,28 +53,31 @@ 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-only AND LGPL-2.1-only
Group: Productivity/Hamradio/Other Group: Productivity/Hamradio/Other
Requires: %{name}-devel = %{version}
BuildArch: noarch BuildArch: noarch
%description examples %description examples
Example code for Codec 2, including test voices and matlab/octave files. Example code for Codec 2, including test voices and matlab/octave files.
%prep %prep
%autosetup %autosetup -p1
rm -rf octave/
%build %build
%cmake \ %cmake \
-DINSTALL_EXAMPLES=TRUE \
-DUNITTEST=FALSE -DUNITTEST=FALSE
%cmake_build %cmake_build
%install %install
%cmake_install %cmake_install
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -rv raw wav %{buildroot}%{_datadir}/%{name}/
%post -n %{libname} -p /sbin/ldconfig %ldconfig_scriptlets -n %{libname}
%postun -n %{libname} -p /sbin/ldconfig
%files
%license COPYING
%{_bindir}/*
%files -n %{libname} %files -n %{libname}
%license COPYING %license COPYING
@@ -90,6 +85,7 @@ Example code for Codec 2, including test voices and matlab/octave files.
%{_libdir}/libcodec2.so.* %{_libdir}/libcodec2.so.*
%files devel %files devel
%license COPYING
%{_includedir}/* %{_includedir}/*
%dir %{_libdir}/cmake/codec2 %dir %{_libdir}/cmake/codec2
%{_libdir}/cmake/codec2/codec2-config-relwithdebinfo.cmake %{_libdir}/cmake/codec2/codec2-config-relwithdebinfo.cmake
@@ -98,6 +94,7 @@ Example code for Codec 2, including test voices and matlab/octave files.
%{_libdir}/pkgconfig/%{name}.pc %{_libdir}/pkgconfig/%{name}.pc
%files examples %files examples
%{_datadir}/%{name}/ %license COPYING
%{_datadir}/%{name}
%changelog %changelog