cfa67e
# disable building of plugin for gstreamer 0.10
cfa67e
%bcond_with gst010
cfa67e
cfa67e
%global upstream_date 20180504
cfa67e
%global upstream_rnum 85
cfa67e
%global upstream_hash 34d6044
cfa67e
cfa67e
Name:           libnice
cfa67e
Version:        0.1.14
cfa67e
Release:        7.%{upstream_date}git%{upstream_hash}%{?dist}
cfa67e
Summary:        GLib ICE implementation
cfa67e
cfa67e
Group:          System Environment/Libraries
cfa67e
License:        LGPLv2 and MPLv1.1
cfa67e
URL:            https://nice.freedesktop.org/wiki/
cfa67e
Source0:        https://nice.freedesktop.org/releases/%{name}-%{version}.tar.gz
cfa67e
Patch1:         libnice-0.1.14-%{upstream_rnum}-g%{upstream_hash}.patch
cfa67e
cfa67e
# make tests compile on i686
cfa67e
Patch2:         libnice-0.1.14-tests-i686.patch
cfa67e
cfa67e
# make tests pass in Koji
cfa67e
Patch3:         libnice-0.1.14-tests-koji.patch
cfa67e
cfa67e
# component: accept TURN in nice_component_verify_remote_candidate() (#1541646)
cfa67e
Patch4:         libnice-0.1.14-turn-verify.patch
cfa67e
cfa67e
BuildRequires:  autoconf
cfa67e
BuildRequires:  automake
cfa67e
BuildRequires:  glib2-devel
cfa67e
BuildRequires:  gnutls-devel >= 2.12.0
cfa67e
BuildRequires:  gobject-introspection-devel
cfa67e
%if %{with gst010}
cfa67e
BuildRequires:  gstreamer-devel
cfa67e
BuildRequires:  gstreamer-plugins-base-devel
cfa67e
%endif
cfa67e
BuildRequires:  gstreamer1-devel >= 0.11.91
cfa67e
BuildRequires:  gstreamer1-plugins-base-devel >= 0.11.91
cfa67e
BuildRequires:  gupnp-igd-devel >= 0.1.2
cfa67e
cfa67e
cfa67e
%description
cfa67e
%{name} is an implementation of the IETF draft Interactive Connectivity
cfa67e
Establishment standard (ICE). ICE is useful for applications that want to
cfa67e
establish peer-to-peer UDP data streams. It automates the process of traversing
cfa67e
NATs and provides security against some attacks. Existing standards that use
cfa67e
ICE include the Session Initiation Protocol (SIP) and Jingle, XMPP extension
cfa67e
for audio/video calls.
cfa67e
cfa67e
cfa67e
%if %{with gst010}
cfa67e
%package        gstreamer
cfa67e
Summary:        GStreamer plugin for %{name}
cfa67e
Group:          Development/Libraries
cfa67e
Requires:       %{name}%{?_isa} = %{version}-%{release}
cfa67e
cfa67e
%description    gstreamer
cfa67e
The %{name}-gstreamer package contains a gstreamer 0.10 plugin for %{name}.
cfa67e
%endif
cfa67e
cfa67e
cfa67e
%package        gstreamer1
cfa67e
Summary:        GStreamer plugin for %{name}
cfa67e
Group:          Development/Libraries
cfa67e
Requires:       %{name}%{?_isa} = %{version}-%{release}
cfa67e
cfa67e
%description    gstreamer1
cfa67e
The %{name}-gstreamer1 package contains a gstreamer 1.0 plugin for %{name}.
cfa67e
cfa67e
cfa67e
%package        devel
cfa67e
Summary:        Development files for %{name}
cfa67e
Group:          Development/Libraries
cfa67e
Requires:       %{name}%{?_isa} = %{version}-%{release}
cfa67e
Requires:       glib2-devel
cfa67e
Requires:       pkgconfig
cfa67e
cfa67e
%description    devel
cfa67e
The %{name}-devel package contains libraries and header files for
cfa67e
developing applications that use %{name}.
cfa67e
cfa67e
cfa67e
%prep
cfa67e
%setup -q
cfa67e
%patch1 -p1
cfa67e
%patch2 -p1
cfa67e
%patch3 -p1
cfa67e
%patch4 -p1
cfa67e
chmod 0755 scripts/valgrind-test-driver
cfa67e
cfa67e
# disable test-new-dribble, which sometimes hangs indefinitely, and
cfa67e
# test-send-recv, which fails in Koji due to insufficiently configured network
cfa67e
sed -e 's/test-new-dribble/#&/' \
cfa67e
    -e 's/test-send-recv/#&/' \
