[packages/webrtc-libilbc] - updated to 3.0.4 (new soname)

qboosh qboosh at pld-linux.org
Sun Jan 17 06:36:25 CET 2021


commit f756c5ca4f0e5b294d5b8684bc754f62d7a04ec9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jan 17 06:36:17 2021 +0100

    - updated to 3.0.4 (new soname)

 webrtc-libilbc.spec | 49 +++++++++++++++++++++++++++++++------------------
 1 file changed, 31 insertions(+), 18 deletions(-)
---
diff --git a/webrtc-libilbc.spec b/webrtc-libilbc.spec
index 5a6736f..4433da2 100644
--- a/webrtc-libilbc.spec
+++ b/webrtc-libilbc.spec
@@ -7,16 +7,18 @@
 Summary:	iLBC speech codec from the WebRTC project
 Summary(pl.UTF-8):	Kodek mowy iLBC z projektu WebRTC
 Name:		webrtc-libilbc
-Version:	2.0.2
+Version:	3.0.4
 Release:	1
 License:	BSD
 Group:		Libraries
-Source0:	https://github.com/TimothyGu/libilbc/archive/v%{version}/libilbc-%{version}.tar.gz
-# Source0-md5:	026e157955685cc7165d7896a12fc5d3
+#Source0Download: https://github.com/TimothyGu/libilbc/releases
+Source0:	https://github.com/TimothyGu/libilbc/releases/download/v%{version}/libilbc-%{version}.tar.zst
+# Source0-md5:	03118184eaed35b5d3ba38341f4bd448
 URL:		https://github.com/TimothyGu/libilbc
-BuildRequires:	autoconf >= 2.50
-BuildRequires:	automake
+BuildRequires:	cmake >= 3.5
 BuildRequires:	libtool >= 2:2
+BuildRequires:	tar >= 1:1.31
+BuildRequires:	zstd
 Obsoletes:	libilbc
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -59,26 +61,36 @@ Statyczna biblioteka iLBC.
 %setup -q -n libilbc-%{version}
 
 %build
-%{__libtoolize}
-%{__aclocal} -I m4
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-%configure \
-	--disable-silent-rules
+%if %{with static_libs}
+install -d build-static
+cd build-static
+%cmake .. \
+	-DBUILD_SHARED_LIBS=OFF
+
+%{__make}
+cd ..
+%endif
+
+install -d build
+cd build
+%cmake ..
 
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
+%if %{with static_libs}
+%{__make} -C build-static install \
+	DESTDIR=$RPM_BUILD_ROOT
+%endif
+
+%{__make} -C build install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-# obsoleted by pkg-config
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/libilbc.la
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/ilbc_test
 # packaged as %doc
-%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libilbc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/*.md
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -88,14 +100,15 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc COPYING NEWS.md README.md
+%doc AUTHORS COPYING NEWS.md PATENTS README.md
 %attr(755,root,root) %{_libdir}/libilbc.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libilbc.so.2
+%attr(755,root,root) %ghost %{_libdir}/libilbc.so.3
 
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libilbc.so
 %{_includedir}/ilbc.h
+%{_includedir}/ilbc_export.h
 %{_pkgconfigdir}/libilbc.pc
 
 %if %{with static_libs}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/webrtc-libilbc.git/commitdiff/f756c5ca4f0e5b294d5b8684bc754f62d7a04ec9



More information about the pld-cvs-commit mailing list