]> git.pld-linux.org Git - packages/webrtc-libilbc.git/commitdiff
- updated to 3.0.4 (new soname) master auto/th/webrtc-libilbc-3.0.4-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 17 Jan 2021 05:36:17 +0000 (06:36 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 17 Jan 2021 05:36:17 +0000 (06:36 +0100)
webrtc-libilbc.spec

index 5a6736f9d670530fd6d0ca0296fae39bd42116e5..4433da295b529fe0a392e5f5412e0e7b97628d61 100644 (file)
@@ -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}
This page took 0.066308 seconds and 4 git commands to generate.