diff --git a/.gitignore b/.gitignore index ca7d3a3..cfc5452 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ ortp-0.16.1.tar.gz /ortp-0.20.0.tar.gz /ortp-0.22.0.tar.gz /ortp-0.23.0.tar.gz +/ortp-0.24.2.tar.gz diff --git a/ortp-logging-warning.patch b/ortp-logging-warning.patch new file mode 100644 index 0000000..ca9e113 --- /dev/null +++ b/ortp-logging-warning.patch @@ -0,0 +1,13 @@ +diff -up ./src/logging.c.warn ./src/logging.c +--- ./src/logging.c.warn 2019-05-31 13:49:46.444879660 -0400 ++++ ./src/logging.c 2019-05-31 13:51:39.860590708 -0400 +@@ -139,8 +139,7 @@ char * ortp_strcat_vprintf(char* dst, co + retlen = strlen(ret); + + if ((dst = ortp_realloc(dst, dstlen+retlen+1)) != NULL){ +- strncat(dst,ret,retlen); +- dst[dstlen+retlen] = '\0'; ++ strcat(dst,ret); + ortp_free(ret); + return dst; + } else { diff --git a/ortp.spec b/ortp.spec index 4702e53..a2ec425 100644 --- a/ortp.spec +++ b/ortp.spec @@ -1,13 +1,14 @@ Name: ortp -Version: 0.23.0 -Release: 9%{?dist} +Version: 0.24.2 +Release: 1%{?dist} Summary: A C library implementing the RTP protocol (RFC3550) Epoch: 1 License: LGPLv2+ and VSL URL: http://www.linphone.org/eng/documentation/dev/ortp.html -Source: http://download.savannah.gnu.org/releases/linphone/ortp/sources/%{name}-%{version}.tar.gz +Source: https://gitlab.linphone.org/BC/public/ortp/-/archive/0.24.2/ortp-0.24.2.tar.gz Patch1: ortp-libsrtp-1.5-fix.patch +Patch2: ortp-logging-warning.patch BuildRequires: doxygen BuildRequires: graphviz @@ -33,7 +34,8 @@ Libraries and headers required to develop software with ortp. %prep %setup0 -q -%patch1 -p1 -b .srtp-15 +#patch1 -p1 -b .srtp-15 +%patch2 -p1 -b .warn autoreconf -i -f @@ -51,16 +53,17 @@ make %{?_smp_mflags} make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" find $RPM_BUILD_ROOT -name \*.la -exec rm {} \; rm doc/html/html.tar -rm -r %{buildroot}%{_datadir}/doc/%{name}-%{version}/html +rm -r %{buildroot}%{_datadir}/doc/%{name}-%{version} %ldconfig_scriptlets %files %doc AUTHORS ChangeLog TODO NEWS README +%license COPYING %{_libdir}/libortp.so.9* %files devel -%doc doc/html +%doc doc/html %{_includedir}/%{name} %{_libdir}/libortp.so %{_libdir}/pkgconfig/ortp.pc diff --git a/sources b/sources index fce9339..fe4727e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -fb833cc7a66ec1a0c1b75016130e7e6d ortp-0.23.0.tar.gz +SHA512 (ortp-0.24.2.tar.gz) = ea6be680105f988446ca14fab3be34dd4e0a16c1f81d25f5c66b1b6ef397736cc0f717d42d5e6f4247b85d07181d722d71a0a38a33fcdb6c1a74a01bdf2fb812