cfa67e
    -i tests/Makefile.am
cfa67e
cfa67e
autoreconf -fiv
cfa67e
cfa67e
cfa67e
%build
cfa67e
%configure --enable-compile-warnings=yes --disable-static \
cfa67e
%if %{with gst010}
cfa67e
 --with-gstreamer-0.10
cfa67e
%else
cfa67e
 --without-gstreamer-0.10
cfa67e
%endif
cfa67e
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
cfa67e
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
cfa67e
make %{?_smp_mflags} V=1
cfa67e
cfa67e
cfa67e
%install
cfa67e
make install DESTDIR=$RPM_BUILD_ROOT
cfa67e
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
cfa67e
cfa67e
cfa67e
%check
cfa67e
# Temporarily make the upstream test-suite run on Intel arches only because we
cfa67e
# are getting random crashes in Koji on secondary arches but I have not been
cfa67e
# able to reproduce them locally so far.
cfa67e
%ifarch x86_64 %{ix86}
cfa67e
export LD_LIBRARY_PATH="$PWD/nice/.libs"
cfa67e
make check
cfa67e
%endif
cfa67e
cfa67e
cfa67e
%post -p /sbin/ldconfig
cfa67e
cfa67e
cfa67e
%postun -p /sbin/ldconfig
cfa67e
cfa67e
cfa67e
%files
cfa67e
%doc NEWS README
cfa67e
%license COPYING COPYING.LGPL COPYING.MPL
cfa67e
%{_bindir}/stunbdc
cfa67e
%{_bindir}/stund
cfa67e
%{_libdir}/*.so.*
cfa67e
%{_libdir}/girepository-1.0/Nice-0.1.typelib
cfa67e
cfa67e
cfa67e
%if %{with gst010}
cfa67e
%files gstreamer
cfa67e
%{_libdir}/gstreamer-0.10/libgstnice010.so
cfa67e
%endif
cfa67e
cfa67e
cfa67e
%files gstreamer1
cfa67e
%{_libdir}/gstreamer-1.0/libgstnice.so
cfa67e
cfa67e
cfa67e
%files devel
cfa67e
%{_includedir}/*
cfa67e
%{_libdir}/*.so
cfa67e
%{_libdir}/pkgconfig/nice.pc
cfa67e
%{_datadir}/gtk-doc/html/%{name}/
cfa67e
%{_datadir}/gir-1.0/Nice-0.1.gir
cfa67e
cfa67e
cfa67e
%changelog
cfa67e
* Mon May 07 2018 Kamil Dudka <kdudka@redhat.com> - 0.1.14-7.20180504git34d6044
cfa67e
- component: accept TURN in nice_component_verify_remote_candidate() (#1541646)
cfa67e
- update to 0.1.14-85-g34d6044 (#1541646)
cfa67e
cfa67e
* Mon Apr 16 2018 Kamil Dudka <kdudka@redhat.com> - 0.1.14-6.20171128gitfb2f1f7
cfa67e
- temporarily make the upstream test-suite run on Intel arches only
cfa67e
- disable test-send-recv, which fails in Koji
cfa67e
cfa67e
* Fri Mar 16 2018 Kamil Dudka <kdudka@redhat.com> - 0.1.14-5.20171128gitfb2f1f7
cfa67e
- do not build with -Werror by default
cfa67e
- make the build more verbose
cfa67e
cfa67e
* Fri Feb 09 2018 Kamil Dudka <kdudka@redhat.com> - 0.1.14-4.20171128gitfb2f1f7
cfa67e
- enable make check again
cfa67e
- make tests pass in Koji
cfa67e
- disable test-new-dribble that sometimes hangs indefinitely
cfa67e
- make tests compile on i686
cfa67e
- make the package build on armv7hl
cfa67e
- make the package build on Fedora 28
cfa67e
- avoid build failure if gstreamer-plugins-base-devel is installed
cfa67e
- move autoreconf invocation to %%prep
cfa67e
- use Name Version Release that explicitly identifies an SCM snapshot (#1541646)
cfa67e
cfa67e
* Fri Feb 09 2018 Stefan Becker <chemobejk@gmail.com> - 0.1.14-3
cfa67e
- update to 0.1.14-70-gfb2f1f7 with alternate server fixes for SIPE
cfa67e
- add autoreconf build step
cfa67e
- remove examples subpackage as examples are no longer installed
cfa67e
cfa67e
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.14-2
cfa67e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
cfa67e
cfa67e
* Mon Jan 29 2018 Stefan Becker <chemobejk@gmail.com> - 0.1.14-1
cfa67e
- Update to 0.1.14
cfa67e
cfa67e
* Wed Jan 24 2018 Tomas Hoger <thoger@redhat.com> - 0.1.13-11
cfa67e
- Add conditional for building with(out) gst010 / GStreamer 0.10 support.
cfa67e
- Disable gst010 plugin by default.
cfa67e
cfa67e
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.13-10
cfa67e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
cfa67e
cfa67e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.13-9
cfa67e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
cfa67e
cfa67e
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.13-8
cfa67e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cfa67e
cfa67e
* Thu Jul 21 2016 Than Ngo <than@redhat.com> - 0.1.13-7
cfa67e
- Rebuilt for glibc: Revert sendmsg/recvmsg ABI changes
cfa67e
cfa67e
* Fri Jun 10 2016 David Woodhouse <dwmw2@infradead.org> - 0.1.13-6
cfa67e
- More updates from libnice git; use-after-free fixes
cfa67e
cfa67e
* Mon Jun 06 2016 David Woodhouse <dwmw2@infradead.org> - 0.1.13-5
cfa67e
- Wholesale update to git HEAD, which fixes SIPE again.
cfa67e
cfa67e
* Fri May 20 2016 David Woodhouse <dwmw2@infradead.org> - 0.1.13-4
cfa67e
- Backport patch to fix SIPE audio disconnections (#1337051)
cfa67e
- Fix candidate gathering with IPV6 tentative addresses (#1337412)
cfa67e
cfa67e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.13-3
cfa67e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cfa67e
cfa67e
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.13-2
cfa67e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
cfa67e
cfa67e
* Wed Apr 29 2015 Kalev Lember <kalevlember@gmail.com> - 0.1.13-1
cfa67e
- Update to 0.1.13
cfa67e
- Tighten dependencies with the _isa macro
cfa67e
cfa67e
* Tue Apr 21 2015 Kalev Lember <kalevlember@gmail.com> - 0.1.11-1
cfa67e
- Update to 0.1.11
cfa67e
- Use license macro for COPYING files
cfa67e
cfa67e
* Mon Mar 02 2015 David Woodhouse <dwmw2@infradead.org> - 0.1.10-1
cfa67e
- Update to 0.1.10
cfa67e
cfa67e
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 0.1.8-2
cfa67e
- Rebuilt for Fedora 23 Change
cfa67e
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
cfa67e
cfa67e
* Sun Oct 26 2014 Kalev Lember <kalevlember@gmail.com> - 0.1.8-1
cfa67e
- Update to 0.1.8
cfa67e
- Build with gobject introspection support
cfa67e
cfa67e
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.4-4
cfa67e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
cfa67e
cfa67e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.4-3
cfa67e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
cfa67e
cfa67e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.4-2
cfa67e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
cfa67e
cfa67e
* Mon May 13 2013 Brian Pepple <bpepple@fedoraproject.org> - 0.1.4-1
cfa67e
- Update to 0.1.4.
cfa67e
- Add examples subpackage.
cfa67e
cfa67e
* Fri May 10 2013 Matthias Clasen <mclasen@redhat.com> - 0.1.3-3
cfa67e
- Split the gstreamer plugins off in subpackages
cfa67e
cfa67e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
cfa67e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
cfa67e
cfa67e
* Fri Sep 14 2012 Brian Pepple <bpepple@fedoraproject.org> - 0.1.3-1
cfa67e
- Update to 0.1.3.
cfa67e
- Add BR on gstreamer1 packages.
cfa67e
cfa67e
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-2
cfa67e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cfa67e
cfa67e
* Mon Apr 23 2012 Brian Pepple <bpepple@fedoraproject.org> - 0.1.2-1
cfa67e
- Update to 0.1.2.
cfa67e
cfa67e
* Mon Jan 16 2012 Brian Pepple <bpepple@fedoraproject.org> - 0.1.1-3
cfa67e
- Rebuild for new gupnp-idg.
cfa67e
cfa67e
* Sun Jan 08 2012 Brian Pepple <bpepple@fedoraproject.org> - 0.1.1-2
cfa67e
- Rebuild for new gcc.
cfa67e
cfa67e
* Wed Dec  7 2011 Brian Pepple <bpepple@fedoraproject.org> - 0.1.1-1
cfa67e
- Update to 0.1.1.
cfa67e
- Drop ppc64 patch. Fixed upstream.
cfa67e
cfa67e
* Tue Aug 16 2011 David Woodhouse <dwmw2@infradead.org> - 0.1.0-5
cfa67e
- Apply portability patch to nice/Makefile.in too. I hate autocrap.
cfa67e
cfa67e
* Tue Aug 16 2011 David Woodhouse <dwmw2@infradead.org> - 0.1.0-4
cfa67e
- Fix non-portable symbol checks in nice/Makefile.am
cfa67e
cfa67e
* Fri Jun 17 2011 Peter Robinson <pbrobinson@gmail.com> - 0.1.0-3
cfa67e
- rebuild for new gupnp/gssdp
cfa67e
cfa67e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-2
cfa67e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
cfa67e
cfa67e
* Wed Jan 26 2011 Brian Pepple <bpepple@fedoraproject.org> - 0.1.0-1
cfa67e
- Update to 0.1.0.
cfa67e
- Enable make check.
cfa67e
- Drop buildroot and clean section. No longer needed.
cfa67e
cfa67e
* Wed Aug  4 2010 Brian Pepple <bpepple@fedoraproject.org> - 0.0.13-1
cfa67e
- Update to 0.0.13.
cfa67e
cfa67e
* Wed May 19 2010 Brian Pepple <bpepple@fedoraproject.org> - 0.0.12-1
cfa67e
- Update to 0.0.12.
cfa67e
cfa67e
* Fri Mar 19 2010 Brian Pepple <bpepple@fedoraproject.org> - 0.0.11-1
cfa67e
- Update to 0.0.11.
cfa67e
cfa67e
* Wed Dec 16 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.0.10-2
cfa67e
- Rebuild for new gupnp-igd.
cfa67e
cfa67e
* Mon Nov  9 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.0.10-1
cfa67e
- Update to 0.0.10.
cfa67e
cfa67e
* Thu Sep 17 2009 Bastien Nocera <bnocera@redhat.com> 0.0.9-2
cfa67e
- Rebuild for new gupnp
cfa67e
cfa67e
* Sun Aug  2 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.0.9-1
cfa67e
- Update to 0.0.9.
cfa67e
- Drop sha1 patch. Fixed upstream.
cfa67e
cfa67e
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-3
cfa67e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
cfa67e
cfa67e
* Tue Jul 21 2009 Warren Togami <wtogami@redhat.com> - 0.0.8-2
cfa67e
- stun sha1 patch from upstream to make it work at all
cfa67e
cfa67e
* Sun Jun 21 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.0.8-1
cfa67e
- Update to 0.0.8.
cfa67e
cfa67e
* Sun Jun 14 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.0.7-1
cfa67e
- Update to 0.0.7.
cfa67e
- Add BR on gupnp-igd-devel.
cfa67e
cfa67e
* Mon Apr 13 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.0.6-1
cfa67e
- Update to 0.0.6.
cfa67e
cfa67e
* Wed Mar 18 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.0.5-1
cfa67e
- Update to 0.0.5.
cfa67e
cfa67e
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.4-2
cfa67e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
cfa67e
cfa67e
* Sat Dec 27 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.0.4-1
cfa67e
- Initial Fedora spec.
cfa67e