746455c
# disable building of plugin for gstreamer 0.10
4a50d35
%bcond_with gst010
4a50d35
6f0b210
Name:           libnice
3feabe3
Version:        0.1.14
d274df7
Release:        6.20171128gitfb2f1f7%{?dist}
6f0b210
Summary:        GLib ICE implementation
6f0b210
6f0b210
Group:          System Environment/Libraries
6f0b210
License:        LGPLv2 and MPLv1.1
a4ee9cf
URL:            https://nice.freedesktop.org/wiki/
a4ee9cf
Source0:        https://nice.freedesktop.org/releases/%{name}-%{version}.tar.gz
f1ca1fa
Patch1:         libnice-0.1.14-70-gfb2f1f7.patch
6f0b210
554edd4
# make tests compile on i686
554edd4
Patch2:         libnice-0.1.14-tests-i686.patch
554edd4
8535255
# make tests pass in Koji
8535255
Patch3:         libnice-0.1.14-tests-koji.patch
8535255
5ecb765
BuildRequires:  autoconf
5ecb765
BuildRequires:  automake
dbce58c
BuildRequires:  glib2-devel
3feabe3
BuildRequires:  gnutls-devel >= 2.12.0
dbce58c
BuildRequires:  gobject-introspection-devel
4a50d35
%if %{with gst010}
6f0b210
BuildRequires:  gstreamer-devel
dbce58c
BuildRequires:  gstreamer-plugins-base-devel
4a50d35
%endif
dec9519
BuildRequires:  gstreamer1-devel >= 0.11.91
dbce58c
BuildRequires:  gstreamer1-plugins-base-devel >= 0.11.91
dbce58c
BuildRequires:  gupnp-igd-devel >= 0.1.2
6f0b210
6f0b210
6f0b210
%description
b17a790
%{name} is an implementation of the IETF draft Interactive Connectivity
6f0b210
Establishment standard (ICE). ICE is useful for applications that want to
6f0b210
establish peer-to-peer UDP data streams. It automates the process of traversing
6f0b210
NATs and provides security against some attacks. Existing standards that use
6f0b210
ICE include the Session Initiation Protocol (SIP) and Jingle, XMPP extension
6f0b210
for audio/video calls.
6f0b210
6f0b210
4a50d35
%if %{with gst010}
8006961
%package        gstreamer
8006961
Summary:        GStreamer plugin for %{name}
8006961
Group:          Development/Libraries
06ee4a5
Requires:       %{name}%{?_isa} = %{version}-%{release}
8006961
8006961
%description    gstreamer
8006961
The %{name}-gstreamer package contains a gstreamer 0.10 plugin for %{name}.
4a50d35
%endif
8006961
8006961
8006961
%package        gstreamer1
8006961
Summary:        GStreamer plugin for %{name}
8006961
Group:          Development/Libraries
06ee4a5
Requires:       %{name}%{?_isa} = %{version}-%{release}
8006961
8006961
%description    gstreamer1
8006961
The %{name}-gstreamer1 package contains a gstreamer 1.0 plugin for %{name}.
8006961
8006961
6f0b210
%package        devel
6f0b210
Summary:        Development files for %{name}
6f0b210
Group:          Development/Libraries
06ee4a5
Requires:       %{name}%{?_isa} = %{version}-%{release}
dbce58c
Requires:       glib2-devel
dbce58c
Requires:       pkgconfig
6f0b210
6f0b210
%description    devel
6f0b210
The %{name}-devel package contains libraries and header files for
6f0b210
developing applications that use %{name}.
6f0b210
6f0b210
6f0b210
%prep
12bc606
%setup -q
5ecb765
%patch1 -p1
554edd4
%patch2 -p1
8535255
%patch3 -p1
63a7838
chmod 0755 scripts/valgrind-test-driver
d99a0c0
d274df7
# disable test-new-dribble, which sometimes hangs indefinitely, and
d274df7
# test-send-recv, which fails in Koji due to insufficiently configured network
d274df7
sed -e 's/test-new-dribble/#&/' \
d274df7
    -e 's/test-send-recv/#&/' \
