Blame SPECS/libnice.spec

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