File project.diff of Package ilbc
--- ilbc.changes.orig
+++ ilbc.changes
@@ -1,4 +1,48 @@
-------------------------------------------------------------------
+Sat Apr 19 17:50:06 UTC 2025 - Martin Hauke <mardnh@gmx.de>
+
+- Switch Upstream to https://github.com/TimothyGu/libilbc
+- Update to version 3.0.4
+ * This release contains a fix for Chromium bug 1158070. Also
+ upstreamed some local patches to the WebRTC project
+ (CLs 198241 and 198362).
+- Update to version 3.0.3
+ * Made WebRtcIlbcfix_InitDecode an exported symbol on shared
+ library builds.
+- Update to version 3.0.2
+ * Fixed installation from out-of-tree builds.
+- Update to version 3.0.1
+ * Fix packaging bugs.
+- Update to version 3.0.0
+ * https://github.com/TimothyGu/libilbc/releases/tag/v3.0.1
+- Update to version 2.0.2
+ * Distribute and install README.md and NEWS.md.
+ * Bump shared lib name generated by autotools to libilbc.so.2.0.2
+ to be consistent with the CMake toolchain.
+- Update to version 2.0.1
+ * This release is a bug fix release, containing all changes from
+ WebRTC up to to r7765, cc7755b.
+ * Fix crash in programs directly calling Init functions, without
+ first creating a context through constructors.
+ Proper SONAME versioning added, and bumped to libilbc.so.2.
+- Update to version 2.0.0
+ * Under new maintainership by me (Timothy Gu).
+ * Update to latest upstream source (r7715, 087da13).
+ + A threading implementation is now needed. Win32 and POSIX
+ Threads are supported.
+ * Autotools files are cleaned-up.
+ * CMake now uses BUILD_SHARED_LIBS to determine the type of
+ library to build.
+ * CMake installation paths on some 64-bit systems using lib64
+ are corrected.
+- Drop patches:
+ * ilbc-compilerwarnings.patch
+ * ilbc-libm.patch
+- Add patches:
+ * ilbc-cmake-cflags.patch
+ * ilbc-cmake-cpp17.patch
+
+-------------------------------------------------------------------
Thu Feb 22 13:43:36 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Use %autosetup macro. Allows to eliminate the usage of deprecated
--- ilbc.spec.orig
+++ ilbc.spec
@@ -1,7 +1,7 @@
#
# spec file for package ilbc
#
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,18 +16,22 @@
#
+%define sover 3
+%define libname libilbc%{sover}
+
Name: ilbc
Summary: Internet Low Bitrate Codec
-License: GPL-2.0-or-later
-Group: Productivity/Telephony/Utilities
-Version: 3951
+License: BSD-3-Clause
+Group: System/Libraries
+Version: 3.0.4
Release: 0
-Source: ilbc-rfc3951.tar.bz2
-URL: http://download.savannah.nongnu.org/releases/linphone/1.3.x/source/ilbc-rfc3951.tar.gz
-BuildRequires: libtool
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Patch0: %{name}-compilerwarnings.patch
-Patch1: %{name}-libm.patch
+URL: https://github.com/TimothyGu/libilbc
+Source: https://github.com/TimothyGu/libilbc/archive/refs/tags/v%{version}.tar.gz#/libilbc-%{version}.tar.gz
+Patch0: ilbc-cmake-cflags.patch
+Patch1: ilbc-cmake-cpp17.patch
+BuildRequires: abseil-cpp-devel
+BuildRequires: cmake
+BuildRequires: gcc-c++
%description
iLBC (internet Low Bitrate Codec) is a FREE speech codec suitable for
@@ -38,16 +42,13 @@ of 20 ms. The iLBC codec enables gracefu
the case of lost frames, which occurs in connection with lost or
delayed IP packets.
-
-%define libilbc_name libilbc0
-
-%package -n %{libilbc_name}
+%package -n %{libname}
Summary: Internet Low Bitrate Codec
-Group: Productivity/Telephony/Utilities
+Group: System/Libraries
Provides: ilbc = %{version}
Obsoletes: ilbc <= %{version}
-%description -n %{libilbc_name}
+%description -n %{libname}
iLBC (internet Low Bitrate Codec) is a FREE speech codec suitable for
robust voice communication over IP. The codec is designed for narrow
band speech and results in a payload bit rate of 13.33 kbit/s with an
@@ -59,40 +60,34 @@ delayed IP packets.
%package devel
Summary: Libraries and Header Files to Develop Programs with iLBC Support
Group: Development/Libraries/C and C++
-Requires: %{libilbc_name} = %{version}
+Requires: %{libname} = %{version}
%description devel
-Libraries and Header Files to Develop Programs with iLBC Support
+Libraries and Header Files to Develop Programs with iLBC Support.
%prep
-%autosetup -p0 -n ilbc-rfc3951
+%autosetup -p1 -n libilbc-%{version}
%build
-autoreconf -fi
-%configure --disable-static --with-pic
-make MYCFLAGS="$RPM_OPT_FLAGS"
+%cmake
+%cmake_build
%install
-%makeinstall
-rm -f %{buildroot}%{_libdir}/*.la
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%post -n %{libilbc_name} -p /sbin/ldconfig
+%cmake_install
+rm -Rv %{buildroot}%{_docdir}/ilbc
-%postun -n %{libilbc_name} -p /sbin/ldconfig
+%ldconfig_scriptlets -n %{libname}
-%files -n %{libilbc_name}
-%defattr(-, root, root)
-%{_libdir}/lib%{name}.so.*
+%files -n %{libname}
+%license COPYING
+%doc README.md NEWS.md
+%{_libdir}/libilbc.so.%{sover}*
%files devel
-%defattr(-, root, root)
-%{_includedir}/ilbc/iLBC_decode.h
-%{_includedir}/ilbc/iLBC_define.h
-%{_includedir}/ilbc/iLBC_encode.h
-%{_libdir}/lib%{name}.so
-%dir %{_includedir}/ilbc
+%{_bindir}/ilbc_test
+%{_includedir}/ilbc.h
+%{_includedir}/ilbc_export.h
+%{_libdir}/libilbc.so
+%{_libdir}/pkgconfig/libilbc.pc
%changelog