Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
95be19e314
!12 Update to 0.1.19
From: @wk333 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2022-10-19 09:34:23 +00:00
wk333
c3051ba0e0 Update to 0.1.19 2022-10-19 16:39:39 +08:00
openeuler-ci-bot
955917fb55
!5 修复无法执行gtkdocize
Merge pull request !5 from 吴磊磊/openEuler-22.03-LTS-Next
2022-01-10 13:06:53 +00:00
wu-leilei
fbdcd27f7d Repair failed to execute gtkdocize 2022-01-07 11:02:29 +08:00
openeuler-ci-bot
7311c23c2c !3 libnice: 对aarch64架构进行make check测试
From: @chenxi-mao
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-11-02 09:06:29 +00:00
Chenxi Mao
4bfe7465e0 libnice: Do make on aarch64 as intel did.
Current spec file only make check on X86 arch.
Based on our test, aarch64 can make check and test pass as well.
So remove arch check and do make check on all arch.

Signed-off-by: Chenxi Mao <chenxi.mao@suse.com>
2021-11-02 09:28:51 +08:00
openeuler-ci-bot
0c87c7118a !2 Add yaml file
Merge pull request !2 from lyn/master
2020-05-09 16:28:51 +08:00
lyn1001
86600f38b7 Add yaml file 2020-05-07 14:10:10 +08:00
openeuler-ci-bot
f3b88f836d !1 optimization the spec
Merge pull request !1 from orange-snn/master
2020-01-15 16:02:13 +08:00
songnannan
2384005b69 optimization the spec 2020-01-15 15:38:53 +08:00
8 changed files with 31 additions and 12098 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,48 +0,0 @@
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

View File

@ -1,36 +0,0 @@
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

View File

@ -1,32 +0,0 @@
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

Binary file not shown.

BIN
libnice-0.1.19.tar.gz Normal file

Binary file not shown.

View File

@ -1,18 +1,15 @@
Name: libnice
Version: 0.1.14
Release: 9
Version: 0.1.19
Release: 1
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
BuildRequires: gstreamer1-plugins-base-devel >= 0.11.91
BuildRequires: gtk-doc gupnp-igd-devel >= 0.1.2 graphviz meson
%description
Libnice is an implementation of the IETF's Interactive Connectivity
@ -39,25 +36,18 @@ 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
sed -e "s/^ 'test-set-port-range'/#&/" -i tests/meson.build
%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
%meson -D gtk_doc=enabled
%meson_build
%install
%make_install
%meson_install
%delete_la
%check
%ifarch x86_64 %{ix86}
export LD_LIBRARY_PATH="$PWD/nice/.libs"
make check
%endif
%meson_test
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
@ -77,5 +67,23 @@ make check
%{_datadir}/{gtk-doc/html/libnice/,gir-1.0/Nice-0.1.gir}
%changelog
* Wed Oct 19 2022 wangkai <wangkai385@h-partners.com> - 0.1.19-1
- Update to 0.1.19
* Fri Jan 07 2022 wulei <wulei80@huawei.com> - 0.1.14-12
- Repair failed to execute "gtkdocize"
* Tue Nov 1 2021 Chenxi Mao <chenxi.mao@suse.com> - 0.1.14-11
- Type:enhancement
- Id:NA
- SUG:NA
- DESC: Do check on X86 and ARM64
* Wed Jan 15 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.1.14-10
- Type:enhancement
- Id:NA
- SUG:NA
- DESC:optimization the spec
* Fri Oct 25 2019 yanzhihua <yanzhihua4@huawei.com> - 0.1.14-9
- Package init

4
libnice.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: libnice/libnice
tag_prefix: ^
seperator: .