d274df7
    -i tests/Makefile.am
d99a0c0
0acfa75
autoreconf -fiv
6f0b210
f2a5f36
6f0b210
%build
cb05dbf
%configure --enable-compile-warnings=yes --disable-static \
15e5f20
%if %{with gst010}
15e5f20
 --with-gstreamer-0.10
15e5f20
%else
15e5f20
 --without-gstreamer-0.10
15e5f20
%endif
6f0b210
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
6f0b210
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
288dc3b
make %{?_smp_mflags} V=1
6f0b210
6f0b210
6f0b210
%install
6f0b210
make install DESTDIR=$RPM_BUILD_ROOT
6f0b210
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
6f0b210
6f0b210
63a7838
%check
63a7838
export LD_LIBRARY_PATH="$PWD/nice/.libs"
63a7838
make check
63a7838
63a7838
6f0b210
%post -p /sbin/ldconfig
6f0b210
6f0b210
6f0b210
%postun -p /sbin/ldconfig
6f0b210
6f0b210
6f0b210
%files
655912f
%doc NEWS README
655912f
%license COPYING COPYING.LGPL COPYING.MPL
6f0b210
%{_bindir}/stunbdc
6f0b210
%{_bindir}/stund
8006961
%{_libdir}/*.so.*
6985cae
%{_libdir}/girepository-1.0/Nice-0.1.typelib
8006961
8006961
4a50d35
%if %{with gst010}
8006961
%files gstreamer
dec9519
%{_libdir}/gstreamer-0.10/libgstnice010.so
4a50d35
%endif
8006961
8006961
8006961
%files gstreamer1
dec9519
%{_libdir}/gstreamer-1.0/libgstnice.so
6f0b210
6f0b210
6f0b210
%files devel
6f0b210
%{_includedir}/*
6f0b210
%{_libdir}/*.so
6f0b210
%{_libdir}/pkgconfig/nice.pc
6f0b210
%{_datadir}/gtk-doc/html/%{name}/
6985cae
%{_datadir}/gir-1.0/Nice-0.1.gir
6f0b210
6f0b210
6f0b210
%changelog
d274df7
* Mon Apr 16 2018 Kamil Dudka <kdudka@redhat.com> - 0.1.14-6.20171128gitfb2f1f7
d274df7
- disable test-send-recv, which fails in Koji
d274df7
288dc3b
* Fri Mar 16 2018 Kamil Dudka <kdudka@redhat.com> - 0.1.14-5.20171128gitfb2f1f7
cb05dbf
- do not build with -Werror by default
288dc3b
- make the build more verbose
288dc3b
794e7ad
* Fri Feb 09 2018 Kamil Dudka <kdudka@redhat.com> - 0.1.14-4.20171128gitfb2f1f7
63a7838
- enable make check again
8535255
- make tests pass in Koji
d99a0c0
- disable test-new-dribble that sometimes hangs indefinitely
554edd4
- make tests compile on i686
729f8ec
- make the package build on armv7hl
6eb0571
- make the package build on Fedora 28
15e5f20
- avoid build failure if gstreamer-plugins-base-devel is installed
0acfa75
- move autoreconf invocation to %%prep
794e7ad
- use Name Version Release that explicitly identifies an SCM snapshot (#1541646)
794e7ad
5ecb765
* Fri Feb 09 2018 Stefan Becker <chemobejk@gmail.com> - 0.1.14-3
5ecb765
- update to 0.1.14-70-gfb2f1f7 with alternate server fixes for SIPE
5ecb765
- add autoreconf build step
5ecb765
- remove examples subpackage as examples are no longer installed
5ecb765
69cde2c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.14-2
69cde2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
69cde2c
3feabe3
* Mon Jan 29 2018 Stefan Becker <chemobejk@gmail.com> - 0.1.14-1
3feabe3
- Update to 0.1.14
3feabe3
4a50d35
* Wed Jan 24 2018 Tomas Hoger <thoger@redhat.com> - 0.1.13-11
746455c
- Add conditional for building with(out) gst010 / GStreamer 0.10 support.
746455c
- Disable gst010 plugin by default.
4a50d35
6757309
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.13-10
6757309
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
6757309
d8353c8
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.13-9
d8353c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d8353c8
fdea150
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.13-8
fdea150
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
fdea150
21c6e6f
* Thu Jul 21 2016 Than Ngo <than@redhat.com> - 0.1.13-7
21c6e6f
- Rebuilt for glibc: Revert sendmsg/recvmsg ABI changes
21c6e6f
David Woodhouse 24424c5
* Fri Jun 10 2016 David Woodhouse <dwmw2@infradead.org> - 0.1.13-6
David Woodhouse 24424c5
- More updates from libnice git; use-after-free fixes
David Woodhouse 24424c5
David Woodhouse f33dcda
* Mon Jun 06 2016 David Woodhouse <dwmw2@infradead.org> - 0.1.13-5
David Woodhouse f33dcda
- Wholesale update to git HEAD, which fixes SIPE again.
David Woodhouse f33dcda
David Woodhouse 7e20853
* Fri May 20 2016 David Woodhouse <dwmw2@infradead.org> - 0.1.13-4
David Woodhouse 7e20853
- Backport patch to fix SIPE audio disconnections (#1337051)
David Woodhouse 7e20853
- Fix candidate gathering with IPV6 tentative addresses (#1337412)
David Woodhouse 7e20853
a554584
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.13-3
a554584
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a554584
94737d3
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.13-2
94737d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
94737d3
05a05bf
* Wed Apr 29 2015 Kalev Lember <kalevlember@gmail.com> - 0.1.13-1
05a05bf
- Update to 0.1.13
06ee4a5
- Tighten dependencies with the _isa macro
05a05bf
0098194
* Tue Apr 21 2015 Kalev Lember <kalevlember@gmail.com> - 0.1.11-1
0098194
- Update to 0.1.11
655912f
- Use license macro for COPYING files
0098194
David Woodhouse a0d38a8
* Mon Mar 02 2015 David Woodhouse <dwmw2@infradead.org> - 0.1.10-1
David Woodhouse a0d38a8
- Update to 0.1.10
David Woodhouse a0d38a8
c575a20
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 0.1.8-2
c575a20
- Rebuilt for Fedora 23 Change
c575a20
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
c575a20
cecbf6e
* Sun Oct 26 2014 Kalev Lember <kalevlember@gmail.com> - 0.1.8-1
cecbf6e
- Update to 0.1.8
6985cae
- Build with gobject introspection support
cecbf6e
f40582e
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.4-4
f40582e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f40582e
89fd624
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.4-3
89fd624
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
89fd624
c9cca0e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.4-2
c9cca0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c9cca0e
7f052bf
* Mon May 13 2013 Brian Pepple <bpepple@fedoraproject.org> - 0.1.4-1
7f052bf
- Update to 0.1.4.
618c7f7
- Add examples subpackage.
7f052bf
8006961
* Fri May 10 2013 Matthias Clasen <mclasen@redhat.com> - 0.1.3-3
8006961
- Split the gstreamer plugins off in subpackages
8006961
5205845
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
5205845
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5205845
dec9519
* Fri Sep 14 2012 Brian Pepple <bpepple@fedoraproject.org> - 0.1.3-1
dec9519
- Update to 0.1.3.
dec9519
- Add BR on gstreamer1 packages.
dec9519
5020214
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-2
5020214
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5020214
719e488
* Mon Apr 23 2012 Brian Pepple <bpepple@fedoraproject.org> - 0.1.2-1
719e488
- Update to 0.1.2.
719e488
de77b9e
* Mon Jan 16 2012 Brian Pepple <bpepple@fedoraproject.org> - 0.1.1-3
de77b9e
- Rebuild for new gupnp-idg.
de77b9e
20b3e55
* Sun Jan 08 2012 Brian Pepple <bpepple@fedoraproject.org> - 0.1.1-2
20b3e55
- Rebuild for new gcc.
20b3e55
b3ec016
* Wed Dec  7 2011 Brian Pepple <bpepple@fedoraproject.org> - 0.1.1-1
063e541
- Update to 0.1.1.
063e541
- Drop ppc64 patch. Fixed upstream.
063e541
David Woodhouse 9c4ab3c
* Tue Aug 16 2011 David Woodhouse <dwmw2@infradead.org> - 0.1.0-5
David Woodhouse 9c4ab3c
- Apply portability patch to nice/Makefile.in too. I hate autocrap.
David Woodhouse 9c4ab3c
David Woodhouse 9c4ab3c
* Tue Aug 16 2011 David Woodhouse <dwmw2@infradead.org> - 0.1.0-4
David Woodhouse a23a860
- Fix non-portable symbol checks in nice/Makefile.am
David Woodhouse a23a860
1be3c15
* Fri Jun 17 2011 Peter Robinson <pbrobinson@gmail.com> - 0.1.0-3
1be3c15
- rebuild for new gupnp/gssdp
1be3c15
902e366
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-2
902e366
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
902e366
f2a5f36
* Wed Jan 26 2011 Brian Pepple <bpepple@fedoraproject.org> - 0.1.0-1
f2a5f36
- Update to 0.1.0.
f2a5f36
- Enable make check.
f2a5f36
- Drop buildroot and clean section. No longer needed.
f2a5f36
50baab6
* Wed Aug  4 2010 Brian Pepple <bpepple@fedoraproject.org> - 0.0.13-1
50baab6
- Update to 0.0.13.
50baab6
c53d111
* Wed May 19 2010 Brian Pepple <bpepple@fedoraproject.org> - 0.0.12-1
c53d111
- Update to 0.0.12.
c53d111
e079f55
* Fri Mar 19 2010 Brian Pepple <bpepple@fedoraproject.org> - 0.0.11-1
e079f55
- Update to 0.0.11.
e079f55
dddd8a8
* Wed Dec 16 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.0.10-2
dddd8a8
- Rebuild for new gupnp-igd.
dddd8a8
579c342
* Mon Nov  9 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.0.10-1
579c342
- Update to 0.0.10.
579c342
32c3c88
* Thu Sep 17 2009 Bastien Nocera <bnocera@redhat.com> 0.0.9-2
32c3c88
- Rebuild for new gupnp
32c3c88
d5500f2
* Sun Aug  2 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.0.9-1
d5500f2
- Update to 0.0.9.
d5500f2
- Drop sha1 patch. Fixed upstream.
d5500f2
fc8e345
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-3
fc8e345
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
fc8e345
9177b15
* Tue Jul 21 2009 Warren Togami <wtogami@redhat.com> - 0.0.8-2
9177b15
- stun sha1 patch from upstream to make it work at all
9177b15
0e92b14
* Sun Jun 21 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.0.8-1
0e92b14
- Update to 0.0.8.
0e92b14
9f089be
* Sun Jun 14 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.0.7-1
9f089be
- Update to 0.0.7.
9f089be
- Add BR on gupnp-igd-devel.
9f089be
74fd9a7
* Mon Apr 13 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.0.6-1
74fd9a7
- Update to 0.0.6.
74fd9a7
12bc606
* Wed Mar 18 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.0.5-1
12bc606
- Update to 0.0.5.
12bc606
fee2bfc
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.4-2
fee2bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
fee2bfc
6f0b210
* Sat Dec 27 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.0.4-1
6f0b210
- Initial Fedora spec.
6f0b210