Package init
This commit is contained in:
commit
8b5bc1f1eb
11963
libnice-0.1.14-85-g34d6044.patch
Normal file
11963
libnice-0.1.14-85-g34d6044.patch
Normal file
File diff suppressed because it is too large
Load Diff
48
libnice-0.1.14-tests-i686.patch
Normal file
48
libnice-0.1.14-tests-i686.patch
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
From 3f8364b41207d8c26d3d3be518a7d9ebf4243b92 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Kamil Dudka <kdudka@redhat.com>
|
||||||
|
Date: Fri, 9 Feb 2018 18:01:57 +0100
|
||||||
|
Subject: [PATCH] tests: make them compile on i686
|
||||||
|
|
||||||
|
---
|
||||||
|
tests/test-pseudotcp-fuzzy.c | 4 ++--
|
||||||
|
tests/test-pseudotcp.c | 2 +-
|
||||||
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tests/test-pseudotcp-fuzzy.c b/tests/test-pseudotcp-fuzzy.c
|
||||||
|
index 4a714e6..030c03f 100644
|
||||||
|
--- a/tests/test-pseudotcp-fuzzy.c
|
||||||
|
+++ b/tests/test-pseudotcp-fuzzy.c
|
||||||
|
@@ -129,7 +129,7 @@ write_to_sock (PseudoTcpSocket *sock)
|
||||||
|
total += wlen;
|
||||||
|
total_read += wlen;
|
||||||
|
if (wlen < (gint) len) {
|
||||||
|
- g_debug ("seeking %ld from %lu", wlen - len, ftell (in));
|
||||||
|
+ g_debug ("seeking %ld from %lu", (long) wlen - len, ftell (in));
|
||||||
|
fseek (in, wlen - len, SEEK_CUR);
|
||||||
|
g_assert (!feof (in));
|
||||||
|
g_debug ("Socket queue full after %d bytes written", total);
|
||||||
|
@@ -355,7 +355,7 @@ static void adjust_clock (PseudoTcpSocket *sock)
|
||||||
|
|
||||||
|
if (pseudo_tcp_socket_get_next_clock (sock, &timeout)) {
|
||||||
|
timeout -= g_get_monotonic_time () / 1000;
|
||||||
|
- g_debug ("Socket %p: Adjusting clock to %ld ms", sock, timeout);
|
||||||
|
+ g_debug ("Socket %p: Adjusting clock to %ld ms", sock, (long) timeout);
|
||||||
|
if (sock == left) {
|
||||||
|
if (left_clock != 0)
|
||||||
|
g_source_remove (left_clock);
|
||||||
|
diff --git a/tests/test-pseudotcp.c b/tests/test-pseudotcp.c
|
||||||
|
index 1a8391a..584a0d0 100644
|
||||||
|
--- a/tests/test-pseudotcp.c
|
||||||
|
+++ b/tests/test-pseudotcp.c
|
||||||
|
@@ -81,7 +81,7 @@ static void write_to_sock (PseudoTcpSocket *sock)
|
||||||
|
total += wlen;
|
||||||
|
total_read += wlen;
|
||||||
|
if (wlen < (gint) len) {
|
||||||
|
- g_debug ("seeking %ld from %lu", wlen - len, ftell (in));
|
||||||
|
+ g_debug ("seeking %ld from %lu", (long) wlen - len, ftell (in));
|
||||||
|
fseek (in, wlen - len, SEEK_CUR);
|
||||||
|
g_assert (!feof (in));
|
||||||
|
g_debug ("Socket queue full after %d bytes written", total);
|
||||||
|
--
|
||||||
|
2.13.6
|
||||||
|
|
||||||
36
libnice-0.1.14-tests-koji.patch
Normal file
36
libnice-0.1.14-tests-koji.patch
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
From 527c30ba453753e75d3d31be29a277ea6adc17c0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Kamil Dudka <kdudka@redhat.com>
|
||||||
|
Date: Fri, 9 Feb 2018 19:10:20 +0100
|
||||||
|
Subject: [PATCH] tests: make the test-suite more verbose
|
||||||
|
|
||||||
|
... and skip test-gstreamer if user's home is not /builddir (a heuristic
|
||||||
|
to detect mock) because multicast traffic is blocked on Koji buildhosts.
|
||||||
|
---
|
||||||
|
configure.ac | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index 16988ad..b7b74fa 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -12,7 +12,7 @@ AC_CANONICAL_TARGET
|
||||||
|
|
||||||
|
AC_CONFIG_SRCDIR([agent/agent.c])
|
||||||
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
-AM_INIT_AUTOMAKE([1.12 -Wall -Wno-portability subdir-objects])
|
||||||
|
+AM_INIT_AUTOMAKE([1.12 -Wall -Wno-portability subdir-objects serial-tests])
|
||||||
|
|
||||||
|
AC_CONFIG_FILES([
|
||||||
|
Makefile
|
||||||
|
@@ -263,7 +263,7 @@ AC_SUBST(gstplugindir)
|
||||||
|
AC_SUBST(gstplugin010dir)
|
||||||
|
|
||||||
|
AM_CONDITIONAL(WITH_GSTREAMER, test "$with_gstreamer" = yes)
|
||||||
|
-AM_CONDITIONAL(HAVE_GST_CHECK, test "$have_gst_check" = yes)
|
||||||
|
+AM_CONDITIONAL(HAVE_GST_CHECK, test "$have_gst_check" = yes -a "$HOME" != /builddir)
|
||||||
|
AM_CONDITIONAL(WITH_GSTREAMER010, test "$with_gstreamer010" = yes)
|
||||||
|
|
||||||
|
GUPNP_IGD_REQUIRED=0.2.4
|
||||||
|
--
|
||||||
|
2.13.6
|
||||||
|
|
||||||
32
libnice-0.1.14-turn-verify.patch
Normal file
32
libnice-0.1.14-turn-verify.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
From e4d92bf96d0bb64df35790e5b49c58bfa6e9fbcc Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jakub Adam <jakub.adam@ktknet.cz>
|
||||||
|
Date: Thu, 20 Apr 2017 06:47:00 +0200
|
||||||
|
Subject: [PATCH] component: accept TURN in
|
||||||
|
nice_component_verify_remote_candidate()
|
||||||
|
|
||||||
|
When TURN is in operation, agent_recv_message_unlocked() may receive from
|
||||||
|
NiceSocket with type = NICE_SOCKET_TYPE_UDP_TURN. Such messages were always
|
||||||
|
dropped due to failed nice_component_verify_remote_candidate().
|
||||||
|
|
||||||
|
Bug: https://phabricator.freedesktop.org/D1727
|
||||||
|
---
|
||||||
|
agent/component.c | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/agent/component.c b/agent/component.c
|
||||||
|
index 6eee90e..3e8a7a6 100644
|
||||||
|
--- a/agent/component.c
|
||||||
|
+++ b/agent/component.c
|
||||||
|
@@ -1510,7 +1510,8 @@ nice_component_verify_remote_candidate (NiceComponent *component,
|
||||||
|
(cand->transport == NICE_CANDIDATE_TRANSPORT_TCP_ACTIVE ||
|
||||||
|
cand->transport == NICE_CANDIDATE_TRANSPORT_TCP_PASSIVE ||
|
||||||
|
cand->transport == NICE_CANDIDATE_TRANSPORT_TCP_SO)) ||
|
||||||
|
- cand->transport == NICE_CANDIDATE_TRANSPORT_UDP) &&
|
||||||
|
+ cand->transport == NICE_CANDIDATE_TRANSPORT_UDP ||
|
||||||
|
+ nicesock->type == NICE_SOCKET_TYPE_UDP_TURN) &&
|
||||||
|
nice_address_equal (address, &cand->addr)) {
|
||||||
|
/* fast return if it's already the first */
|
||||||
|
if (item == component->valid_candidates)
|
||||||
|
--
|
||||||
|
2.14.3
|
||||||
|
|
||||||
BIN
libnice-0.1.14.tar.gz
Normal file
BIN
libnice-0.1.14.tar.gz
Normal file
Binary file not shown.
81
libnice.spec
Normal file
81
libnice.spec
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
Name: libnice
|
||||||
|
Version: 0.1.14
|
||||||
|
Release: 9
|
||||||
|
Summary: An implementation of ICE standard
|
||||||
|
License: LGPLv2 and MPLv1.1
|
||||||
|
URL: https://nice.freedesktop.org/wiki/
|
||||||
|
Source0: https://nice.freedesktop.org/releases/%{name}-%{version}.tar.gz
|
||||||
|
Patch0001: libnice-0.1.14-85-g34d6044.patch
|
||||||
|
Patch0002: libnice-0.1.14-tests-i686.patch
|
||||||
|
Patch0003: libnice-0.1.14-tests-koji.patch
|
||||||
|
Patch0004: libnice-0.1.14-turn-verify.patch
|
||||||
|
|
||||||
|
BuildRequires: autoconf automake glib2-devel gnutls-devel >= 2.12.0
|
||||||
|
BuildRequires: gobject-introspection-devel gstreamer1-devel >= 0.11.91
|
||||||
|
BuildRequires: gstreamer1-plugins-base-devel >= 0.11.91 gupnp-igd-devel >= 0.1.2
|
||||||
|
|
||||||
|
%description
|
||||||
|
Libnice is an implementation of the IETF's Interactive Connectivity
|
||||||
|
Establishment (ICE) standard (RFC 5245). It provides a GLib-based
|
||||||
|
library, libnice, as well as GStreamer elements.
|
||||||
|
ICE is useful for applications that want to establish peer-to-peer UDP
|
||||||
|
data streams. It automates the process of traversing NATs and provides
|
||||||
|
security against some attacks. It also allows applications to create
|
||||||
|
reliable streams using a TCP over UDP layer.
|
||||||
|
|
||||||
|
%package gstreamer1
|
||||||
|
Summary: GStreamer plugin for libnice
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description gstreamer1
|
||||||
|
This package provides a gstreamer 1.0 plugin for libnice.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for libnice
|
||||||
|
Requires: %{name} = %{version}-%{release} glib2-devel pkgconfig
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package provides Libraries and header files for libnice.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
chmod 0755 scripts/valgrind-test-driver
|
||||||
|
sed -e 's/test-new-dribble/#&/' -e 's/test-send-recv/#&/' -i tests/Makefile.am
|
||||||
|
autoreconf -fiv
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --enable-compile-warnings=yes --disable-static --without-gstreamer-0.10
|
||||||
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||||
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||||
|
%make_build V=1
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
%delete_la
|
||||||
|
|
||||||
|
%check
|
||||||
|
%ifarch x86_64 %{ix86}
|
||||||
|
export LD_LIBRARY_PATH="$PWD/nice/.libs"
|
||||||
|
make check
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc NEWS README
|
||||||
|
%license COPYING COPYING.LGPL COPYING.MPL
|
||||||
|
%{_bindir}/{stunbdc,stund}
|
||||||
|
%{_libdir}/{*.so.*,girepository-1.0/Nice-0.1.typelib}
|
||||||
|
|
||||||
|
%files gstreamer1
|
||||||
|
%{_libdir}/gstreamer-1.0/libgstnice.so
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_includedir}/*
|
||||||
|
%{_libdir}/{*.so,pkgconfig/nice.pc}
|
||||||
|
%{_datadir}/{gtk-doc/html/libnice/,gir-1.0/Nice-0.1.gir}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Oct 25 2019 yanzhihua <yanzhihua4@huawei.com> - 0.1.14-9
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user