| 1 | Name: libnice |
|---|
| 2 | Version: 0.1.16 |
|---|
| 3 | Release: 1%{?_dist_release} |
|---|
| 4 | Summary: GLib ICE implementation |
|---|
| 5 | Group: System Environment/Libraries |
|---|
| 6 | Vendor: Project Vine |
|---|
| 7 | Distribution: Vine Linux |
|---|
| 8 | |
|---|
| 9 | License: LGPLv2 and MPLv1.1 |
|---|
| 10 | URL: https://libnice.freedesktop.org/ |
|---|
| 11 | Source0: https://libnice.freedesktop.org/releases/%{name}-%{version}.tar.gz |
|---|
| 12 | # make tests pass in Koji |
|---|
| 13 | Patch1: libnice-0.1.14-tests-koji.patch |
|---|
| 14 | # Selected cherry-picks from upstream |
|---|
| 15 | # - make audio connection more reliable |
|---|
| 16 | # - issues #64 & #87 |
|---|
| 17 | Patch2: libnice-0.1.16-16-gb998547.patch |
|---|
| 18 | # upstream https://gitlab.freedesktop.org/libnice/libnice/-/merge_requests/66 |
|---|
| 19 | # upstream https://gitlab.freedesktop.org/libnice/libnice/-/merge_requests/107 |
|---|
| 20 | Patch3: 0001-interfaces-ignore-only-interfaces-we-really-want-to.patch |
|---|
| 21 | Patch4: 0002-interfaces-ignore-only-interfaces-we-really-want-to.patch |
|---|
| 22 | |
|---|
| 23 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 24 | BuildRequires: glib2-devel >= 2.10 |
|---|
| 25 | BuildRequires: glib2-devel |
|---|
| 26 | BuildRequires: gnutls-devel >= 2.12.0 |
|---|
| 27 | BuildRequires: gobject-introspection-devel |
|---|
| 28 | %if 0 |
|---|
| 29 | BuildRequires: gstreamer-devel |
|---|
| 30 | BuildRequires: gstreamer-plugins-base-devel |
|---|
| 31 | %endif |
|---|
| 32 | BuildRequires: gstreamer1-devel >= 0.11.91 |
|---|
| 33 | BuildRequires: gstreamer1-plugins-base-devel >= 0.11.91 |
|---|
| 34 | BuildRequires: gupnp-igd-devel >= 0.1.2 |
|---|
| 35 | |
|---|
| 36 | %description |
|---|
| 37 | %{name} is an implementation of the IETF's draft Interactive Connectivity |
|---|
| 38 | Establishment standard (ICE). ICE is useful for applications that want to |
|---|
| 39 | establish peer-to-peer UDP data streams. It automates the process of traversing |
|---|
| 40 | NATs and provides security against some attacks. Existing standards that use |
|---|
| 41 | ICE include the Session Initiation Protocol (SIP) and Jingle, XMPP extension |
|---|
| 42 | for audio/video calls. |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | %package devel |
|---|
| 46 | Summary: Development files for %{name} |
|---|
| 47 | Group: Development/Libraries |
|---|
| 48 | Requires: %{name} = %{version}-%{release} |
|---|
| 49 | Requires: glib2-devel |
|---|
| 50 | Requires: pkgconfig |
|---|
| 51 | |
|---|
| 52 | %description devel |
|---|
| 53 | The %{name}-devel package contains libraries and header files for |
|---|
| 54 | developing applications that use %{name}. |
|---|
| 55 | |
|---|
| 56 | |
|---|
| 57 | %prep |
|---|
| 58 | %setup -q |
|---|
| 59 | %patch1 -p1 |
|---|
| 60 | %patch2 -p1 |
|---|
| 61 | %patch3 -p1 |
|---|
| 62 | %patch4 -p1 |
|---|
| 63 | chmod 0755 scripts/valgrind-test-driver |
|---|
| 64 | |
|---|
| 65 | # disable test-new-trickle, which sometimes hangs indefinitely, and |
|---|
| 66 | # test-send-recv, which fails in Koji due to insufficiently configured network |
|---|
| 67 | sed -e 's/test-new-trickle/#&/' \ |
|---|
| 68 | -e 's/test-send-recv/#&/' \ |
|---|
| 69 | -i tests/Makefile.am |
|---|
| 70 | |
|---|
| 71 | # needed for libnice-0.1.14-tests-koji.patch |
|---|
| 72 | autoreconf -fiv |
|---|
| 73 | |
|---|
| 74 | |
|---|
| 75 | %build |
|---|
| 76 | %configure \ |
|---|
| 77 | --enable-compile-warnings=yes \ |
|---|
| 78 | --disable-static \ |
|---|
| 79 | --with-ignored-network-interface-prefix=br-,docker,veth,virbr,vnet \ |
|---|
| 80 | %if 0 |
|---|
| 81 | --with-gstreamer-0.10 |
|---|
| 82 | %else |
|---|
| 83 | --without-gstreamer-0.10 |
|---|
| 84 | %endif |
|---|
| 85 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
|---|
| 86 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
|---|
| 87 | make %{?_smp_mflags} V=1 |
|---|
| 88 | |
|---|
| 89 | |
|---|
| 90 | %install |
|---|
| 91 | rm -rf $RPM_BUILD_ROOT |
|---|
| 92 | make install DESTDIR=$RPM_BUILD_ROOT |
|---|
| 93 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
|---|
| 94 | |
|---|
| 95 | |
|---|
| 96 | %check |
|---|
| 97 | # Temporarily make the upstream test-suite run on Intel arches only because we |
|---|
| 98 | # are getting random crashes in Koji on secondary arches but I have not been |
|---|
| 99 | # able to reproduce them locally so far. |
|---|
| 100 | %ifarch x86_64 %{ix86} |
|---|
| 101 | export LD_LIBRARY_PATH="$PWD/nice/.libs" |
|---|
| 102 | make check |
|---|
| 103 | %endif |
|---|
| 104 | |
|---|
| 105 | |
|---|
| 106 | %clean |
|---|
| 107 | rm -rf $RPM_BUILD_ROOT |
|---|
| 108 | |
|---|
| 109 | |
|---|
| 110 | %post -p /sbin/ldconfig |
|---|
| 111 | |
|---|
| 112 | %postun -p /sbin/ldconfig |
|---|
| 113 | |
|---|
| 114 | |
|---|
| 115 | %files |
|---|
| 116 | %defattr(-,root,root,-) |
|---|
| 117 | %license COPYING COPYING.LGPL COPYING.MPL |
|---|
| 118 | %doc NEWS README |
|---|
| 119 | %{_bindir}/stunbdc |
|---|
| 120 | %{_bindir}/stund |
|---|
| 121 | %{_libdir}/*.so.* |
|---|
| 122 | %{_libdir}/girepository-1.0/Nice-0.1.typelib |
|---|
| 123 | %{_libdir}/gstreamer-1.0/libgstnice.so |
|---|
| 124 | |
|---|
| 125 | %files devel |
|---|
| 126 | %defattr(-,root,root,-) |
|---|
| 127 | %{_includedir}/* |
|---|
| 128 | %{_libdir}/*.so |
|---|
| 129 | %{_libdir}/pkgconfig/nice.pc |
|---|
| 130 | %{_datadir}/gtk-doc/html/%{name}/ |
|---|
| 131 | %{_datadir}/gir-1.0/Nice-0.1.gir |
|---|
| 132 | |
|---|
| 133 | |
|---|
| 134 | %changelog |
|---|
| 135 | * Sat Apr 25 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.1.16-1 |
|---|
| 136 | - new upstream release. |
|---|
| 137 | |
|---|
| 138 | * Sun Nov 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.13-1 |
|---|
| 139 | - new upstream release |
|---|
| 140 | |
|---|
| 141 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.7-1 |
|---|
| 142 | - new upstream release |
|---|
| 143 | |
|---|
| 144 | * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.5-1 |
|---|
| 145 | - new upstream release |
|---|
| 146 | |
|---|
| 147 | * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.4-1 |
|---|
| 148 | - update to 0.1.4 |
|---|
| 149 | |
|---|
| 150 | * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.3-1 |
|---|
| 151 | - new upstream release |
|---|
| 152 | - add BuildRequires: gstreamer1-devel, gstreamer1-plugins-base-devel |
|---|
| 153 | |
|---|
| 154 | * Sat Apr 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.2-1 |
|---|
| 155 | - new upstream release |
|---|
| 156 | |
|---|
| 157 | * Thu Sep 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.1-1 |
|---|
| 158 | - new upstream release |
|---|
| 159 | |
|---|
| 160 | * Mon Aug 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.0-1 |
|---|
| 161 | - new upstream release |
|---|
| 162 | |
|---|
| 163 | * Sun Oct 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.0.13-1 |
|---|
| 164 | - new upstream release |
|---|
| 165 | |
|---|
| 166 | * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.0.9-4 |
|---|
| 167 | - rebuilt with rpm-4.8.1 for pkg-config |
|---|
| 168 | |
|---|
| 169 | * Sat Nov 7 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.0.9-3 |
|---|
| 170 | - initial build for Vine Linux |
|---|
| 171 | |
|---|
| 172 | * Thu Sep 17 2009 Bastien Nocera <bnocera@redhat.com> 0.0.9-2 |
|---|
| 173 | - Rebuild for new gupnp |
|---|
| 174 | |
|---|
| 175 | * Sun Aug 2 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.0.9-1 |
|---|
| 176 | - Update to 0.0.9. |
|---|
| 177 | - Drop sha1 patch. Fixed upstream. |
|---|
| 178 | |
|---|
| 179 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-3 |
|---|
| 180 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
|---|
| 181 | |
|---|
| 182 | * Tue Jul 21 2009 Warren Togami <wtogami@redhat.com> - 0.0.8-2 |
|---|
| 183 | - stun sha1 patch from upstream to make it work at all |
|---|
| 184 | |
|---|
| 185 | * Sun Jun 21 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.0.8-1 |
|---|
| 186 | - Update to 0.0.8. |
|---|
| 187 | |
|---|
| 188 | * Sun Jun 14 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.0.7-1 |
|---|
| 189 | - Update to 0.0.7. |
|---|
| 190 | - Add BR on gupnp-igd-devel. |
|---|
| 191 | |
|---|
| 192 | * Mon Apr 13 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.0.6-1 |
|---|
| 193 | - Update to 0.0.6. |
|---|
| 194 | |
|---|
| 195 | * Wed Mar 18 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.0.5-1 |
|---|
| 196 | - Update to 0.0.5. |
|---|
| 197 | |
|---|
| 198 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.4-2 |
|---|
| 199 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
|---|
| 200 | |
|---|
| 201 | * Sat Dec 27 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.0.4-1 |
|---|
| 202 | - Initial Fedora spec. |
|---|
| 203 | |
|---|