libnice-vl.spec 6.0 KB

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